Skip to content
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

Return sorted lists #152

Open
ericvaandering opened this issue Nov 7, 2013 · 1 comment
Open

Return sorted lists #152

ericvaandering opened this issue Nov 7, 2013 · 1 comment

Comments

@ericvaandering
Copy link
Member

Original TRAC ticket 4011 reported by valya
Hi,
I found that by default DBS3 returns unsorted lists, e.g. runs API. Even though it is not a problem per-se but it would be nice if DBS3 put in SQL statements the GROUP BY clause for entity in question and return to the client sorted list. For some API it is clear, e.g. datasets API should return ordered dataset names, runs API should return ordered run numbers, while for detailed APIs, e.g. filesummaries it is not really required.

The information I need to handle in DAS is quite large and doing extra database job is a waste of time/resources.

@ghost ghost assigned yuyiguo Nov 7, 2013
@ericvaandering
Copy link
Member Author

Author: valya
May be it can be done by using extra API parameters, e.g. sort. The same principle can be applied to get pagination, e.g. idx/limit parameters. These are generic parameters and can be added to all APIs by default. But I let you decide if it is permissible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants