MySQL Forums
Forum List  »  Performance

Re: Very slow query when too many joins
Posted by: As Os
Date: June 05, 2016 10:48AM

It 's user created fields.
Table 'field' holds the id, the name of the field and it's options.
Table 'fields_values' holds the the values of the fields.

They're joined with: id->field_id

Table 'ads' holds it's id and the fields' ids.
If one row of 'ads' has 27 fields it has to make 27 JOINS to take the values from 'fields_values' table.

Options: ReplyQuote


Subject
Views
Written By
Posted
4497
June 05, 2016 09:17AM
1694
June 05, 2016 09:27AM
Re: Very slow query when too many joins
1317
June 05, 2016 10:48AM
1309
June 05, 2016 03:33PM
1158
June 06, 2016 02:23AM
1130
June 06, 2016 03:33AM
1166
June 06, 2016 09:02AM
1072
June 06, 2016 11:30AM
1097
June 06, 2016 02:11PM


Sorry, you can't reply to this topic. It has been closed.
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.

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.