
99Standard Performance-Tuning Techniques
Place the DB’s tempDB on a separate disk from the data les, preferably SSD or RAM
disk.
208
The OS’s swap (page) les should also be placed on a separate disk. Failing to sepa-
rate these from the data les will signicantly degrade DB throughput.
3.5.1.3 Indexing
Create indexes* to speed up queries. Indexing works on one or more columns of a single
table. Those columns are the columns by which we usually query (i.e., the columns usually
involved in our query’s WHERE clause). Indexes typically have special B-tree structures
209
that store the data in sorted manner to allow faster data lookup and access. The ...