code change · performanceIntegration & APIsofficial - Microsoftreviewed - checked by Opus

#10478 [Bug Fix] #254: [APIV2][Performance] Replace FindFirst/Next with FindSet when rebuilding dimension set entries

The APIV2 dimension set lines page now uses FindSet() instead of FindFirst() when rebuilding dimension entries, eliminating unnecessary database round trips and improving performance as the number of dimension lines grows.

Pull request · merged into main (BC30) on 2026-10-14 by ventselartur · 1 file (+1 -1), 1 AL · performance · tier official · reviewed (checked by Opus)

What changed

  • Replaced FindFirst() with FindSet() in the dimension-set rebuild loop on APIV2DimensionSetLines.Page.al
  • FindSet() is the correct retrieval pattern for iterating an entire filtered result set
  • Reduces database round trips and improves APIV2 performance with larger dimension line counts
  • Functional behavior unchanged; loop logic and exit conditions remain identical
  • Performance optimization with no functional defect or breaking changes

AL objects touched

Context

  • Work items: AB#644774
  • Labels: AL: Apps (W1), Team: Integrations
  • Systems: integration

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

  • Get, Find, and Next methods — possibly related: Describes FindSet and FindFirst/Next methods used in the dimension set entry rebuild performance fix (model-linked)

Source: metadata of a merged pull request in microsoft/BCApps (bcapps): title, labels, changed paths and counts, with a summary in our words. No source text and no description beyond one short quote (D10, D61).