bcquality/microsoft/knowledge/performance/prefer-readisolation-over-locktable-for-reads.good.al
Jesper Schulz-Wedde 3f0b6a41db Correct performance knowledge guidance
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 667c64a8-eb36-4440-bc41-6a97d8fb5542
2026-07-14 11:18:52 +02:00

13 lines
364 B
AL

codeunit 50232 "Perf Sample ReadIso Good"
{
procedure IsCustomerBlocked(CustomerNo: Code[20]): Boolean
var
Customer: Record Customer;
begin
Customer.ReadIsolation := IsolationLevel::ReadCommitted;
if not Customer.Get(CustomerNo) then
exit(false);
exit(Customer.Blocked <> Customer.Blocked::" ");
end;
}