This was a way rough test but there didn't seem to be any meaningful difference between the two
with pout.p("cursor"):
user_id = 0
while True:
users = User.query.gt_pk(user_id).asc_pk().get(5000)
if users:
for u in users:
user_id = u.pk
print user_id
else:
break
with pout.p("all"):
for u in User.query.asc_pk().all():
user_id = u.pk
print user_id
This was a way rough test but there didn't seem to be any meaningful difference between the two