materialized views

Events happening in the community are now at Drupal community events on www.drupal.org.

Request for feedback on best practices in overcoming query performance problems in D6 and beyond

Posted by dwightaspinwall on September 1, 2009 at 3:53pm

It is well-known that many very useful queries that you create (on your own or via the Views module) are costly to execute because MySQL creates a temporary table and does a filesort. A common example is {node}.type='xxx' and {node}.status='yyy' order by {node_comment_statistics}.comment_count desc.

Another common example is sorting posts in reverse chron order of most recent comment timestamp, which the Views module implements as order by GREATEST({node}.changed, {node_comment_statistics}.last_comment_timestamp) DESC

Read more
Subscribe with RSS Syndicate content

AltStyle によって変換されたページ (->オリジナル) /