Skip to content
Commit 3bece354 authored by Daniel Vrátil's avatar Daniel Vrátil 🤖
Browse files

Slightly speed up ItemRetriever main query (remove two JOINs)

Don't join MimeTypeTable and ResourceTable, instead use the same trick as with
mimetype and flags in FetchHelper, that is local name cache and T::retrieveById().
This is not much, but on large folders it should slightly reduce the query
execution time. The major bottleneck here is still the sorting, but we cannot
really get rid of it.

See T628 on Phabricator for more details and measurements.
parent ae787c64
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment