Dynamics 365 組織資料庫索引

 

發行︰ 2017年1月

適用於: Dynamics 365 (on-premises)、Dynamics CRM 2016

在 Microsoft Dynamics 365 組織資料庫中建立的索引,其設計在於提供快速擷取經常要求的資料,從儲存在 Microsoft SQL Server 的表格和檢視表。Microsoft Dynamics 365 組織資料庫中建立的索引有下列幾項特色。

  • 視版本和套用的更新而定,Microsoft Dynamics 365 組織資料庫沒有任何自訂或已安裝解決方案 (現成資料庫) 時,總共會有 1,000 到 1,600 個索引。

  • 更新的 Microsoft Dynamics 365 版本擁有更多功能,因此也會有更多資料庫物件,像是表格和索引。

  • 當您建立新實體或參考快速尋找中的新欄時,至少會建立五個新索引。

  • 安裝解決方案會增加索引總數。

如何取得組織資料庫中儲存的所有索引的清單

若要取得所有索引的清單,請對組織資料庫執行下列範例 SQL 查詢。

SELECT s.name +'.'+t.name AS 'table_name',i.name,i.index_id
FROM sys.schemas s JOIN sys.tables t ON s.schema_id=t.schema_id
JOIN sys.indexes i ON t.object_id=i.object_id LEFT OUTER  JOIN sys.objects o 
ON o.parent_object_id=t.object_id AND i.name=o.name
WHERE i.name is not null

針對對應特定版本 Microsoft Dynamics 365 的組織資料庫中現成索引的近似值,從這些連結選取以下載包含索引清單的 Microsoft Office Excel 工作表。

如需 SQL Server 索引的詳細資訊,請參閱 SQL Server 索引設計指南

另請參閱

操作 Microsoft Dynamics 365
Microsoft Dynamics 365 資料保護及復原

© 2017 Microsoft. 著作權所有,並保留一切權利。 著作權