We are having some performance issues with some of our views. After debugging this, I have determined that the cause is from duplicate joins are getting added from the lack of redundancy checks being made within the ensure_path method of the views_plugin_query_default.inc file. There already is a redundancy check within the ensure_table, but this should also apply to ensure_path as well to better protect this from occurring. Currently we are seeing this within a Drupal 6 site and the following patch applies to 6.x branch, but this should probably be ported into 7.x as well depending on if you guys think this logic is sound.

Patch to follow.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

travist’s picture

Status: Active » Needs review
FileSize
4.15 KB

Here is the patch for 6.x-3.0.

Status: Needs review » Needs work

The last submitted patch, 1870452-views_fix_duplicate_table_joins-2.patch, failed testing.

travist’s picture

Here is a re-roll of this patch against 6.x-3.x. Let's hope the test runs are better on this one.

travist’s picture

Status: Needs work » Needs review
travist’s picture

Version: 6.x-3.0 » 6.x-3.x-dev

Status: Needs review » Needs work

The last submitted patch, 1870452-views_fix_duplicate_table_joins-4.patch, failed testing.

travist’s picture

Status: Needs work » Needs review
Chris Matthews’s picture

Issue summary: View changes
Status: Needs review » Closed (outdated)

The Drupal 6 branch is no longer supported, please check with the D6LTS project if you need further support. For more information as to why this issue was closed, please see issue #3030347: Plan to clean process issue queue