Re: Very slow query when too many joins
Here's my rant against EAV:
http://mysql.rjweb.org/doc.php/eav
You do need a composite index on (ads_id, field_id). In particular it would be better to have
* ENGINE=InnoDB -- so that the PK is clustered
* PRIMARY KEY(ads_id, field_id)
In my.cnf :
optimizer_search_depth = 1
Subject
Views
Written By
Posted
4557
June 05, 2016 09:17AM
1721
June 05, 2016 09:27AM
1521
June 05, 2016 10:14AM
1344
June 05, 2016 10:48AM
1348
June 05, 2016 10:56AM
1347
June 05, 2016 03:33PM
1171
June 05, 2016 03:41PM
Re: Very slow query when too many joins
1240
June 05, 2016 05:36PM
1179
June 06, 2016 02:23AM
1148
June 06, 2016 03:33AM
1014
June 06, 2016 08:36AM
1126
June 06, 2016 08:52AM
1190
June 06, 2016 09:02AM
1159
June 06, 2016 11:16AM
1262
June 06, 2016 08:29AM
1086
June 06, 2016 11:30AM
1163
June 06, 2016 12:08PM
1118
June 06, 2016 02:11PM
1137
June 07, 2016 03:40PM
1207
July 20, 2016 05:34AM
1173
July 20, 2016 09:37AM
1270
July 21, 2016 04:43AM
1071
July 22, 2016 10:59PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.