{"title":"Migrating from SIFT to Nonclustered Columnstore Indexes","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/devenv-migrating-from-sift-to-ncci/","by":"JOP-AL","license":"Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-migrating-from-sift-to-ncci, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact.","credit":"Microsoft Corporation, CC BY 4.0","origin":"https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-migrating-from-sift-to-ncci","source":{"name":"Business Central developer and IT pro docs","repo":"https://github.com/MicrosoftDocs/dynamics365smb-devitpro-pb","commit":"828b6ee72fcd75755627cd6011f3d20899217ab2","date":"2026-11-19"},"checked":"2026-11-19","description":"Explains how you can change from using SIFT keys to nonclustered columnstore indexes in Business Central tables.","date":"2022-01-28","meta":{"topic":"concept-article"},"outline":[{"level":1,"title":"Migrating from SIFT to Nonclustered Columnstore Indexes","slug":"migrating-from-sift-to-nonclustered-columnstore-indexes","at":0,"chars":3824},{"level":2,"title":"Why migrating from SIFT Keys to NCCIs","slug":"why-migrating-from-sift-keys-to-nccis","at":293,"chars":616},{"level":2,"title":"Example","slug":"example","at":909,"chars":2650},{"level":2,"title":"Related information","slug":"related-information","at":3559,"chars":265}],"text":"# Migrating from SIFT to Nonclustered Columnstore Indexes\nThe nonclustered columnstore index (NCCI) is envisioned to be the successor of SumIndexField Technology \\(SIFT\\). This article provides examples of how to replace one or more SIFT keys on a table with a nonclustered columnstore index.\n## Why migrating from SIFT Keys to NCCIs\nWhen data is inserted, updated, or deleted in a table, the SIFT keys for that table are maintained. Maintaining these SIFT indexes has performance overhead. The size of the performance overhead depends on the number of keys and SumIndexFields that have been defined for each table. So give careful consideration to the number of SIFT keys that you define. And only maintain the SIFT keys that are important for your application.\nWith an NCCI, only one index structure exists and needs to be maintained. So there's no need to consider which query scenarios should be indexed.\n## Example\nThis example illustrates how to replace SIFT indexes on a table with an NCCI.\nThe following code creates a table with two SIFT keys defined on it. The Student table is a simple model of students with counts of ECTS points and how many courses they've passed.\n```al\ntable 50100 Student\n{\n    DataClassification = CustomerContent;\n\n    fields\n    {\n        field(1; ID; Integer)\n        {\n            DataClassification = EndUserPseudonymousIdentifiers;\n        }\n        field(2; Code; Text[50])\n        {\n            DataClassification = EndUserPseudonymousIdentifiers;\n        }\n        field(3; FirstNames; Text[100])\n        {\n            DataClassification = EndUserIdentifiableInformation;\n        }\n        field(4; ECTSPoints; Integer)\n        {\n            DataClassification = CustomerContent;\n        }\n        field(5; NumberOfCourses; Integer)\n        {\n            DataClassification = CustomerContent;\n        }\n    }\n\n    // Here are the SIFT keys that the developer added to the table:\n    keys\n    {\n        // Defines the primary key\n        key(PK; ID)\n        {\n            Clustered = true;\n        }\n        // Defines a SIFT index on Code with aggregations fields for count and SUM(ECTSPoints)\n        key(SIFTKeyOnCode; Code)\n        {\n            SumIndexFields = ECTSPoints;\n            MaintainSqlIndex = false;\n        }\n        // Defines a SIFT index on FirstNames with aggregations fields for count and SUM(NumberOfCourses)\n        key(SIFTKeyOnNames; FirstNames)\n        {\n            SumIndexFields = NumberOfCourses;\n            MaintainSqlIndex = false;\n        }\n    }\n}\n```\nTo replace SIFT keys with an NCCI, just add all fields to the definition of the NCCI and remove the SIFT keys:\n```al\ntable 50100 Student\n{\n    DataClassification = CustomerContent;\n    // Defines NCCI to replace the SIFT keys\n    ColumnStoreIndex = Code,FirstNames,ECTSPoints,NumberOfCourses;\n\n    fields\n    {\n        field(1; ID; Integer)\n        {\n            DataClassification = EndUserPseudonymousIdentifiers;\n        }\n        field(2; Code; Text[50])\n        {\n            DataClassification = EndUserPseudonymousIdentifiers;\n        }\n        field(3; FirstNames; Text[100])\n        {\n            DataClassification = EndUserIdentifiableInformation;\n        }\n        field(4; ECTSPoints; Integer)\n        {\n            DataClassification = CustomerContent;\n        }\n        field(5; NumberOfCourses; Integer)\n        {\n            DataClassification = CustomerContent;\n        }\n    }\n    keys\n    {\n        // Defines the primary key\n        key(PK; ID)\n        {\n            Clustered = true;\n        }\n    }\n}\n```\n## Related information\nSumIndexField Technology \\(SIFT\\)<devenv-sift-technology>\ndevenv-sift-and-sql-server\ndevenv-sift-tuning-and-tracing\ndevenv-sift-performance\ndevenv-ncci-overview\ndevenv-ncci-and-sql-server\ndevenv-ncci-tuning-and-tracing\ndevenv-ncci-performance"}