-
-
Notifications
You must be signed in to change notification settings - Fork 133
Branch to be used with kpi.REST-UI
#482
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…ss' boolean field to 'Instance' model
…ParsedInstance.save()
… to be consistent with the kpi code
…ield, added command to update is_synced_with_mongo according to Mongo records
… for inactive XForm
|
I left the one comment for possible performance improvement, but I wouldn't block the merge as-is. @noliveleger, you'll probably get around to tweaking it before I finish reviewing the KPI branch ;) |
| offset = 0 | ||
| while stop is not True: | ||
| limit = offset + batchsize | ||
| instances_ids = Instance.objects.values_list("id", flat=True)[offset:limit] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, I forgot about this—adding it as a requested change. I think the queryset should be ordered explicitly by pk (or id) when using this kind of chunking. Otherwise, I think the order of values returned will be undefined.
It can submit data to
kpito letkpitransfer it to remote servers