Business Central 2026 release wave 2 (BC29): AL developers can turn indexes on/off in AL code
AL developers can now programmatically enable and disable database indexes in Business Central 2026 wave 2 (BC29), allowing app publishers to manage index performance tuning as part of their feature deployment.

post Dynamics 365 Lab
"AL developers can now turn indexes off/on from AL code. This allows app publishers to ship index management to match their features."
Key points
- In BC29, AL code can turn database indexes on or off, so app publishers can ship index management alongside their features.
- Microsoft updated methods in codeunit 2000000029 Index Management; these match the actions on the Index Management page.
- This builds on BC20 insights into missing indexes and on BC28 per-company index usage, cost viewing and turning indexes off.
- The example turns off an index on table 21 Cust. Ledger Entry, using table 2000000041 Field to identify it.
Quotes
- “AL developers can now turn indexes off/on from AL code. This allows app publishers to ship index management to match their features.” (It explains the core capability and its business value - developers now have programmatic control over indexes as part of application features.)
- “Indexes are an effective feature in relational databases, like SQL, to speed up the process of finding data.” (It clarifies why index management matters for application performance and user experience.)
AL objects mentioned
As named in the post. A name that matches one object page by exact type and name links to it; the others stay as named.
- codeunit “Index Management”
- table “Field”
- table 21 “Cust. Ledger Entry”
- page “Index Management”
- page 9520 “Database Wait Statistics”
- page 9521 “Database Missing Indexes”
Not found in BC28-30: codeunit “Index Management”, table “Field”, page “Index Management”.
Possibly related
No source states these links: they share an object, a model read them, or a person found the same subject.
- Business Central 2026 release wave 1 (BC28): Manage database index usage and cost per company (View index and Turn off indexes) — possibly related: both name Page 9521 “Database Missing Indexes”
- Business Central Queries: Simplifying Complex Data — possibly related: both name Table 21 “Cust. Ledger Entry”
- Creating Data Driven Text with AI in Business Central — possibly related: both name Table 21 “Cust. Ledger Entry”
- Database Wait Statistics in Business Central — possibly related: names Page 9520 “Database Wait Statistics”
- Dynamics 365 Business Central Online Wait Statistics in Telemetry: the AI boost — possibly related: both name Page 9520 “Database Wait Statistics”
- Dynamics 365 Business Central: How to calculate the total (sum) of a column in a table (Four ways) — possibly related: both name Table 21 “Cust. Ledger Entry”
- Dynamics 365 Business Central: Quickly get next Sequence/Entry Number (without using FindLast -> Entry No. + 1) — possibly related: both name Table 21 “Cust. Ledger Entry”
- Dynamics 365 Business Central: understanding the Database Wait Statistics page. — possibly related: both name Page 9520 “Database Wait Statistics”
- Missing indexes in Business Central databases — possibly related: names Page 9521 “Database Missing Indexes”
Context
- Features: Turn indexes on/off from AL code, Index Management codeunit, Database index management, Performance optimization
- Versions: BC29, 2026 release wave 2, BC28, BC20
Source: Dynamics 365 Lab - Yun Zhu, community blog. Summary, key points and quotes are derived (CONTENT-NOTICE.md); read the original for the full text.