Add getMany() to Cache/DatabaseStore.php to save on DB requests. #38315
Unanswered
tylercubell
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Cache/RetrievesMultipleKeys.php
has amany()
function that retrieves multiple items from the cache by key. It looks like each key lookup requires a separate database query (seeCache/DatabaseStore.php
).If
Cache/DatabaseStore.php
were to have a complementarygetMany()
function that usedwhereIn()
instead ofwhere()
(among other supporting changes), it would only require one database request.Beta Was this translation helpful? Give feedback.
All reactions