Sorry for not being clear on this. I just needed to know what is running the queries as we are having high traffic to our site.
Somehow is the query becoming a bottleneck as it takes over 1.4 seconds to give a return to the query since we have over 300,000 registered users..
I may need to amend the query and can you tell me where to do it? But I will be fully responsible if anything happens to the core.
I might simplify it to be:
Code:
SELECT u.`id` FROM `#_comprofiler` AS c INNER JOIN `#_users` AS u ON u.`id` = c.`id` WHERE ( u.`username` = 'XXXXX') LIMIT 0, 1
or mebbe to even simplify it more
SELECT `id` FROM `#_comprofiler` WHERE `username` = 'XXXXX' LIMIT 0, 1
The second query took 0.0017 seconds compared to a 1.4 seconds to the first query.