04-Feb-2025, 09:11 PM
Hi
I recently had a message from my server support team that my site was generatin slow mySQL queries. it turned out the worst culprit was the basic commentics query
'SELECT * FROM `pages` WHERE `identifier` = 'ntax_cenozoicIsochrysis nuda' AND `site_id` = '1'
my site now has tens of thousands of pages, each with a comments area, so since the pages table did not have any indices the search was slow.
I have now added an index and that should solve the problem but I thought it might be useful to let you know about the issue.
Maybe the indices were missing because my installation went wrong, but if not it might be a good idea to change the installation so that the pages table has an index on the identifier column.
cheers
Jeremy
I recently had a message from my server support team that my site was generatin slow mySQL queries. it turned out the worst culprit was the basic commentics query
'SELECT * FROM `pages` WHERE `identifier` = 'ntax_cenozoicIsochrysis nuda' AND `site_id` = '1'
my site now has tens of thousands of pages, each with a comments area, so since the pages table did not have any indices the search was slow.
I have now added an index and that should solve the problem but I thought it might be useful to let you know about the issue.
Maybe the indices were missing because my installation went wrong, but if not it might be a good idea to change the installation so that the pages table has an index on the identifier column.
cheers
Jeremy