[Plugin: Yet Another Related Posts Plugin] Slight SQL improvement suggestion
-
Hello mitcho,
I experienced a good improvement to client-side pageload times by adding
score
anddate
to the related cache primary key:ALTER TABLE wp_yarpp_related_cache DROP PRIMARY KEY , ADD PRIMARY KEY ( score , date , reference_ID , ID )
in this order. It essentially removes the table fetch (adds
using index
) in the SQL foryarrp_cache_enforce
and removes theusing filesort
pass (and addsusing index
) in the SQL forget_posts
. Faster all around.Just an FYI. Happy Holidays.
https://www.ads-software.com/extend/plugins/yet-another-related-posts-plugin/
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘[Plugin: Yet Another Related Posts Plugin] Slight SQL improvement suggestion’ is closed to new replies.