Skip to content

How do I do a search and get useful information back out of the RPC API? #933

Answered by mherger
oliwarner asked this question in Q&A
Discussion options

You must be logged in to vote

Instead of running an additional request per search result, you could run individual searches for those categories: instead of running search, then one albums per album, you do a albums 0 10 search:xyz, artists 0 10 search:xyz, tracks 0 10 search:xyz. It's three searches, a bit slower, but would give you the additional information you want quicker than going through the results of search and run individual lookups. search really was optimized for speed, to get results while you type. Therefore it tries to avoid looking up data in other tables.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@oliwarner
Comment options

@mherger
Comment options

@oliwarner
Comment options

Answer selected by oliwarner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants