{
  "recordedAt": "2026-09-13T18:24:29.472Z",
  "methodology": "Only manufacturing-db restarted immediately before this run. Host page cache deliberately retained; NOT a cold-disk test. First EXPLAIN touches the lot ledger, second identical EXPLAIN is warm. HTTP routes are sequential first-touch after restart and may share buffers warmed by prior routes. Connection/setup and pool overhead are included in HTTP timings.",
  "sql": "SELECT id,occurred_at,signed_quantity FROM inventory_movements WHERE lot_id=$1 ORDER BY occurred_at,id LIMIT 50",
  "params": [
    1
  ],
  "first": [
    {
      "Plan": {
        "Node Type": "Limit",
        "Parallel Aware": false,
        "Async Capable": false,
        "Startup Cost": 0.42,
        "Total Cost": 50.89,
        "Plan Rows": 12,
        "Plan Width": 17,
        "Actual Startup Time": 0.031,
        "Actual Total Time": 0.08,
        "Actual Rows": 12,
        "Actual Loops": 1,
        "Shared Hit Blocks": 0,
        "Shared Read Blocks": 14,
        "Shared Dirtied Blocks": 0,
        "Shared Written Blocks": 0,
        "Local Hit Blocks": 0,
        "Local Read Blocks": 0,
        "Local Dirtied Blocks": 0,
        "Local Written Blocks": 0,
        "Temp Read Blocks": 0,
        "Temp Written Blocks": 0,
        "Plans": [
          {
            "Node Type": "Index Scan",
            "Parent Relationship": "Outer",
            "Parallel Aware": false,
            "Async Capable": false,
            "Scan Direction": "Forward",
            "Index Name": "inventory_movements_lot_id_occurred_at_id_idx",
            "Relation Name": "inventory_movements",
            "Alias": "inventory_movements",
            "Startup Cost": 0.42,
            "Total Cost": 50.89,
            "Plan Rows": 12,
            "Plan Width": 17,
            "Actual Startup Time": 0.031,
            "Actual Total Time": 0.078,
            "Actual Rows": 12,
            "Actual Loops": 1,
            "Index Cond": "(lot_id = 1)",
            "Rows Removed by Index Recheck": 0,
            "Shared Hit Blocks": 0,
            "Shared Read Blocks": 14,
            "Shared Dirtied Blocks": 0,
            "Shared Written Blocks": 0,
            "Local Hit Blocks": 0,
            "Local Read Blocks": 0,
            "Local Dirtied Blocks": 0,
            "Local Written Blocks": 0,
            "Temp Read Blocks": 0,
            "Temp Written Blocks": 0
          }
        ]
      },
      "Planning": {
        "Shared Hit Blocks": 100,
        "Shared Read Blocks": 29,
        "Shared Dirtied Blocks": 0,
        "Shared Written Blocks": 0,
        "Local Hit Blocks": 0,
        "Local Read Blocks": 0,
        "Local Dirtied Blocks": 0,
        "Local Written Blocks": 0,
        "Temp Read Blocks": 0,
        "Temp Written Blocks": 0
      },
      "Planning Time": 0.701,
      "Triggers": [],
      "Execution Time": 0.112
    }
  ],
  "warm": [
    {
      "Plan": {
        "Node Type": "Limit",
        "Parallel Aware": false,
        "Async Capable": false,
        "Startup Cost": 0.42,
        "Total Cost": 50.89,
        "Plan Rows": 12,
        "Plan Width": 17,
        "Actual Startup Time": 0.014,
        "Actual Total Time": 0.019,
        "Actual Rows": 12,
        "Actual Loops": 1,
        "Shared Hit Blocks": 14,
        "Shared Read Blocks": 0,
        "Shared Dirtied Blocks": 0,
        "Shared Written Blocks": 0,
        "Local Hit Blocks": 0,
        "Local Read Blocks": 0,
        "Local Dirtied Blocks": 0,
        "Local Written Blocks": 0,
        "Temp Read Blocks": 0,
        "Temp Written Blocks": 0,
        "Plans": [
          {
            "Node Type": "Index Scan",
            "Parent Relationship": "Outer",
            "Parallel Aware": false,
            "Async Capable": false,
            "Scan Direction": "Forward",
            "Index Name": "inventory_movements_lot_id_occurred_at_id_idx",
            "Relation Name": "inventory_movements",
            "Alias": "inventory_movements",
            "Startup Cost": 0.42,
            "Total Cost": 50.89,
            "Plan Rows": 12,
            "Plan Width": 17,
            "Actual Startup Time": 0.014,
            "Actual Total Time": 0.018,
            "Actual Rows": 12,
            "Actual Loops": 1,
            "Index Cond": "(lot_id = 1)",
            "Rows Removed by Index Recheck": 0,
            "Shared Hit Blocks": 14,
            "Shared Read Blocks": 0,
            "Shared Dirtied Blocks": 0,
            "Shared Written Blocks": 0,
            "Local Hit Blocks": 0,
            "Local Read Blocks": 0,
            "Local Dirtied Blocks": 0,
            "Local Written Blocks": 0,
            "Temp Read Blocks": 0,
            "Temp Written Blocks": 0
          }
        ]
      },
      "Planning": {
        "Shared Hit Blocks": 0,
        "Shared Read Blocks": 0,
        "Shared Dirtied Blocks": 0,
        "Shared Written Blocks": 0,
        "Local Hit Blocks": 0,
        "Local Read Blocks": 0,
        "Local Dirtied Blocks": 0,
        "Local Written Blocks": 0,
        "Temp Read Blocks": 0,
        "Temp Written Blocks": 0
      },
      "Planning Time": 0.026,
      "Triggers": [],
      "Execution Time": 0.033
    }
  ],
  "samples": [
    {
      "route": "/api/orders?search=SO-000001",
      "status": 200,
      "e2eMs": 30.57699600000001,
      "bytes": 326,
      "timing": {
        "queryMs": 7.756710999999996,
        "serverMs": 8.563994999999977
      }
    },
    {
      "route": "/api/trace/1",
      "status": 200,
      "e2eMs": 12.430094999999994,
      "bytes": 4651,
      "timing": {
        "queryMs": 10.382650000000012,
        "serverMs": 10.658127999999977
      }
    },
    {
      "route": "/api/risk",
      "status": 200,
      "e2eMs": 6.764198999999991,
      "bytes": 11414,
      "timing": {
        "queryMs": 3.917669999999987,
        "serverMs": 4.0388790000000085
      }
    },
    {
      "route": "/api/overview",
      "status": 200,
      "e2eMs": 60.065950999999984,
      "bytes": 99389,
      "timing": {
        "queryMs": 56.57069799999999,
        "serverMs": 56.664687000000015
      }
    }
  ]
}