I need to download all instances of fairly large (multi-GB) entity in my app\'s datastore. I have enough disk space to store the entity\'s data, but not enough to store both
Here's the code that worked for me:
import sqlite3;
from google.appengine.datastore import entity_pb
from google.appengine.api import datastore
conn = sqlite3.connect('UserRecord.db', isolation_level=None)
cursor = conn.cursor()
cursor.execute('select id, value from result order by sort_key, id')
for unused_entity_id, entity in cursor:
entity_proto = entity_pb.EntityProto(contents=entity)
print datastore.Entity._FromPb(entity_proto)