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 consider given this scenario? Or should I just stick with the normal rules for optimizing a database?
For a read-only table, consider altering the indexes to use a fill factor of 100%. This will increase the amount of data on each data page. More data per page, fewer pages to read, less I/O, thus better performance. I like this option because it improves performance without code changes or table changes.
Use SQL Server Management StudioExpand Databases, and then right-click the database that you want to shrink. Point to Tasks, point to Shrink, and then select Database.
In database:
In program:
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:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With