mirror of
https://github.com/microsoft/BCQuality.git
synced 2026-08-06 09:26:52 +01:00
Pure git-mv relocation of all 7 performance articles from community/knowledge/performance/ to microsoft/knowledge/performance/. No content changes. Co-authored-by: Jesper Schulz-Wedde <jesper.schulzwedde@microsoft.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
32 lines
1.1 KiB
AL
32 lines
1.1 KiB
AL
table 50100 "Item Ledger Entry (Demo)"
|
|
{
|
|
fields
|
|
{
|
|
field(1; "Entry No."; Integer) { DataClassification = SystemMetadata; }
|
|
field(2; "Item No."; Code[20]) { DataClassification = CustomerContent; }
|
|
field(3; "Posting Date"; Date) { DataClassification = CustomerContent; }
|
|
field(4; Quantity; Decimal) { DataClassification = CustomerContent; }
|
|
field(5; "Cost Amount"; Decimal) { DataClassification = CustomerContent; }
|
|
}
|
|
|
|
keys
|
|
{
|
|
key(PK; "Entry No.") { Clustered = true; }
|
|
|
|
// Write-heavy ledger key: aggregates on this key are read rarely relative
|
|
// to INSERT frequency. Keeping SIFT live on every write is net-negative.
|
|
key(ByItemAndDate; "Item No.", "Posting Date")
|
|
{
|
|
SumIndexFields = Quantity, "Cost Amount";
|
|
MaintainSIFTIndex = false;
|
|
}
|
|
|
|
// Dashboard-facing key: aggregates read on every session load, underlying
|
|
// rows updated infrequently. Keeping SIFT live pays for itself.
|
|
key(ByItem; "Item No.")
|
|
{
|
|
SumIndexFields = Quantity;
|
|
MaintainSIFTIndex = true;
|
|
}
|
|
}
|
|
}
|