I am developing a Joomla site with version 2.5.11.Site will be under very high traffic.
My problem is MySQL performance. The database includes about 60,000 rows in the content table, and the query indicated below (query execution time of the core model com_content) is about 6 seconds. Very slow.
SELECT a.id, a.title, a.alias, a.title_alias, a.introtext, a.checked_out, a.checked_out_time, a.catid, a.created, a.created_by, a.created_by_alias, CASE WHEN a.modified = 0 THEN a.created ELSE a.modified END as modified, a.modified_by, uam.name as modified_by_name, CASE WHEN a.publish_up = 0 THEN a.created ELSE a.publish_up END as publish_up, a.publish_down, a.images, a.urls, a.attribs, a.metadata, a.metakey, a.metadesc, a.access, a.hits, a.xreference, a.featured, LENGTH(a.fulltext) AS readmore, CASE WHEN badcats.id is not null THEN 0 ELSE a.state END AS state, c.title AS category_title, c.path AS category_route, c.access AS category_access, c.alias AS category_alias, CASE WHEN a.created_by_alias > ' ' THEN a.created_by_alias ELSE ua.name END AS author, ua.email AS author_email, contact.id as contactid, parent.title as parent_title, parent.id as parent_id, parent.path as parent_route, parent.alias as parent_alias, ROUND(v.rating_sum / v.rating_count, 0) AS rating, v.rating_count as rating_count, c.published, CASE WHEN badcats.id is null THEN c.published ELSE 0 END AS parents_published FROM
For example, when I changed
(a.publish_up = '0000-00-00 00:00:00' OR a.publish_up <= '2013-06-12 06:44:44') AND (a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '2013-06-12 06:44:44')
with
(a.publish_up >= DATE_SUB(NOW(), INTERVAL 2 MONTH))
Request execution time about ~ 0.5 seconds
Request Explanation:

What can I do without cracking the kernel code, I never want to crack the main code ...
MySQL server configuration:
skip-external-locking skip-name-resolve key_buffer_size = 128M max_connections=1024 max_allowed_packet = 16M net_buffer_length = 8K table_open_cache = 512 table_cache = 2048 join_buffer_size = 128M read_buffer_size = 128M sort_buffer_size = 128M read_rnd_buffer_size=2M myisam_sort_buffer_size=128M thread_concurrency=16 query_cache_size = 128M query_cache_type=1 thread_cache_size = 1300 query_cache_limit=128M max_heap_table_size = 1024M tmp_table_size = 1024M