-
Notifications
You must be signed in to change notification settings - Fork 83
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
Add explicit sorting to query to assure results #15
Comments
Another useful reference: |
@tomschenkjr Any thoughts on implementing this? I have run into an issue that appears to be sorting-related. One can add a sort to the URL but it'd be useful, IMHO, to have a default sort applied if one is not specified. |
Yeah, we can target this and make it the top priority. It was always a theoretical issue but now it’s impacting, can push a fix. /cc @geneorama From: Mark Silverberg [mailto:notifications@github.com] @tomschenkjrhttps://github.com/tomschenkjr Any thoughts on implementing this? I have run into an issue that appears to be sorting-related. One can add a sort to the URL but it'd be useful, IMHO, to have a default sort applied if one is not specified. — This e-mail, and any attachments thereto, is intended only for use by the addressee(s) named herein and may contain legally privileged and/or confidential information. If you are not the intended recipient of this e-mail (or the person responsible for delivering this document to the intended recipient), you are hereby notified that any dissemination, distribution, printing or copying of this e-mail, and any attachment thereto, is strictly prohibited. If you have received this e-mail in error, please respond to the individual sending the message, and permanently delete the original and any copy of any e-mail and printout thereof. |
@marks I'm wondering what issue you found. The only reason I suggested the "order" parameter was to ensure reliability for paged queries (queries that require more than one call). Even for paged queries I thought that the only reason the order was important was if rows were inserted in between calls or if Socrata changed the sort of a data set on the back end, both of which I considered to be unlikely and unreproducible events. |
@geneorama the issue I found is with a private dataset and I'm having trouble reproducing it anywhere else.. so I dont have much to share but Socrata engineers are telling me a default sort would be a good practice. As you all probably now, there is a "system field" called |
Using One issue is that it was only available for .json downloads, maybe that was it? Maybe @tomschenkjr will remember more detail. |
Per Socrata SoDA documentation, the query should be ordered to deliver consistent results if the dataset is changed while the dataset is downloading.
The text was updated successfully, but these errors were encountered: