Improve load performance of shared cck fields

gordon - May 6, 2008 - 14:21
Project:Content Construction Kit (CCK)
Version:5.x-1.x-dev
Component:content.module
Category:feature request
Priority:normal
Assigned:gordon
Status:patch (code needs review)
Description

This patch is a continuation of http://drupal.org/node/246084 which cleans up the loading of cck nodes to decrease the number of selects.

This patch improves the performance of shared single value fields by loading all the columns in a single select instead of one for each table.

As there are limits to the number of joins, I have limited this to blocks of 30 shared fields, and then it will do another select.

This should make the hit on shared fields a lot less, while still giving the benefits in views.

AttachmentSize
cck-join.patch2.94 KB

#1

neclimdul - May 6, 2008 - 17:32
Title:Inprove load performance of shared cck fields» Improve load performance of shared cck fields

interesting! Will give it a review.

#2

gordon - June 11, 2008 - 02:06

An updated patch to allow it to be applied again.

#3

gordon - June 11, 2008 - 04:58

add patch

AttachmentSize
cck-join.patch2.94 KB

#4

gordon - June 30, 2008 - 03:32

fix up bug with joining multiple fields that are on the same table. This happens when the content_field_xxx is not the table of the first field.

AttachmentSize
cck-join.patch3.03 KB

#5

gordon - September 6, 2008 - 06:15

Updated patch

AttachmentSize
cck-join.patch5.89 KB
 
 

Drupal is a registered trademark of Dries Buytaert.