Closed (fixed)
Project:
Relation
Version:
7.x-1.x-dev
Component:
API
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Aug 2012 at 08:29 UTC
Updated:
9 Nov 2014 at 12:42 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
mikran commentedTests only
Comment #3
mikran commentedHere is one attempt to try to solve this. Maybe there is smarter ways? Review please
Comment #4
mikran commented-dpm
Comment #5
mikran commented#4: ensure_distinct_endpoints-1760026-4.patch queued for re-testing.
Comment #6
mikran commentedcommitted
Comment #8
dpiThis issue has regressed for Drupal 8.
I'm not sure I have the patience to interpret and fix what is going on here. :@
Comment #9
dpiRelated: #1859084: Conditions on multi-column fields in EntityFieldQuery
Comment #10
mikran commentedI was not happy with the implementation of d7 fix so maybe I'll take a look at this
Comment #11
dpiI have fixed the current implementation of relation_query_enforce_distinct_endpoints_alter(). Tests pass again.
I would like to get your (mikran), chx, and others input on whether there is a better way.
If chx could clarify what this means for us in regards to comment #29 on #1859084: Conditions on multi-column fields in EntityFieldQuery, since tables are still getting multiple joins per field condition group.
Comment #12
Jorrit commentedWith regards to issue #1859084 I notice that applying that patch and using the current Relation module causes an SQL error related to
field_data_endpoints0.endpoints_r_indexbeing an invalid column. The hookrelation_query_enforce_distinct_endpoints_altermakes very specific assumptions about the table alias names which are different when using the performance patch.It seems
fixes this problem. I hope someone can confirm this, so a patch can be made that can be used in drush make.
Comment #13
mikran commentedYes that is correct. I haven't personally tested this one apart from quick tests in other issue where max join limit was reached.
Comment #14
mikran commented#1970156: MySQL can only use 61 tables in a join: field_data_endpoints on node_save closed as the fix there is exactly same as here.
so here is a patch by burningdog
file name is missleading but other issue also links back here so I guess its ok
Comment #15
adamwhite commentedThe patch in #14 didn't work for me. The table names were missing the underscore after the delta.
Changing it to work like the attached patch (rolled against 7.x-1.x dev) solved the problem for me.
Comment #16
mikran commented#1859084: Conditions on multi-column fields in EntityFieldQuery is about to get committed to D7 so reacting on that is more urgent now. Relation patch will be trivial but it also requires new release as soon as next core is out.
Comment #17
mikran commentedThis comment is not needed anymore
Comment #18
mikran commentedNext core release window is less than two weeks away now, so I'm preparing this issue to be ready to be committed then.
Comment #20
mikran commentedI'm going to commit this now, tests are failing because of this. So whoever is running -dev of Relation also needs -dev of Drupal core until next core is released.
Comment #23
Jorrit commentedDrupal core 7.33 is released with issue #1859084. I think a new release of Relation is in order, such that people who update to the latest Drupal can also update to the latest Relation module.
Comment #24
mikran commentedYep, rc6 release node is created. That'll take a while to get packaged.