SQL Server 2000 Storage and Access Methods 再m叫 Don vilen Program Manager SQL Server Development Team
SQL Server 2000 Storage and Access Methods Don Vilen Program Manager SQL Server Development Team
Agenda SQL Server Overview a SQL Server Architecture u Storage and Access Methods a Query Processing and optimization a Transaction Processing Other Topics
Agenda ◼ SQL Server Overview ◼ SQL Server Architecture ◼ Storage and Access Methods ◼ Query Processing and Optimization ◼ Transaction Processing ◼ Other Topics
Storage and Access Methods
Storage and Access Methods
Storage and Access Methods u Heap-a table with no Clustered Index General Index structure Clustered and Non-clustered indexes Covering Indexes Index intersection Fillfactor and performance u Index Reorganization a Locking and Indexes
Storage and Access Methods ◼ Heap – A table with no Clustered Index ◼ General Index Structure ◼ Clustered and Non-clustered Indexes ◼ Covering Indexes ◼ Index Intersection ◼ Fillfactor and Performance ◼ Index Reorganization ◼ Locking and Indexes
Heap-A Table with no Clustered Index sysindexes id indid =0 First AM Extent Bit Map 176 Heap Extent 160 Extent 168 Extent 176 Extent 184 01Con 01 Dunn SEattle 01Graff 02Funk 02 Randall paris 02Bacon 03White 03 Ota 03 Koch 04Durkin 04 Slichter 05 Lang 05LaBrie
Heap – A Table with no Clustered Index Heap Extent 160 Extent 168 Extent 176 01 02 03 … … Smith Ota Jones … ... … … … ... ... 01 02 03 04 … Akhtar Funk Smith Martin ... … … … ... ... 01 02 03 … … Rudd White Barr ... ... … … … ... ... 01 02 03 … … Con Funk White ... ... … … … ... ... 01 02 03 … … Smith Ota Jones … ... … … … ... ... 01 02 03 04 … Akhtar Funk Smith Martin ... … … … ... ... 01 02 03 … … Rudd White Barr ... ... … … … ... ... 01 02 03 04 05 Con Funk White Durkin Lang … … … ... ... 01 02 03 … … Smith Ota Jones … ... … … … ... ... 01 02 03 04 … Akhtar Funk Smith Martin ... … … … ... ... 01 02 03 … … Rudd White Barr ... ... … … … ... ... 01 02 03 … … Con Funk White ... ... … … … ... ... 01 02 03 … … Smith Ota Jones … ... … … … ... ... 01 02 03 04 … Akhtar Funk Smith Martin ... … … … ... ... 01 02 03 … … Rudd White Barr ... ... … … … ... ... 01 02 03 04 05 Dunn Randall Ota Slichter LaBrie … … … ... ... 01 02 03 … … Smith Ota Jones … ... … … … ... ... 01 02 03 04 … Akhtar Funk Smith Martin ... … … … ... ... 01 02 03 … … Rudd White Barr ... ... … … … ... ... 01 02 03 … … Con Funk White ... ... … … … ... ... 01 02 03 … … Smith Ota Jones … ... … … … ... ... 01 02 03 04 … Akhtar Funk Smith Martin ... … … … ... ... 01 02 03 … … Rudd White Barr ... ... … … … ... ... 01 02 03 … … Smith Ota Jones … ... … … … ... ... 01 02 03 04 … Akhtar Funk Smith Martin ... … … … ... ... 01 02 03 … … Rudd White Barr ... ... … … … ... ... 01 02 03 … … Con Funk White ... ... … … … ... ... 01 02 03 … … Smith Ota Jones … ... … … … ... ... 01 02 03 04 … Akhtar Funk Smith Martin ... … … … ... ... 01 02 03 … … Rudd White Barr ... ... … … … ... ... 01 02 03 … … Graff Bacon Koch ... ... … … … ... ... Extent 184 01 02 03 04 … Seattle Paris Tokyo Atlanta ... … … … ... ... IAM … 160 1 168 1 176 0 184 1 … Extent Bit Map id indid = 0 First IAM sysindexes