SQL Performance Tuning [Electronic resources] نسخه متنی

اینجــــا یک کتابخانه دیجیتالی است

با بیش از 100000 منبع الکترونیکی رایگان به زبان فارسی ، عربی و انگلیسی

SQL Performance Tuning [Electronic resources] - نسخه متنی

Peter Gulutzan, Trudy Pelzer

| نمايش فراداده ، افزودن یک نقد و بررسی
افزودن به کتابخانه شخصی
ارسال به دوستان
جستجو در متن کتاب
بیشتر
تنظیمات قلم

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

روز نیمروز شب
جستجو در لغت نامه
بیشتر
لیست موضوعات
توضیحات
افزودن یادداشت جدید




Parting Shots


At the most general abstraction, one could say that the trick to speeding up joins is to give the DBMS lots of informationbut not so much that it will be confused about which information to use. We've seen this over and over in this chapterfor example, sometimes we've said "Index here to improve the query," and in other cases, the advice has been "Don't index here because it will result in a useless path that you don't want the optimizer to take." So we can't leave you with some simple formula that will always speed up your joins. But there are some items that we do want to stress:


Expect nested-loops.


The best nested-loop is the one where all inner-table criteria are met.


The most likely joins should turn out to be foreign-key/primary-key joins.



This is not really the end of our joining story. The favorite question is still to come in the next chapterShould I join or should I subquery?

/ 124