pyes
pyes copied to clipboard
scan=True for queryset?
often I need to do
model = generate_model('docs', 'docs', "localhost:9200")
for elem in model.objects.all():
do_sth(elem)
if there are large quantity of docs, then it's slow to retrieve docs after a while. Can we add a 'scan=True' option when we call generate_model method?
I'll add automatically scan to iterator if not order is required.
Good. ElasticSearch 1.3 allows order in scan.