91超碰碰碰碰久久久久久综合_超碰av人澡人澡人澡人澡人掠_国产黄大片在线观看画质优化_txt小说免费全本

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

SQL Server數據庫配置改進

發布時間:2020-06-27 18:00:55 來源:網絡 閱讀:1598 作者:UltraSQL 欄目:關系型數據庫

針對SQL Server數據庫的配置,遵從最佳實踐,有如下幾項,看能否修改生產環境實例配置。


SQL Server數據庫配置改進


以下為調整方法和依據:

 

啟動賬號內存鎖定

保證SQL Server提交內存不會被交換或空間被操作系統收縮。

The SQL Server 64-bit version uses "locked pages" to prevent the process working set (committed memory) from being paged out or trimmed by the operating system.

參考:

https://support.microsoft.com/en-us/kb/2659143

 

限制最大內存大小

保留一定內存供SQL Server連接內存、其它應用、系統內存等使用。

參考:

https://mssqlwiki.com/2013/04/22/max-server-memory-do-i-need-to-configure/

 

啟動帳號即時文件初始化

快速初始化數據文件空間分配,減少等待。

This should be enabled in the vast majority of cases. SQL Server 2016 lets you enable this during the SQL server installation process.

參考:

Database Instant File Initialization

https://docs.microsoft.com/en-us/sql/relational-databases/databases/database-instant-file-initialization

Misconceptions around instant file initialization

https://www.sqlskills.com/blogs/paul/misconceptions-around-instant-file-initialization/

 

tempdb根據CPU核數配置多個文件

根據CPU核數配置多個相同配置的tempdb文件,提高tempdb的訪問性能,已成為SQL Server 2016的標配。

參考:

https://www.derekseaman.com/2014/09/sql-2014-always-ag-pt-7-tempdb.html

https://blogs.msdn.microsoft.com/psssql/2016/03/17/sql-2016-it-just-runs-faster-automatic-tempdb-configuration/

https://blogs.sentryone.com/aaronbertrand/sql-server-2016-tempdb-fixes/

 

Trace Flag放到啟動參數中

跟蹤標志用于開啟特定功能提高數據庫性能。

Common trace flags that should be enabled in most cases

TF 1117 - When growing a data file, grow all files at the same time so they remain the same size, reducing allocation contention points

參考:

http://support2.microsoft.com/kb/2154845

TF 1118 - Helps alleviate allocation contention in tempdb, SQL Server allocates full extents to each database object, thereby eliminating the contention on SGAM pages (more important with older versions of SQL Server). Recommendations to reduce allocation contention in SQL Server tempdb database

參考:

http://support2.microsoft.com/kb/2154845

TF 2371 - Lowers auto update statistics threshold for large tables.

參考:

http://blogs.msdn.com/b/saponsqlserver/archive/2011/09/07/changes-to-automatic-update-statistics-in-sql-server-traceflag-2371.aspx

TF 3226 - Supresses logging of successful database backup messages to the SQL Server Error Log.

參考:

https://www.sqlskills.com/blogs/paul/fed-up-with-backup-success-messages-bloating-your-error-logs/

 

optimize for ad hoc workloads

優化即系查詢的內存占用。

參考:

https://docs.microsoft.com/en-us/sql/database-engine/configure-windows/optimize-for-ad-hoc-workloads-server-configuration-option

https://www.red-gate.com/simple-talk/blogs/using-optimize-for-ad-hoc-workloads/

 

remote admin connections

數據庫有性能瓶頸時提供遠程管理訪問連接。

參考:

https://docs.microsoft.com/en-us/sql/database-engine/configure-windows/remote-admin-connections-server-configuration-option

https://www.brentozar.com/archive/2011/08/dedicated-admin-connection-why-want-when-need-how-tell-whos-using/




向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

奇台县| 峨边| 永寿县| 临漳县| 麟游县| 永仁县| 永修县| 额敏县| 大田县| 合水县| 鞍山市| 和平县| 米林县| 玛纳斯县| 海阳市| 龙门县| 雷波县| 青神县| 余庆县| 福泉市| 丰城市| 东山县| 屯留县| 山西省| 海原县| 宜州市| 新化县| 奉化市| 班玛县| 龙门县| 平湖市| 延安市| 威海市| 鄂尔多斯市| 纳雍县| 富锦市| 丹凤县| 阿拉善右旗| 九龙城区| 桂东县| 钟山县|