[wp-trac] [WordPress Trac] #55463: Add a limit to _prime_*_cache functions
WordPress Trac
noreply at wordpress.org
Tue Apr 12 03:49:57 UTC 2022
#55463: Add a limit to _prime_*_cache functions
---------------------------------------------+---------------------------
Reporter: spacedmonkey | Owner: spacedmonkey
Type: enhancement | Status: assigned
Priority: normal | Milestone: 6.0
Component: Cache API | Version:
Severity: normal | Resolution:
Keywords: good-first-bug has-patch commit | Focuses: performance
---------------------------------------------+---------------------------
Comment (by peterwilsoncc):
Are you able to run a test looping this 1000 times and making sure the
query is indeed quicker?
I can see the speed difference in your local testing but that could just
be random variations. It seems odd to me that the query wouldn't be
optimised by the server given the ID is a primary unique key.
Probably best to check with 10 IDs as that's typical of a front end
request.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/55463#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list