mirror of
https://github.com/microsoft/BCQuality.git
synced 2026-10-05 14:46:55 +01:00
* Add BC performance knowledge from OptimAL learnings Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> * Address review feedback on performance guidance Clarify predicate-supporting keys versus covering queries, demonstrate proven cache reuse, and evaluate the updated partial-load and bulk-update rules. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --------- Co-authored-by: Jesper Schulz-Wedde <jesper.schulzwedde@microsoft.com> Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
18 lines
548 B
AL
18 lines
548 B
AL
codeunit 50219 "Perf Sample LoadFields Bad"
|
|
{
|
|
procedure CollectUSCustomerNamesAndCities(var DisplayNames: List of [Text])
|
|
var
|
|
Customer: Record Customer;
|
|
begin
|
|
Customer.SetRange("Country/Region Code", 'US');
|
|
if Customer.FindSet() then
|
|
repeat
|
|
DisplayNames.Add(CustomerDisplayText(Customer));
|
|
until Customer.Next() = 0;
|
|
end;
|
|
|
|
local procedure CustomerDisplayText(Customer: Record Customer): Text
|
|
begin
|
|
exit(Customer.Name + ' ' + Customer.City);
|
|
end;
|
|
}
|