Re: Very slow query when too many joins
James...
Each 'attribute' (field_id:value pair) needs a JOIN to look up (for a given ads_id).
(His original posting said "183" twice, that was probably a typo.)
The large number of JOINs is one of the evils of EAV schema design. (The index I suggested makes them faster.)
The slowdown at 26 joins is another evil. (The setting I suggested may help with that.)
The bottom line is that EAV does not scale and should be avoided. He needs 29 or so lookups. With JSON, only 1 is needed. Instead, the application splits apart the JSON and formats the output. But that is much faster.
Subject
Views
Written By
Posted
4356
June 05, 2016 09:17AM
1631
June 05, 2016 09:27AM
1455
June 05, 2016 10:14AM
1248
June 05, 2016 10:48AM
1259
June 05, 2016 10:56AM
1253
June 05, 2016 03:33PM
1105
June 05, 2016 03:41PM
1180
June 05, 2016 05:36PM
1129
June 06, 2016 02:23AM
1098
June 06, 2016 03:33AM
968
June 06, 2016 08:36AM
1017
June 06, 2016 08:52AM
1104
June 06, 2016 09:02AM
1072
June 06, 2016 11:16AM
1183
June 06, 2016 08:29AM
1053
June 06, 2016 11:30AM
1122
June 06, 2016 12:08PM
1054
June 06, 2016 02:11PM
1088
June 07, 2016 03:40PM
1108
July 20, 2016 05:34AM
Re: Very slow query when too many joins
1067
July 20, 2016 09:37AM
1159
July 21, 2016 04:43AM
1014
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.