community postAL Developmentcommunity - not Microsoftreviewed - checked by Opus

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

Yun Zhu · 2026-10-09 · 513 words · about 2 min

"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.

Not found in BC28-30: codeunit “Index Management”, table “Field”, page “Index Management”.

No source states these links: they share an object, a model read them, or a person found the same subject.

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.