mirror of https://github.com/Nezreka/SoulSync.git
MetadataCache.get_search_results previously looped over each cached entity ID and issued one SELECT per ID, producing N extra queries per cached search hit. It now resolves all entities in a single batched IN query (chunked at 500 to stay under the SQLite variable limit), then reconstructs the result list in the original result_ids order using an in-memory dict lookup.pull/330/head
parent
4cfe6c6bf8
commit
d3d648d9fd
Loading…
Reference in new issue