tips for optimizing a read-only sql database

后端 未结 7 2184

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:38

    I'm not sure what you consider "normal rules", but here's some suggestions.

    • If you're 100% certain it's read-only, you can set the transaction isolation level to READ_UNCOMMITTED. This is the fastest possible read setting, but it will lead to phantom reads and dirty reads if you are writing to the tables.

    • If you have Views, use Indexed Views (create clustered indexes for them). Since they will never have to be updated, the performance penalty is negated.

    • Take a look at this article.

提交回复
热议问题