tips for optimizing a read-only sql database

后端 未结 7 2190

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

    In database:

    1. Denormalize it.
    2. Use more indexes where needed.
    3. Aggregate some data if you need it in your reports.

    In program:

    1. Use READ UNCOMMITTED isolation level.
    2. Use autocommits to escape long-run transactions.

提交回复
热议问题