您的位置:首页 >> 数据库 >> Sybase >> 正文
RSS
 

如何配置SQL Server 11,使得快速BCP具有更好的性能?

http://www.rdxx.com 06年06月13日 12:06 互连网 我要投稿

关键词: SQL Server , bcp , 性能 , 配置 , SQL
 有几种方法可以改善BCP的性能: 

(1)增加扩展分配(extent allocation)。缺省情况下,预分配2到31个扩展。在一个BCP批次中,未使用的预分配扩展被释放。为了获得最佳BCP性能,设置BCP批次大小和 “number of preallocated extents”预分配扩展个数,以消除空间重新释放。使用Sp_config number of pre-allocated exetents,nn 对于系统10:buildmaster -ycpreallocext=nn 
(2)对表进行分区 
(3)配置OAM页面的缓冲策略,以减少对OAM(Object Allocation Map)页面的物理读。 
(4)配置大I/O的缓冲池,例如16K:

  Sp-poolconfig default, "16K" (5)使用-A标记,加大网络包大小:

  bcp -A 16384


 
 
标签: SQL Server , bcp , 性能 , 配置 , SQL 打印本文
 
 
  热点搜索
 
 
 



Valid XHTML 1.0 Transitional
Copyright ©2005 - 2008 Rdxx.Com,All Rights Reserved
收藏本页
收藏本站