bcquality/microsoft/knowledge/performance
Jesper Schulz-Wedde dc14e7bb2a Update 6 knowledge articles to align with revised instructions
- performance/use-setloadfields-for-partial-records: Clarify that
  filter-only fields (SetRange/SetFilter) do not need to be listed in
  SetLoadFields — the DB resolves them via the index without hydrating
  the value into AL memory.

- performance/avoid-calcfields-in-loops: Add explicit exception for
  OnAfterGetRecord and OnValidate triggers, which are platform-managed
  and not developer-authored loops.

- performance/split-read-only-and-write-paths-to-avoid-locktable: Add
  ReadIsolation as the primary recommendation for read-only paths;
  LockTable reserved for confirmed write paths only.

- performance/prefer-direct-record-over-recordref: Scope the finding to
  hot unbounded loops (10k+ rows) over ledger-entry-scale tables;
  RecordRef in bounded/admin/setup contexts is not a concern.

- upgrade/enum-changes-must-be-additive-at-the-end: Replace direct
  ObsoleteState = Removed guidance with the two-stage workflow (Pending
  first, Removed later); reference use-obsolete-pending-before-removed.

- upgrade/use-datatransfer-for-large-dataset-initialization: Add the
  >300,000 records threshold as the concrete trigger for requiring
  DataTransfer.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-24 10:36:08 +02:00
..
add-sift-keys-for-flowfields.good.al Co-locate AL samples next to their knowledge articles 2026-04-17 13:45:33 +02:00
add-sift-keys-for-flowfields.md Add [all] sentinel to bc-version; apply to version-agnostic knowledge 2026-04-23 16:00:03 +02:00
avoid-calcfields-in-loops.bad.al Co-locate AL samples next to their knowledge articles 2026-04-17 13:45:33 +02:00
avoid-calcfields-in-loops.good.al Co-locate AL samples next to their knowledge articles 2026-04-17 13:45:33 +02:00
avoid-calcfields-in-loops.md Update 6 knowledge articles to align with revised instructions 2026-04-24 10:36:08 +02:00
avoid-commit-inside-loops.bad.al Transaction and error handling in BC AL - new knowledge articles 2026-04-23 20:58:02 +03:00
avoid-commit-inside-loops.good.al Transaction and error handling in BC AL - new knowledge articles 2026-04-23 20:58:02 +03:00
avoid-commit-inside-loops.md Transaction and error handling in BC AL - new knowledge articles 2026-04-23 20:58:02 +03:00
avoid-findfirst-with-next.bad.al Co-locate AL samples next to their knowledge articles 2026-04-17 13:45:33 +02:00
avoid-findfirst-with-next.md Add [all] sentinel to bc-version; apply to version-agnostic knowledge 2026-04-23 16:00:03 +02:00
avoid-user-interaction-in-transactions.bad.al Co-locate AL samples next to their knowledge articles 2026-04-17 13:45:33 +02:00
avoid-user-interaction-in-transactions.good.al Co-locate AL samples next to their knowledge articles 2026-04-17 13:45:33 +02:00
avoid-user-interaction-in-transactions.md Reframe seed-article banners as community contribution invitations 2026-04-23 17:31:36 +02:00
codeunit-run-as-atomic-sub-operation.bad.al Transaction and error handling in BC AL - new knowledge articles 2026-04-23 20:58:02 +03:00
codeunit-run-as-atomic-sub-operation.good.al Transaction and error handling in BC AL - new knowledge articles 2026-04-23 20:58:02 +03:00
codeunit-run-as-atomic-sub-operation.md Transaction and error handling in BC AL - new knowledge articles 2026-04-23 20:58:02 +03:00
codeunit-run-requires-prior-commit-inside-transaction.bad.al Transaction and error handling in BC AL - new knowledge articles 2026-04-23 20:58:02 +03:00
codeunit-run-requires-prior-commit-inside-transaction.good.al Transaction and error handling in BC AL - new knowledge articles 2026-04-23 20:58:02 +03:00
codeunit-run-requires-prior-commit-inside-transaction.md Transaction and error handling in BC AL - new knowledge articles 2026-04-23 20:58:02 +03:00
combine-multiple-modifyall-calls.bad.al Extract 55 knowledge articles from BC review-agent prompt 2026-04-23 16:43:42 +02:00
combine-multiple-modifyall-calls.good.al Extract 55 knowledge articles from BC review-agent prompt 2026-04-23 16:43:42 +02:00
combine-multiple-modifyall-calls.md Extract 55 knowledge articles from BC review-agent prompt 2026-04-23 16:43:42 +02:00
do-not-flag-performance-on-bounded-tables.md Extract 55 knowledge articles from BC review-agent prompt 2026-04-23 16:43:42 +02:00
do-not-modify-records-in-onaftergetrecord.bad.al Extract 55 knowledge articles from BC review-agent prompt 2026-04-23 16:43:42 +02:00
do-not-modify-records-in-onaftergetrecord.good.al Extract 55 knowledge articles from BC review-agent prompt 2026-04-23 16:43:42 +02:00
do-not-modify-records-in-onaftergetrecord.md Extract 55 knowledge articles from BC review-agent prompt 2026-04-23 16:43:42 +02:00
do-not-re-get-rec-inside-onaftergetrecord.bad.al Extract 55 knowledge articles from BC review-agent prompt 2026-04-23 16:43:42 +02:00
do-not-re-get-rec-inside-onaftergetrecord.good.al Extract 55 knowledge articles from BC review-agent prompt 2026-04-23 16:43:42 +02:00
do-not-re-get-rec-inside-onaftergetrecord.md Extract 55 knowledge articles from BC review-agent prompt 2026-04-23 16:43:42 +02:00
do-not-retarget-flowfield-calcformula-to-larger-tables.md Extract 55 knowledge articles from BC review-agent prompt 2026-04-23 16:43:42 +02:00
filter-before-find.bad.al Co-locate AL samples next to their knowledge articles 2026-04-17 13:45:33 +02:00
filter-before-find.good.al Co-locate AL samples next to their knowledge articles 2026-04-17 13:45:33 +02:00
filter-before-find.md Add [all] sentinel to bc-version; apply to version-agnostic knowledge 2026-04-23 16:00:03 +02:00
guard-before-get-not-after.bad.al Extract 55 knowledge articles from BC review-agent prompt 2026-04-23 16:43:42 +02:00
guard-before-get-not-after.good.al Extract 55 knowledge articles from BC review-agent prompt 2026-04-23 16:43:42 +02:00
guard-before-get-not-after.md Extract 55 knowledge articles from BC review-agent prompt 2026-04-23 16:43:42 +02:00
keep-event-subscribers-lightweight.bad.al Co-locate AL samples next to their knowledge articles 2026-04-17 13:45:33 +02:00
keep-event-subscribers-lightweight.md Reframe seed-article banners as community contribution invitations 2026-04-23 17:31:36 +02:00
keep-sourcetabletemporary-on-api-and-background-pages.md Extract 55 knowledge articles from BC review-agent prompt 2026-04-23 16:43:42 +02:00
maintainsqlindex-false-disables-sift.md Extract 55 knowledge articles from BC review-agent prompt 2026-04-23 16:43:42 +02:00
only-fetch-records-you-use.bad.al Co-locate AL samples next to their knowledge articles 2026-04-17 13:45:33 +02:00
only-fetch-records-you-use.good.al Co-locate AL samples next to their knowledge articles 2026-04-17 13:45:33 +02:00
only-fetch-records-you-use.md Reframe seed-article banners as community contribution invitations 2026-04-23 17:31:36 +02:00
prefer-direct-record-over-recordref.bad.al Co-locate AL samples next to their knowledge articles 2026-04-17 13:45:33 +02:00
prefer-direct-record-over-recordref.good.al Co-locate AL samples next to their knowledge articles 2026-04-17 13:45:33 +02:00
prefer-direct-record-over-recordref.md Update 6 knowledge articles to align with revised instructions 2026-04-24 10:36:08 +02:00
prefer-get-for-primary-key-lookups.bad.al Co-locate AL samples next to their knowledge articles 2026-04-17 13:45:33 +02:00
prefer-get-for-primary-key-lookups.good.al Co-locate AL samples next to their knowledge articles 2026-04-17 13:45:33 +02:00
prefer-get-for-primary-key-lookups.md Reframe seed-article banners as community contribution invitations 2026-04-23 17:31:36 +02:00
set-current-key-to-match-filters.good.al Co-locate AL samples next to their knowledge articles 2026-04-17 13:45:33 +02:00
set-current-key-to-match-filters.md Reframe seed-article banners as community contribution invitations 2026-04-23 17:31:36 +02:00
skip-setloadfields-on-narrow-tables-and-short-loops.md Extract 55 knowledge articles from BC review-agent prompt 2026-04-23 16:43:42 +02:00
split-read-only-and-write-paths-to-avoid-locktable.bad.al Extract 55 knowledge articles from BC review-agent prompt 2026-04-23 16:43:42 +02:00
split-read-only-and-write-paths-to-avoid-locktable.good.al Extract 55 knowledge articles from BC review-agent prompt 2026-04-23 16:43:42 +02:00
split-read-only-and-write-paths-to-avoid-locktable.md Update 6 knowledge articles to align with revised instructions 2026-04-24 10:36:08 +02:00
treat-ledger-entry-tables-as-production-scale.md Extract 55 knowledge articles from BC review-agent prompt 2026-04-23 16:43:42 +02:00
understand-implicit-transaction-boundary.md Transaction and error handling in BC AL - new knowledge articles 2026-04-23 20:58:02 +03:00
use-addloadfields-in-report-layouts.good.al Co-locate AL samples next to their knowledge articles 2026-04-17 13:45:33 +02:00
use-addloadfields-in-report-layouts.md Reframe seed-article banners as community contribution invitations 2026-04-23 17:31:36 +02:00
use-calcsums-for-flowfield-totals.bad.al Co-locate AL samples next to their knowledge articles 2026-04-17 13:45:33 +02:00
use-calcsums-for-flowfield-totals.good.al Co-locate AL samples next to their knowledge articles 2026-04-17 13:45:33 +02:00
use-calcsums-for-flowfield-totals.md Reframe seed-article banners as community contribution invitations 2026-04-23 17:31:36 +02:00
use-findset-readonly-by-default.bad.al Co-locate AL samples next to their knowledge articles 2026-04-17 13:45:33 +02:00
use-findset-readonly-by-default.good.al Co-locate AL samples next to their knowledge articles 2026-04-17 13:45:33 +02:00
use-findset-readonly-by-default.md Add [all] sentinel to bc-version; apply to version-agnostic knowledge 2026-04-23 16:00:03 +02:00
use-findset-with-next.bad.al Co-locate AL samples next to their knowledge articles 2026-04-17 13:45:33 +02:00
use-findset-with-next.good.al Co-locate AL samples next to their knowledge articles 2026-04-17 13:45:33 +02:00
use-findset-with-next.md Reframe seed-article banners as community contribution invitations 2026-04-23 17:31:36 +02:00
use-insert-false-when-skipping-triggers.good.al Co-locate AL samples next to their knowledge articles 2026-04-17 13:45:33 +02:00
use-insert-false-when-skipping-triggers.md Reframe seed-article banners as community contribution invitations 2026-04-23 17:31:36 +02:00
use-isempty-for-existence-checks.bad.al Co-locate AL samples next to their knowledge articles 2026-04-17 13:45:33 +02:00
use-isempty-for-existence-checks.good.al Co-locate AL samples next to their knowledge articles 2026-04-17 13:45:33 +02:00
use-isempty-for-existence-checks.md Reframe seed-article banners as community contribution invitations 2026-04-23 17:31:36 +02:00
use-setloadfields-for-partial-records.bad.al Co-locate AL samples next to their knowledge articles 2026-04-17 13:45:33 +02:00
use-setloadfields-for-partial-records.good.al Co-locate AL samples next to their knowledge articles 2026-04-17 13:45:33 +02:00
use-setloadfields-for-partial-records.md Update 6 knowledge articles to align with revised instructions 2026-04-24 10:36:08 +02:00
use-single-instance-codeunits-for-caching.good.al Co-locate AL samples next to their knowledge articles 2026-04-17 13:45:33 +02:00
use-single-instance-codeunits-for-caching.md Reframe seed-article banners as community contribution invitations 2026-04-23 17:31:36 +02:00
use-temporary-tables-for-intermediate-data.good.al Co-locate AL samples next to their knowledge articles 2026-04-17 13:45:33 +02:00
use-temporary-tables-for-intermediate-data.md Reframe seed-article banners as community contribution invitations 2026-04-23 17:31:36 +02:00
use-tryfunction-for-error-catching-not-rollback.bad.al Transaction and error handling in BC AL - new knowledge articles 2026-04-23 20:58:02 +03:00
use-tryfunction-for-error-catching-not-rollback.good.al Transaction and error handling in BC AL - new knowledge articles 2026-04-23 20:58:02 +03:00
use-tryfunction-for-error-catching-not-rollback.md Transaction and error handling in BC AL - new knowledge articles 2026-04-23 20:58:02 +03:00