topic hubPlatform, DevOps & Performanceofficial - Microsoftunreviewed - model text not yet checked

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.

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

Videos, posts and code changes

Linked by a Haiku matcher with a grounding quote from the item’s summary (link/topics.ts); machine-generated.

Source: Microsoft Learn (CC BY 4.0). Descriptions are Learn’s own.

What Learn documents here 8 of 9 Learn pages

Show 1 more