-
I can I can hit each one for more information. But now I'm smashing the API with n+1 queries each search. Is there any way to do this sort of search in in one query through the API? I note that the frontend doesn't use the RPC, it generates its own HTML server-side. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Instead of running an additional request per search result, you could run individual searches for those categories: instead of running |
Beta Was this translation helpful? Give feedback.
Instead of running an additional request per search result, you could run individual searches for those categories: instead of running
search
, then onealbums
per album, you do aalbums 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 ofsearch
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.