Home > database > Table links to check one more fast or a single table to check many times fast?
Table links to check one more fast or a single table to check many times fast?
Time:10-09
Now is such, Either single table query four times, Either the left link six times (seven table link) check once, Could you tell me which is fast,,,, Left a link which is actually four tables, but a list of the same field between the three different fields of the main table, Thank you for your bosses ~
CodePudding user response:
You can use single table query to solve four requirements, you this a few table data volume is not large, otherwise can't get outside to do matching all of the data, So in theory, left connection is quicker, reduced the number of communication,
Impact performance is the key to on condition to have matching table index of the largest, if not match, is to take the data in the table on the left turn to the right table traversal, if the right side of the table is large that is very slow
CodePudding user response:
Data volume is not large, consider creating a view (left connection write statement)
CodePudding user response:
I also want to know, split into 10 small child table, check again combination results 10 times faster, or query a not split a large table soon?