无法在 SQL Azure table 上创建空间索引,因为 PK 不是聚集索引
Can't create spatial index on a SQL Azure table as PK isn't the clustered index
我需要为我的地理位置列(Geography
类型)创建一个空间索引,但是 Azure SDK 创建了 table 和 CreatedAt
字段作为聚集索引,而不是主键。
我该如何解决这个问题?
Azure 移动应用程序对支持与大型表的离线同步有非常具体的要求。聚簇索引的语义就是其中之一。您可以创建一个新的 EntityDomainManager 副本来做正确的事情。但是,它不是开箱即用的。
只需获取 EntityDomainManager 和 EntityData 的来源 - 对其进行调整,使 CreatedAt 不是聚集索引,并使用新的 类 作为域管理器。
我需要为我的地理位置列(Geography
类型)创建一个空间索引,但是 Azure SDK 创建了 table 和 CreatedAt
字段作为聚集索引,而不是主键。
我该如何解决这个问题?
Azure 移动应用程序对支持与大型表的离线同步有非常具体的要求。聚簇索引的语义就是其中之一。您可以创建一个新的 EntityDomainManager 副本来做正确的事情。但是,它不是开箱即用的。
只需获取 EntityDomainManager 和 EntityData 的来源 - 对其进行调整,使 CreatedAt 不是聚集索引,并使用新的 类 作为域管理器。