mirror of
https://github.com/microsoft/BCQuality.git
synced 2026-10-05 14:46:55 +01:00
Add BC performance knowledge from OptimAL learnings (#198)
* 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>
This commit is contained in:
parent
56ce52a9c7
commit
87ba36e650
37 changed files with 920 additions and 37 deletions
|
|
@ -1,14 +1,18 @@
|
|||
codeunit 50219 "Perf Sample LoadFields Bad"
|
||||
{
|
||||
procedure ListUSCustomerNames()
|
||||
procedure CollectUSCustomerNamesAndCities(var DisplayNames: List of [Text])
|
||||
var
|
||||
Customer: Record Customer;
|
||||
begin
|
||||
// Loads every Customer column on every row, when only Name is read.
|
||||
Customer.SetRange("Country/Region Code", 'US');
|
||||
if Customer.FindSet() then
|
||||
repeat
|
||||
Message(Customer.Name);
|
||||
DisplayNames.Add(CustomerDisplayText(Customer));
|
||||
until Customer.Next() = 0;
|
||||
end;
|
||||
|
||||
local procedure CustomerDisplayText(Customer: Record Customer): Text
|
||||
begin
|
||||
exit(Customer.Name + ' ' + Customer.City);
|
||||
end;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue