您的位置:首页 > 博客中心 > 数据库 >

SQL Server 提高创建索引速度的 2 个方法

时间:2022-03-14 00:35

 

方法 1、

         使用tempdb来提速

         create index index_name on table_name (column_list) with(sort_in_tempdb = on);

方法 2、

         使用多线程为来提速

         create index index_name on table_name (column_list) with(maxdop = 4);

         maxdop ( max dgree of parallelism)这下记到了吧

 

         

热门排行

今日推荐

热门手游