tips for optimizing a read-only sql database

后端 未结 7 2186

I have a mid-sized SQL Server 2008 database that has actuarial data in it. All of the use cases for it are read-only queries. Are there any special optimizations I should cons

7条回答
  •  情书的邮戳
    2021-02-08 11:27

    One strategy is to add a readonly filegroup to your DB, and put your readonly tables there. A readonly filegroup allows SQL Server to make a number of optimizations, including things like eliminating all locks.

    In addition to standard DB optimization:

    1. Make sure all tables and indexes have zero fragmentation
    2. Consider adding indexes that you may have otherwise avoided due to excessive update costs

提交回复
热议问题