Indexing data for performance
Indexing data for performance covers SumIndexField Technology (SIFT) and Nonclustered Columnstore Indexes (NCCI) in Business Central. It answers questions about fast sum calculations on numeric columns, FlowField optimization, SIFT maintenance costs, NCCI evaluation, tuning and tracing in SQL Server, and migrating from SIFT to NCCI.
- 9Learn pages
- 2videos
Path: Development > Programming in the AL language > Tables and data > Indexing data for performance · tier official · system platform · narrative unreviewed (model text not yet checked)
Overview
This section describes two ways to speed up aggregate calculations, such as sums behind FlowFields, on large tables. SIFT uses SumIndexFields tied to keys, which SQL Server implements as indexed views. NCCI uses the SQL Server nonclustered columnstore feature for analytical queries and is presented as having lower maintenance overhead and less database locking than SIFT keys.
The pages fit together in two tracks. The SIFT track includes the SIFT overview, SIFT and SQL Server, SIFT Index Performance and Maintenance, and Tuning and Tracing. The NCCI track includes the NCCI overview, NCCI and SQL Server, NCCI and Performance, NCCI Tuning and Tracing, and the migration guide.
Start with the SIFT and NCCI overview pages to understand the two approaches. Then read the performance pages to weigh costs and benefits. Use the migration page when you want to replace SIFT indexes on custom tables with NCCI.
Key points
- SIFT uses SumIndexFields on keys, backed by SQL Server indexed views with GROUP BY, to speed up sums on numeric columns and FlowFields.
- Each maintained SIFT index adds update costs and can cause locking conflicts, so design keys and fields around actual query filters.
- The MaintainSIFTIndex property controls whether a SIFT index is maintained, and it is part of the SIFT tuning guidance.
- SIFT indexes also help Count and Average FlowField calculations.
- NCCIs speed up sums on decimal, integer, and biginteger columns in large tables.
- NCCI in Business Central uses the SQL Server feature for analytical queries, excludes BLOBs, and reduces locking and maintenance compared with SIFT keys.
- Evaluate NCCI effectiveness and test the workload for performance regressions before changing configuration.
- SQL Server tools such as the profiler support tuning and tracing for both SIFT and NCCI.
Learn pages
- Migrating from SIFT to Nonclustered Columnstore Indexes (NCCIs): Explains how you can change from using SIFT keys to nonclustered columnstore indexes in Business Central tables.
- NCCI Tuning and Tracing: Explains how to tune and trace nonclustered columnstore indexes in Business Central.
- Nonclustered Columnstore Indexes (NCCI): Provides an introduction to nonclustered columnstore indexes in Business Central.
- Nonclustered Columnstore Indexes (NCCI) and Performance: Evaluate nonclustered columnstore index performance in Business Central, choose indexed fields, and test the tradeoffs before replacing SIFT indexes.
- Nonclustered Columnstore Indexes (NCCIs) and SQL Server: Explains how nonclustered columnstore indexes in Business Central tables work with SQL Server.
- SIFT and SQL Server: Explains how SIFT in Business Central tables work with SQL Server.
- SIFT Index Performance and Maintenance: Plan SIFT indexes to balance fast FlowField calculations against write costs, choose useful key fields, and test the performance of your changes.
- SumIndexField Technology (SIFT): Provides an introduction to SIFT indexes in Business Central.
- Tuning and Tracing: Explains how to tune and trace SIFT indexes in Business Central.
Videos, posts and code changes
Linked by a Haiku matcher with a grounding quote from the item’s summary (link/topics.ts); machine-generated.
- #13952 Add key on Email Message Attachment Data to speed up email deletion (code change): “Adds an index on the Data media field to avoid full table scans”
- #13953 Add key on Email Message Attachment Data to speed up email deletion (backport to releases/29.x) (code change): “A database key was added to the Data field of the Email Message Attachment table”
- #226 Performance knowledge: justify low-selectivity fields in key columns (code change): “low-selectivity fields in table keys requiring evidence such as filtered reads”
- Smarter Keys, Better Performance: Exploring Business Central v29 Index Updates (community post): “administrators to manage indexes and SIFT keys directly through the Index Management page”
- Dynamics 365 Business Central: use sequential GUIDs when possible. (community post): “Sequential GUIDs insert data in order, keeping related records clustered”
- Dynamics 365 Business Central 2026 Wave 1. What’s New in Performance. (community post): “Removing unused indexes can speed up writes, and enabling needed ones can speed up reads”
- Debunking Myths related to Table Structure in Dynamics 365 Business Central 2026 Wave 2 (community post): “The 8KB SQL Server limit applies only to primitive data types”
- BC 29 lets a single index span base table and table extension fields (community post): “Business Central 29 allows table extension keys to span both base table and extension fields in a single index”
- Business Central 29.0: Major Change to Table Extensions and SQL Storage. (community post): “cross-table indexes, can improve query performance”
- Planning Table Indexes for the Best Performance (community post): “Clustered indexes define physical row ordering and are used by Get()”
- Troubleshooting Series – Ep3 – Missing Indexes (community post): “Indexes can only be added by development, through an AppSource app”
- Business Central 2026 release wave 2 (BC29): AL developers can turn indexes on/off in AL code (community post): “AL developers can now programmatically enable and disable database indexes”
- Business Central 29.0: Major Change to Table Extensions & SQL. (video): “Unified table storage for extensions; Cross-field indexes spanning base and extension tables”
- What’s new: Server and Database (2026 release wave 2) (video): “Runtime-controlled index enablement; Cross-table indexes”
Source: Microsoft Learn (CC BY 4.0). Descriptions are Learn’s own.
What Learn documents here 8 of 9 Learn pages
- learnMigrating from SIFT to Nonclustered Columnstore Indexes (NCCIs)2022-01-28
- learnNCCI Tuning and Tracing2022-01-28
- learnNonclustered Columnstore Indexes (NCCI)2022-01-28
- learnNonclustered Columnstore Indexes (NCCI) and Performance2026-11-30
- learnNonclustered Columnstore Indexes (NCCIs) and SQL Server2022-01-28
- learnSIFT and SQL Server2021-04-01
- learnSIFT Index Performance and Maintenance2026-11-27
- learnSumIndexField Technology (SIFT)2021-04-01