简体   繁体   English

SQL Server 2008维护

[英]SQL Server 2008 Maintenance

Hi all i'm completely new to maintenance tasks on SQL Server. 大家好,我是SQL Server维护任务的新手。 I've set up a datawharehouse, that basically reads a load of xml files and imports this data into several tables using an SSIS. 我已经建立了一个数据仓库,基本上可以读取xml文件的负载,并使用SSIS将数据导入到几个表中。 Now i've set indexes on the tables concerned and optimized my ssis. 现在,我在有关表上设置了索引并优化了我的论文。 However i know that i should perform some maintenance tasks but i dont really know where to begin. 但是我知道我应该执行一些维护任务,但是我真的不知道从哪里开始。 We are talking about quite a bit of data, we are keeping data for up to 6 months and so far we have 3 months worth of data and the database is currently 147142.44 MB with roughly 57690230 rows in the main table. 我们正在谈论大量数据,我们将数据保留长达6个月,到目前为止,我们拥有3个月的数据,数据库当前为147142.44 MB,主表中大约有57690230行。 So it could easily double in size. 因此它的大小很容易加倍。 Just wondering what your recommendations are? 只是想知道您的建议是什么?

While there is the usual index rebuild and statistics update which are part of normal maintenance, I would look at all of the currently long running queries and try to do some index tuning, before the data size grows. 尽管通常的索引重建统计信息更新是常规维护的一部分,但我会查看所有当前运行时间较长的查询,并尝试在数据大小增长之前进行一些索引调整。 Resizing the database also forms part of a normal maintenance plan, if you can predict the growth and allocate enough space between maintenance runs then you can avoid the performance hit of space auto allocation (which will always happen at the worst possible time) 调整数据库的大小也是正常维护计划的一部分,如果您可以预测增长并在两次维护运行之间分配足够的空间,则可以避免空间自动分配的性能下降(这种情况总是在最坏的时间发生)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM