SQL_CALC_FOUND_ROWS in query
-
it appears this plugin uses SQL_CALC_FOUND_ROWS.
This has 2 negative effects for me:
- when used w/ mysql it slows things down a lot
- when used with TIDB, it is not implemented and fills the logs with errors.
SELECT SQL_CALC_FOUND_ROWS wp_posts.ID FROM wp_posts INNER JOIN wp_postmeta ON ( wp_posts.ID = wp_postmeta.post_id ) INNER JOIN wp_postmeta AS mt1 ON ( wp_posts.ID = mt1.post_id ) INNER JOIN wp_postmeta AS mt2 ON ( wp_posts.ID = mt2.post_id ) WHERE 1=1 AND ( ( wp_postmeta.meta_key = '_nab_experiment_type' AND wp_postmeta.meta_value = 'nab/heatmap' ) ...
It would improve the perf if it would remove this (I think by adding no_found_rows to the query_vars).
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘SQL_CALC_FOUND_ROWS in query’ is closed to new replies.