-
Notifications
You must be signed in to change notification settings - Fork 353
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
Sort and limit results from sticker database #1103
Comments
I would vote for a window parameter instead of a limit parameter. |
Good idea, if we introduce an optional To get everything: |
I will try to implement this. To maintain a consistent syntax I would propose the following:
@MaxKellermann: Does the syntax fit for you? |
Yes, that's like the existing database find syntax. |
As mentioned in #1895 |
Feature request
I'd like to be able to retrieve a set of stickers ordered in a descending list, preferably with a limit in place:
sticker find {TYPE} {URI} {NAME} sort {SORT_DIRECTION}
and
sticker find {TYPE} {URI} {NAME} sort {SORT_DIRECTION} limit {LIMIT}
For example:
sticker find song "" playCount sort desc limit 100
This would allow retrieval of stickers that are numeric or alphabetic and be able to pull the "top 100 played songs". It would also be possible to set a sticker for "date added" and retrieve a list of "50 most recent additions". This allows for dynamic playlists without needing to add extra databases.
I know we can use:
sticker find {TYPE} {URI} {NAME}
Then sort, but for large collections (10,000+ songs) this means manually sorting thousands of objects and discarding almost all of them when the SQLite database can do that for us quickly and easily
The text was updated successfully, but these errors were encountered: