How can I fetch more than 1000 record from data store and put all in one single list to pass to django?
entities = []
for entity in Entity.all():
entities.append(entity)
Simple as that. Note that there is an RPC made for every entity which is much slower than fetching in chunks. So if you're concerned about performance, do the following:
If you have less than 1M items:
entities = Entity.all().fetch(999999)
Otherwise, use a cursor.
It should also be noted that:
Entity.all().fetch(Entity.all().count())
returns 1000 max and should not be used.