Closed (fixed)
Project:
Views Group By
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
4 Dec 2009 at 17:37 UTC
Updated:
24 Jul 2010 at 20:50 UTC
Hey,
I spent some time debugging the mysql keys on my site and it is currently a critical issue for me keeping me from implementing this module. I would appreciate any help.
In your documentation you give the example of the top terms view:
http://drupal.org/node/389230
The resulting query is using filesort and this is quite a problem on large sites with many nodes.
I tried reducing it, to figure out where I could add an index, but I am quite lost:
EXPLAIN SELECT term_data.tid AS term_data_tid
FROM node node
LEFT JOIN term_node term_node ON node.vid = term_node.vid
LEFT JOIN term_data term_data ON term_node.tid = term_data.tid
GROUP BY term_data_tid
Comments
Comment #1
irakli commentedThis is not a bug, since neither Views nor, and even less, views_groupby are responsible for making sure tables have proper indexes.
This is a support ticket.
Comment #2
rsevero commentedI bet the main problem is the use of LEFT JOIN, not the lack of any INDEXs.
Please reopen at the right Project issue queue (Views?) if necessary.