knowledge(performance): add community rules for JIT, locks, and false positives

These articles capture BC-specific mechanics agents still invert: partial-record JIT on writes, Reset clearing SetLoadFields, HttpClient inside write transactions, and batched number series, plus negative guidance that stops over-eager Query and IsEmpty "fixes".

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Stefano Demiliani 2026-08-20 15:57:58 +02:00
parent 841b4e7cab
commit ebceff2332
54 changed files with 1270 additions and 0 deletions

View file

@ -0,0 +1,22 @@
codeunit 50100 "CountApprox Progress Bad"
{
procedure RecalcUsCustomers()
var
Customer: Record Customer;
Window: Dialog;
Counter: Integer;
Total: Integer;
begin
Customer.SetRange("Country/Region Code", 'US');
// Exact Count() is a SELECT COUNT(*) just to drive a progress bar.
Total := Customer.Count();
Window.Open('Processing #1###### of #2######');
if Customer.FindSet(true) then
repeat
Counter += 1;
Window.Update(1, Counter);
Window.Update(2, Total);
until Customer.Next() = 0;
Window.Close();
end;
}