7.2.2. MS SQL Server 特性

Microsoft SQL Server 使用表的聚集索引。

默认情况下,聚集索引以表的主键为基础,但是,CUBA 应用程序使用的 UUID 类型的键不适合聚集索引。建议使用 nonclustered 修饰符创建 UUID 主键:

  1. create table SALES_CUSTOMER (
  2. ID uniqueidentifier not null,
  3. CREATE_TS datetime,
  4. ...
  5. primary key nonclustered (ID)
  6. )^