Open
Description
When Db::query
is performed, most of the time we'll get an index hit. These are fast. However, if the index does not exist yet (i.e. because this is the first time that specific QueryFilter
is used), it has to be built during this query. That involves running a tpf
query and sorting it. The tpf
query is pretty fast, as it's indexed, but the sorting could take quite a while.
This is where it could help to have some degree of paralellization. Not sure how this would work, though, but let's use this issue to gather some ideas.
@AlexMikhalev may have some ideas already :)