درس ذخیره و بازیابی یکی از پیشنیاز های مهم درس پایگاه داده است. در این اسلاید ها، بحث ساختار فایل و معماری DBMS شرح داده می شود و دانشجویان با انواع روش های شاخص گذاری مانند Clusterd Index و Non-Clustered Index آشنا می شوند.
اگر کامنتی برای بهبود اسلایدها دارید لطفا اقدام کنید.
22. شده گذاری خوشه شاخص نمایش
Index entries
Data entries = Data Record
direct search for
(Indexed Data File)
data entries
CLUSTERED
ترتیبdata entryترتیب با هاdata record
یکسان ها(هم به نزدیک یا)است.
23. گذاری خوشه شاخص نمایشنشده
(Index File)
(Data file)
Data entries
UNCLUSTERED
ترتیبdata entryترتیب با هاdata record
است متفاوت ها.
Data records
45. Hash index in SQL server
SQL server 2014 supports Hash Index
The following figure shows three index keys that are mapped to
three different buckets in the hash index.
Hash function is fix
BUCKET_COUNT is a parameter.
bucket count should be between 1 and 2 times the number of distinct values
in the index key.
Hash Indexing is suitable for memory-optimized table.
Reference: msdn.microsoft.com/
70. بررسیساختارUnclustered Tree
فرض:اندازهdata entry= 0.1 data record
برای الزم صفحات تعداد اگرdata recordها=Bباشد
برای الزم صفحات تعدادdata entry=0.15*B
تعدادdata Entryصفحه هر در=10* 0.66=6.6 R
Data entries
Data Records
UNCLUSTERED
93. به پاسخQueryبه دسترسی با فقط
Index
اگر موارد برخی درIndexداشته مناسب
به توانیم می ،باشیمQueryدسترسی بدون
دهیم پاسخ داده پایگاه های تاپل به.
مثال
Select DOB, count(*) from Employee group by DOB
Index on DOB
Select AVG(sal) from Employee DOB = 1330 and sal
between 3000 and 5000
Index on “DOB, salary”