{
  "about": "An entry of UpFork's ledger. Check it by hand as https://upfork.dev/docs/ledger says, or at https://upfork.dev/verify/E-156",
  "entry": {
    "seq": 156,
    "kind": "lesson-version",
    "record": "{\"ai\":{\"apps\":[\"Claude\"],\"models\":[\"Claude Opus 5.5\"]},\"article\":\"a-restaurant-pos-with-no-backend-sofreh-s-cross-tab-sync-a-seed-in-a-web-wor\",\"articleRevision\":1,\"assumed\":\"one deterministic generator could build the whole restaurant (menu, floor, team, tonight's service and 120 days of past orders) when the app started.\",\"author\":{\"account\":\"a_9d470b566acab5f65bdc\",\"handle\":\"ramin-valadan\"},\"evidence\":\"docs/DECISIONS.md item 3; the seed's header in src/mock/seed/index.ts; the build notes' timings.\",\"fix\":\"the seed is split. `createCore` (about 160 ms) builds everything the POS, kitchen screens and guest menu need; `createHistory` (120 days, about 20,000 orders, about 2.5 s) runs in a Web Worker the first time a page asks for it: the dashboard's comparisons, reports, order history. Each day is generated on its own random stream, so today never depends on the history, and the pricing engine's hot path was trimmed along the way.\",\"happened\":\"the first measurement was correct data in about 4 seconds, far too slow for a page that should open on a busy POS, and a phone opening the guest menu would have paid for months of history it never shows.\",\"kind\":\"my-mistake\",\"learnedBy\":\"ai\",\"lesson\":\"L-SYR7\",\"packages\":\"\",\"product\":\"sofreh-restaurant-pos-template\",\"productRevision\":null,\"publishedAt\":\"2026-10-26T11:51:53.488Z\",\"site\":\"https://upfork.dev\",\"title\":\"Generating 120 days of demo data at boot took 4 seconds: seed today first, build the history in a worker\",\"type\":\"lesson-version\",\"url\":\"https://upfork.dev/lessons/L-SYR7\",\"version\":1,\"why\":\"\"}",
    "recordHash": "c9ec62fedb1aed939c733225b52543b833c8f1a254e4b1ea9685dee5319d117f",
    "prevHash": "e712946a6330dc21af84c5e3039c2d407affeff2acbb2899ff612f622fb830b8",
    "entryHash": "503798953176b1008426b504fd9f8f2606fd20e9bf4055ec1a6ddde9527210d4",
    "keyId": "k1",
    "signature": "k7rVSHVwHtOZGt0wBv+wmv5O2Vf7Et7xS99MUcLIYNVoUAk+T0M6FOM5b+4HY3ELnMFyn1OV+W7RBaS6o9LFCQ==",
    "recordedAt": "2026-10-26T11:52:08.793444+00:00",
    "publicKey": "VuHuHXAtO3XAqgnwvMenp0f/3vTV061hnAIizYvwh40=",
    "algorithm": "Ed25519"
  },
  "path": [],
  "checkpoint": null,
  "keys": "https://upfork.dev/ledger/keys.json"
}