خوارزميات الربط
في هذا الدرس 4 موضوعات
هذا الدرس مخطط له. يعرض المخطط أدناه الموضوعات التي سيغطيها، ولم يُنشر الدرس الكامل بعد.
نص الدروس والتمارين باللغة الإنجليزية، بينما تبقى واجهة الموقع وعناوين الدروس بالعربية.
في هذا الدرس
recognize the three join methods and when each wins.
الموضوعات المخطط لها
- Nested loop: for each outer row, look up inner rows; great with a small outer side and an index on the inner side.
- Hash join: build a hash table of one side, probe with the other; good for large, unsorted inputs and equality joins.
- Merge join: both sides sorted on the join key; good when inputs are already ordered (index or sort).
- A nested loop with a huge outer row count and a seq scan inside is a classic disaster.
تفاصيل المخطط المبدئي
عرض عملي
three small plan excerpts with their node names and when you would expect each.
اختبر فهمك
Which join is best for one customer's few orders joined to products by primary key?
أظهر الإجابة
Nested loop with an index lookup.
التطبيق
طبّق هذا الدرس بمختبر الوحدة وتمارينها واختبارها.
تعليم الدرس كمكتمل اختياري ويمكنك التراجع عنه في أي وقت. يبقى تقدمك محفوظًا في هذا المتصفح.