{
  "runtime": "PostgreSQL 18.6 (Debian 18.6-1.pgdg13+2) on aarch64-unknown-linux-gnu, compiled by gcc (Debian 14.2.0-19) 14.2.0, 64-bit",
  "fixtureSha256": "157cec087588c360694e13ac3d7884a36a261957ed600121232ceb75d9947568",
  "baseline": "SELECT o.customer_id, SUM(v.order_value) AS line_value\nFROM orders o\nCROSS JOIN LATERAL (\n  SELECT SUM(i.quantity * i.unit_price) AS order_value\n  FROM order_items i\n  WHERE i.order_id = o.order_id\n  HAVING COUNT(*) > 0\n) v\nWHERE o.status = 'paid'\n  AND o.placed_at >= $1::timestamptz\n  AND o.placed_at < $2::timestamptz\n  AND ($3::integer IS NULL OR o.customer_id = $3)\nGROUP BY o.customer_id\nORDER BY line_value DESC, o.customer_id",
  "repair": "SELECT o.customer_id, SUM(i.quantity * i.unit_price) AS line_value\nFROM orders o\nJOIN order_items i ON i.order_id = o.order_id\nWHERE o.status = 'paid'\n  AND o.placed_at >= $1::timestamptz\n  AND o.placed_at < $2::timestamptz\n  AND ($3::integer IS NULL OR o.customer_id = $3)\nGROUP BY o.customer_id\nORDER BY line_value DESC, o.customer_id",
  "settings": [
    {
      "name": "default_statistics_target",
      "setting": "100",
      "unit": null
    },
    {
      "name": "effective_cache_size",
      "setting": "524288",
      "unit": "8kB"
    },
    {
      "name": "jit",
      "setting": "on",
      "unit": null
    },
    {
      "name": "max_parallel_workers_per_gather",
      "setting": "2",
      "unit": null
    },
    {
      "name": "random_page_cost",
      "setting": "4",
      "unit": null
    },
    {
      "name": "seq_page_cost",
      "setting": "1",
      "unit": null
    },
    {
      "name": "shared_buffers",
      "setting": "16384",
      "unit": "8kB"
    },
    {
      "name": "work_mem",
      "setting": "4096",
      "unit": "kB"
    }
  ],
  "counts": [
    {
      "orders": "120003",
      "lines": "360005",
      "paid": "20158",
      "october_paid": "9176"
    }
  ],
  "cases": [
    {
      "name": "October",
      "params": [
        "2026-10-01 00:00+00",
        "2026-11-01 00:00+00",
        null
      ],
      "resultRows": 991,
      "resultSha256": "52efa00abb779e6f93ed5bcf57b9e8e48d9190785300abe24f3e88d0ef3d0137",
      "firstRows": [
        {
          "customer_id": 1001,
          "line_value": "378301.00"
        },
        {
          "customer_id": 1053,
          "line_value": "357.00"
        },
        {
          "customer_id": 1363,
          "line_value": "357.00"
        }
      ],
      "plans": {
        "baseline": {
          "Plan": {
            "Node Type": "Sort",
            "Parallel Aware": false,
            "Async Capable": false,
            "Startup Cost": 22428.42,
            "Total Cost": 22430.43,
            "Plan Rows": 804,
            "Plan Width": 36,
            "Actual Startup Time": 20.189,
            "Actual Total Time": 20.216,
            "Actual Rows": 991,
            "Actual Loops": 1,
            "Disabled": false,
            "Sort Key": [
              "(sum((sum(((i.quantity)::numeric * i.unit_price))))) DESC",
              "o.customer_id"
            ],
            "Sort Method": "quicksort",
            "Sort Space Used": 55,
            "Sort Space Type": "Memory",
            "Shared Hit Blocks": 37587,
            "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": "Aggregate",
                "Strategy": "Sorted",
                "Partial Mode": "Simple",
                "Parent Relationship": "Outer",
                "Parallel Aware": false,
                "Async Capable": false,
                "Startup Cost": 22367.47,
                "Total Cost": 22389.62,
                "Plan Rows": 804,
                "Plan Width": 36,
                "Actual Startup Time": 18.875,
                "Actual Total Time": 19.826,
                "Actual Rows": 991,
                "Actual Loops": 1,
                "Disabled": false,
                "Group Key": [
                  "o.customer_id"
                ],
                "Shared Hit Blocks": 37587,
                "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": "Sort",
                    "Parent Relationship": "Outer",
                    "Parallel Aware": false,
                    "Async Capable": false,
                    "Startup Cost": 22367.47,
                    "Total Cost": 22371.5,
                    "Plan Rows": 1614,
                    "Plan Width": 36,
                    "Actual Startup Time": 18.872,
                    "Actual Total Time": 19.127,
                    "Actual Rows": 9176,
                    "Actual Loops": 1,
                    "Disabled": false,
                    "Sort Key": [
                      "o.customer_id"
                    ],
                    "Sort Method": "quicksort",
                    "Sort Space Used": 671,
                    "Sort Space Type": "Memory",
                    "Shared Hit Blocks": 37587,
                    "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": "Nested Loop",
                        "Parent Relationship": "Outer",
                        "Parallel Aware": false,
                        "Async Capable": false,
                        "Join Type": "Inner",
                        "Startup Cost": 12.01,
                        "Total Cost": 22281.47,
                        "Plan Rows": 1614,
                        "Plan Width": 36,
                        "Actual Startup Time": 0.016,
                        "Actual Total Time": 18.208,
                        "Actual Rows": 9176,
                        "Actual Loops": 1,
                        "Disabled": false,
                        "Inner Unique": false,
                        "Shared Hit Blocks": 37587,
                        "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": "Seq Scan",
                            "Parent Relationship": "Outer",
                            "Parallel Aware": false,
                            "Async Capable": false,
                            "Relation Name": "orders",
                            "Alias": "o",
                            "Startup Cost": 0,
                            "Total Cost": 2865.05,
                            "Plan Rows": 1614,
                            "Plan Width": 8,
                            "Actual Startup Time": 0.005,
                            "Actual Total Time": 3.637,
                            "Actual Rows": 9176,
                            "Actual Loops": 1,
                            "Disabled": false,
                            "Filter": "((placed_at >= '2026-10-01 00:00:00+00'::timestamp with time zone) AND (placed_at < '2026-11-01 00:00:00+00'::timestamp with time zone) AND (status = 'paid'::text))",
                            "Rows Removed by Filter": 110827,
                            "Shared Hit Blocks": 765,
                            "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
                          },
                          {
                            "Node Type": "Aggregate",
                            "Strategy": "Plain",
                            "Partial Mode": "Simple",
                            "Parent Relationship": "Inner",
                            "Parallel Aware": false,
                            "Async Capable": false,
                            "Startup Cost": 12.01,
                            "Total Cost": 12.02,
                            "Plan Rows": 1,
                            "Plan Width": 32,
                            "Actual Startup Time": 0.001,
                            "Actual Total Time": 0.001,
                            "Actual Rows": 1,
                            "Actual Loops": 9176,
                            "Disabled": false,
                            "Filter": "(count(*) > 0)",
                            "Rows Removed by Filter": 0,
                            "Shared Hit Blocks": 36822,
                            "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": "order_items_pkey",
                                "Relation Name": "order_items",
                                "Alias": "i",
                                "Startup Cost": 0.42,
                                "Total Cost": 11.97,
                                "Plan Rows": 3,
                                "Plan Width": 9,
                                "Actual Startup Time": 0.001,
                                "Actual Total Time": 0.001,
                                "Actual Rows": 3,
                                "Actual Loops": 9176,
                                "Disabled": false,
                                "Index Cond": "(order_id = o.order_id)",
                                "Rows Removed by Index Recheck": 0,
                                "Index Searches": 9176,
                                "Shared Hit Blocks": 36822,
                                "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.075,
          "Triggers": [],
          "Execution Time": 20.259
        },
        "repair": {
          "Plan": {
            "Node Type": "Sort",
            "Parallel Aware": false,
            "Async Capable": false,
            "Startup Cost": 9145.05,
            "Total Cost": 9147.06,
            "Plan Rows": 804,
            "Plan Width": 36,
            "Actual Startup Time": 22.853,
            "Actual Total Time": 23.2,
            "Actual Rows": 991,
            "Actual Loops": 1,
            "Disabled": false,
            "Sort Key": [
              "(sum(((i.quantity)::numeric * i.unit_price))) DESC",
              "o.customer_id"
            ],
            "Sort Method": "quicksort",
            "Sort Space Used": 55,
            "Sort Space Type": "Memory",
            "Shared Hit Blocks": 3831,
            "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": "Aggregate",
                "Strategy": "Sorted",
                "Partial Mode": "Finalize",
                "Parent Relationship": "Outer",
                "Parallel Aware": false,
                "Async Capable": false,
                "Startup Cost": 8930.15,
                "Total Cost": 9106.25,
                "Plan Rows": 804,
                "Plan Width": 36,
                "Actual Startup Time": 21.912,
                "Actual Total Time": 22.842,
                "Actual Rows": 991,
                "Actual Loops": 1,
                "Disabled": false,
                "Group Key": [
                  "o.customer_id"
                ],
                "Shared Hit Blocks": 3831,
                "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": "Gather Merge",
                    "Parent Relationship": "Outer",
                    "Parallel Aware": false,
                    "Async Capable": false,
                    "Startup Cost": 8930.15,
                    "Total Cost": 9085.95,
                    "Plan Rows": 1367,
                    "Plan Width": 36,
                    "Actual Startup Time": 21.908,
                    "Actual Total Time": 22.385,
                    "Actual Rows": 1603,
                    "Actual Loops": 1,
                    "Disabled": false,
                    "Workers Planned": 1,
                    "Workers Launched": 1,
                    "Shared Hit Blocks": 3831,
                    "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": "Sort",
                        "Parent Relationship": "Outer",
                        "Parallel Aware": false,
                        "Async Capable": false,
                        "Startup Cost": 7930.14,
                        "Total Cost": 7932.15,
                        "Plan Rows": 804,
                        "Plan Width": 36,
                        "Actual Startup Time": 20.864,
                        "Actual Total Time": 20.895,
                        "Actual Rows": 801.5,
                        "Actual Loops": 2,
                        "Disabled": false,
                        "Sort Key": [
                          "o.customer_id"
                        ],
                        "Sort Method": "quicksort",
                        "Sort Space Used": 96,
                        "Sort Space Type": "Memory",
                        "Shared Hit Blocks": 3831,
                        "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,
                        "Workers": [
                          {
                            "Worker Number": 0,
                            "Sort Method": "quicksort",
                            "Sort Space Used": 91,
                            "Sort Space Type": "Memory"
                          }
                        ],
                        "Plans": [
                          {
                            "Node Type": "Aggregate",
                            "Strategy": "Hashed",
                            "Partial Mode": "Partial",
                            "Parent Relationship": "Outer",
                            "Parallel Aware": false,
                            "Async Capable": false,
                            "Startup Cost": 7881.3,
                            "Total Cost": 7891.35,
                            "Plan Rows": 804,
                            "Plan Width": 36,
                            "Actual Startup Time": 20.661,
                            "Actual Total Time": 20.779,
                            "Actual Rows": 801.5,
                            "Actual Loops": 2,
                            "Disabled": false,
                            "Group Key": [
                              "o.customer_id"
                            ],
                            "Planned Partitions": 0,
                            "HashAgg Batches": 1,
                            "Peak Memory Usage": 353,
                            "Disk Usage": 0,
                            "Shared Hit Blocks": 3824,
                            "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,
                            "Workers": [
                              {
                                "Worker Number": 0,
                                "HashAgg Batches": 1,
                                "Peak Memory Usage": 321,
                                "Disk Usage": 0
                              }
                            ],
                            "Plans": [
                              {
                                "Node Type": "Hash Join",
                                "Parent Relationship": "Outer",
                                "Parallel Aware": false,
                                "Async Capable": false,
                                "Join Type": "Inner",
                                "Startup Cost": 2885.23,
                                "Total Cost": 7852.82,
                                "Plan Rows": 2848,
                                "Plan Width": 13,
                                "Actual Startup Time": 4.194,
                                "Actual Total Time": 18.729,
                                "Actual Rows": 13762.5,
                                "Actual Loops": 2,
                                "Disabled": false,
                                "Inner Unique": true,
                                "Hash Cond": "(i.order_id = o.order_id)",
                                "Shared Hit Blocks": 3824,
                                "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,
                                "Workers": [],
                                "Plans": [
                                  {
                                    "Node Type": "Seq Scan",
                                    "Parent Relationship": "Outer",
                                    "Parallel Aware": true,
                                    "Async Capable": false,
                                    "Relation Name": "order_items",
                                    "Alias": "i",
                                    "Startup Cost": 0,
                                    "Total Cost": 4411.68,
                                    "Plan Rows": 211768,
                                    "Plan Width": 13,
                                    "Actual Startup Time": 0.005,
                                    "Actual Total Time": 6.291,
                                    "Actual Rows": 180002.5,
                                    "Actual Loops": 2,
                                    "Disabled": false,
                                    "Shared Hit Blocks": 2294,
                                    "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,
                                    "Workers": []
                                  },
                                  {
                                    "Node Type": "Hash",
                                    "Parent Relationship": "Inner",
                                    "Parallel Aware": false,
                                    "Async Capable": false,
                                    "Startup Cost": 2865.05,
                                    "Total Cost": 2865.05,
                                    "Plan Rows": 1614,
                                    "Plan Width": 8,
                                    "Actual Startup Time": 4.184,
                                    "Actual Total Time": 4.184,
                                    "Actual Rows": 9176,
                                    "Actual Loops": 2,
                                    "Disabled": false,
                                    "Hash Buckets": 16384,
                                    "Original Hash Buckets": 2048,
                                    "Hash Batches": 1,
                                    "Original Hash Batches": 1,
                                    "Peak Memory Usage": 487,
                                    "Shared Hit Blocks": 1530,
                                    "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,
                                    "Workers": [],
                                    "Plans": [
                                      {
                                        "Node Type": "Seq Scan",
                                        "Parent Relationship": "Outer",
                                        "Parallel Aware": false,
                                        "Async Capable": false,
                                        "Relation Name": "orders",
                                        "Alias": "o",
                                        "Startup Cost": 0,
                                        "Total Cost": 2865.05,
                                        "Plan Rows": 1614,
                                        "Plan Width": 8,
                                        "Actual Startup Time": 0.006,
                                        "Actual Total Time": 3.578,
                                        "Actual Rows": 9176,
                                        "Actual Loops": 2,
                                        "Disabled": false,
                                        "Filter": "((placed_at >= '2026-10-01 00:00:00+00'::timestamp with time zone) AND (placed_at < '2026-11-01 00:00:00+00'::timestamp with time zone) AND (status = 'paid'::text))",
                                        "Rows Removed by Filter": 110827,
                                        "Shared Hit Blocks": 1530,
                                        "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,
                                        "Workers": []
                                      }
                                    ]
                                  }
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                ]
              }
            ]
          },
          "Planning": {
            "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 Time": 0.155,
          "Triggers": [],
          "Execution Time": 23.266
        }
      },
      "ordinaryMs": {
        "baseline": [
          18.977792000000136,
          18.745334000000184,
          17.484709000000294,
          21.109500000000025,
          17.651499999999942,
          18.456624999999804
        ],
        "repair": [
          15.605417000000216,
          16.120625000000018,
          15.602958999999828,
          15.141791999999896,
          16.763625000000047,
          15.350708999999824
        ]
      }
    },
    {
      "name": "Full year",
      "params": [
        "2026-01-01 00:00+00",
        "2027-01-01 00:00+00",
        null
      ],
      "resultRows": 1002,
      "resultSha256": "273d6ff9c5a3dd7acfcb95f1d1b2ad4351a551912a7122bfb5513293a5b1949e",
      "firstRows": [
        {
          "customer_id": 1001,
          "line_value": "836094.00"
        },
        {
          "customer_id": 1053,
          "line_value": "595.00"
        },
        {
          "customer_id": 1094,
          "line_value": "535.50"
        }
      ],
      "plans": {
        "baseline": {
          "Plan": {
            "Node Type": "Sort",
            "Parallel Aware": false,
            "Async Capable": false,
            "Startup Cost": 243082.83,
            "Total Cost": 243085.33,
            "Plan Rows": 1001,
            "Plan Width": 36,
            "Actual Startup Time": 43.66,
            "Actual Total Time": 43.682,
            "Actual Rows": 1002,
            "Actual Loops": 1,
            "Disabled": false,
            "Sort Key": [
              "(sum((sum(((i.quantity)::numeric * i.unit_price))))) DESC",
              "o.customer_id"
            ],
            "Sort Method": "quicksort",
            "Sort Space Used": 56,
            "Sort Space Type": "Memory",
            "Shared Hit Blocks": 81655,
            "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": "Aggregate",
                "Strategy": "Sorted",
                "Partial Mode": "Simple",
                "Parent Relationship": "Outer",
                "Parallel Aware": false,
                "Async Capable": false,
                "Startup Cost": 242871.68,
                "Total Cost": 243032.94,
                "Plan Rows": 1001,
                "Plan Width": 36,
                "Actual Startup Time": 41.338,
                "Actual Total Time": 43.359,
                "Actual Rows": 1002,
                "Actual Loops": 1,
                "Disabled": false,
                "Group Key": [
                  "o.customer_id"
                ],
                "Shared Hit Blocks": 81655,
                "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": "Sort",
                    "Parent Relationship": "Outer",
                    "Parallel Aware": false,
                    "Async Capable": false,
                    "Startup Cost": 242871.68,
                    "Total Cost": 242921.27,
                    "Plan Rows": 19833,
                    "Plan Width": 36,
                    "Actual Startup Time": 41.313,
                    "Actual Total Time": 41.853,
                    "Actual Rows": 20158,
                    "Actual Loops": 1,
                    "Disabled": false,
                    "Sort Key": [
                      "o.customer_id"
                    ],
                    "Sort Method": "quicksort",
                    "Sort Space Used": 1398,
                    "Sort Space Type": "Memory",
                    "Shared Hit Blocks": 81655,
                    "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": "Nested Loop",
                        "Parent Relationship": "Outer",
                        "Parallel Aware": false,
                        "Async Capable": false,
                        "Join Type": "Inner",
                        "Startup Cost": 12.01,
                        "Total Cost": 241456.04,
                        "Plan Rows": 19833,
                        "Plan Width": 36,
                        "Actual Startup Time": 3.785,
                        "Actual Total Time": 39.854,
                        "Actual Rows": 20158,
                        "Actual Loops": 1,
                        "Disabled": false,
                        "Inner Unique": false,
                        "Shared Hit Blocks": 81655,
                        "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": "Seq Scan",
                            "Parent Relationship": "Outer",
                            "Parallel Aware": false,
                            "Async Capable": false,
                            "Relation Name": "orders",
                            "Alias": "o",
                            "Startup Cost": 0,
                            "Total Cost": 2865.05,
                            "Plan Rows": 19833,
                            "Plan Width": 8,
                            "Actual Startup Time": 3.736,
                            "Actual Total Time": 9.511,
                            "Actual Rows": 20158,
                            "Actual Loops": 1,
                            "Disabled": false,
                            "Filter": "((placed_at >= '2026-01-01 00:00:00+00'::timestamp with time zone) AND (placed_at < '2027-01-01 00:00:00+00'::timestamp with time zone) AND (status = 'paid'::text))",
                            "Rows Removed by Filter": 99845,
                            "Shared Hit Blocks": 765,
                            "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
                          },
                          {
                            "Node Type": "Aggregate",
                            "Strategy": "Plain",
                            "Partial Mode": "Simple",
                            "Parent Relationship": "Inner",
                            "Parallel Aware": false,
                            "Async Capable": false,
                            "Startup Cost": 12.01,
                            "Total Cost": 12.02,
                            "Plan Rows": 1,
                            "Plan Width": 32,
                            "Actual Startup Time": 0.001,
                            "Actual Total Time": 0.001,
                            "Actual Rows": 1,
                            "Actual Loops": 20158,
                            "Disabled": false,
                            "Filter": "(count(*) > 0)",
                            "Rows Removed by Filter": 0,
                            "Shared Hit Blocks": 80890,
                            "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": "order_items_pkey",
                                "Relation Name": "order_items",
                                "Alias": "i",
                                "Startup Cost": 0.42,
                                "Total Cost": 11.97,
                                "Plan Rows": 3,
                                "Plan Width": 9,
                                "Actual Startup Time": 0.001,
                                "Actual Total Time": 0.001,
                                "Actual Rows": 3,
                                "Actual Loops": 20158,
                                "Disabled": false,
                                "Index Cond": "(order_id = o.order_id)",
                                "Rows Removed by Index Recheck": 0,
                                "Index Searches": 20158,
                                "Shared Hit Blocks": 80890,
                                "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.085,
          "Triggers": [],
          "JIT": {
            "Functions": 16,
            "Options": {
              "Inlining": false,
              "Optimization": false,
              "Expressions": true,
              "Deforming": true
            },
            "Timing": {
              "Generation": {
                "Deform": 0.087,
                "Total": 0.308
              },
              "Inlining": 0,
              "Optimization": 0.15,
              "Emission": 3.614,
              "Total": 4.071
            }
          },
          "Execution Time": 44.082
        },
        "repair": {
          "Plan": {
            "Node Type": "Sort",
            "Parallel Aware": false,
            "Async Capable": false,
            "Startup Cost": 9762.09,
            "Total Cost": 9764.6,
            "Plan Rows": 1001,
            "Plan Width": 36,
            "Actual Startup Time": 32.548,
            "Actual Total Time": 33.874,
            "Actual Rows": 1002,
            "Actual Loops": 1,
            "Disabled": false,
            "Sort Key": [
              "(sum(((i.quantity)::numeric * i.unit_price))) DESC",
              "o.customer_id"
            ],
            "Sort Method": "quicksort",
            "Sort Space Used": 56,
            "Sort Space Type": "Memory",
            "Shared Hit Blocks": 3831,
            "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": "Aggregate",
                "Strategy": "Sorted",
                "Partial Mode": "Finalize",
                "Parent Relationship": "Outer",
                "Parallel Aware": false,
                "Async Capable": false,
                "Startup Cost": 9492.95,
                "Total Cost": 9712.21,
                "Plan Rows": 1001,
                "Plan Width": 36,
                "Actual Startup Time": 31.715,
                "Actual Total Time": 33.551,
                "Actual Rows": 1002,
                "Actual Loops": 1,
                "Disabled": false,
                "Group Key": [
                  "o.customer_id"
                ],
                "Shared Hit Blocks": 3831,
                "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": "Gather Merge",
                    "Parent Relationship": "Outer",
                    "Parallel Aware": false,
                    "Async Capable": false,
                    "Startup Cost": 9492.95,
                    "Total Cost": 9686.93,
                    "Plan Rows": 1702,
                    "Plan Width": 36,
                    "Actual Startup Time": 31.704,
                    "Actual Total Time": 33.202,
                    "Actual Rows": 1942,
                    "Actual Loops": 1,
                    "Disabled": false,
                    "Workers Planned": 1,
                    "Workers Launched": 1,
                    "Shared Hit Blocks": 3831,
                    "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": "Sort",
                        "Parent Relationship": "Outer",
                        "Parallel Aware": false,
                        "Async Capable": false,
                        "Startup Cost": 8492.94,
                        "Total Cost": 8495.45,
                        "Plan Rows": 1001,
                        "Plan Width": 36,
                        "Actual Startup Time": 27.512,
                        "Actual Total Time": 27.558,
                        "Actual Rows": 971,
                        "Actual Loops": 2,
                        "Disabled": false,
                        "Sort Key": [
                          "o.customer_id"
                        ],
                        "Sort Method": "quicksort",
                        "Sort Space Used": 110,
                        "Sort Space Type": "Memory",
                        "Shared Hit Blocks": 3831,
                        "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,
                        "Workers": [
                          {
                            "Worker Number": 0,
                            "Sort Method": "quicksort",
                            "Sort Space Used": 106,
                            "Sort Space Type": "Memory"
                          }
                        ],
                        "Plans": [
                          {
                            "Node Type": "Aggregate",
                            "Strategy": "Hashed",
                            "Partial Mode": "Partial",
                            "Parent Relationship": "Outer",
                            "Parallel Aware": false,
                            "Async Capable": false,
                            "Startup Cost": 8430.54,
                            "Total Cost": 8443.06,
                            "Plan Rows": 1001,
                            "Plan Width": 36,
                            "Actual Startup Time": 27.229,
                            "Actual Total Time": 27.387,
                            "Actual Rows": 971,
                            "Actual Loops": 2,
                            "Disabled": false,
                            "Group Key": [
                              "o.customer_id"
                            ],
                            "Planned Partitions": 0,
                            "HashAgg Batches": 1,
                            "Peak Memory Usage": 625,
                            "Disk Usage": 0,
                            "Shared Hit Blocks": 3824,
                            "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,
                            "Workers": [
                              {
                                "Worker Number": 0,
                                "HashAgg Batches": 1,
                                "Peak Memory Usage": 625,
                                "Disk Usage": 0
                              }
                            ],
                            "Plans": [
                              {
                                "Node Type": "Hash Join",
                                "Parent Relationship": "Outer",
                                "Parallel Aware": false,
                                "Async Capable": false,
                                "Join Type": "Inner",
                                "Startup Cost": 3112.97,
                                "Total Cost": 8080.55,
                                "Plan Rows": 34999,
                                "Plan Width": 13,
                                "Actual Startup Time": 7.162,
                                "Actual Total Time": 23.161,
                                "Actual Rows": 30235.5,
                                "Actual Loops": 2,
                                "Disabled": false,
                                "Inner Unique": true,
                                "Hash Cond": "(i.order_id = o.order_id)",
                                "Shared Hit Blocks": 3824,
                                "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,
                                "Workers": [],
                                "Plans": [
                                  {
                                    "Node Type": "Seq Scan",
                                    "Parent Relationship": "Outer",
                                    "Parallel Aware": true,
                                    "Async Capable": false,
                                    "Relation Name": "order_items",
                                    "Alias": "i",
                                    "Startup Cost": 0,
                                    "Total Cost": 4411.68,
                                    "Plan Rows": 211768,
                                    "Plan Width": 13,
                                    "Actual Startup Time": 0.004,
                                    "Actual Total Time": 6.106,
                                    "Actual Rows": 180002.5,
                                    "Actual Loops": 2,
                                    "Disabled": false,
                                    "Shared Hit Blocks": 2294,
                                    "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,
                                    "Workers": []
                                  },
                                  {
                                    "Node Type": "Hash",
                                    "Parent Relationship": "Inner",
                                    "Parallel Aware": false,
                                    "Async Capable": false,
                                    "Startup Cost": 2865.05,
                                    "Total Cost": 2865.05,
                                    "Plan Rows": 19833,
                                    "Plan Width": 8,
                                    "Actual Startup Time": 7.125,
                                    "Actual Total Time": 7.126,
                                    "Actual Rows": 20158,
                                    "Actual Loops": 2,
                                    "Disabled": false,
                                    "Hash Buckets": 32768,
                                    "Original Hash Buckets": 32768,
                                    "Hash Batches": 1,
                                    "Original Hash Batches": 1,
                                    "Peak Memory Usage": 1044,
                                    "Shared Hit Blocks": 1530,
                                    "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,
                                    "Workers": [],
                                    "Plans": [
                                      {
                                        "Node Type": "Seq Scan",
                                        "Parent Relationship": "Outer",
                                        "Parallel Aware": false,
                                        "Async Capable": false,
                                        "Relation Name": "orders",
                                        "Alias": "o",
                                        "Startup Cost": 0,
                                        "Total Cost": 2865.05,
                                        "Plan Rows": 19833,
                                        "Plan Width": 8,
                                        "Actual Startup Time": 0.006,
                                        "Actual Total Time": 5.33,
                                        "Actual Rows": 20158,
                                        "Actual Loops": 2,
                                        "Disabled": false,
                                        "Filter": "((placed_at >= '2026-01-01 00:00:00+00'::timestamp with time zone) AND (placed_at < '2027-01-01 00:00:00+00'::timestamp with time zone) AND (status = 'paid'::text))",
                                        "Rows Removed by Filter": 99845,
                                        "Shared Hit Blocks": 1530,
                                        "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,
                                        "Workers": []
                                      }
                                    ]
                                  }
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                ]
              }
            ]
          },
          "Planning": {
            "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 Time": 0.15,
          "Triggers": [],
          "Execution Time": 33.933
        }
      },
      "ordinaryMs": {
        "baseline": [
          37.21950000000015,
          36.37045799999987,
          39.3466669999998,
          39.696750000000065,
          35.431959000000006,
          36.955083999999715
        ],
        "repair": [
          22.8559580000001,
          23.943499999999858,
          23.492583000000195,
          23.57708300000013,
          22.013500000000022,
          22.668915999999626
        ]
      }
    },
    {
      "name": "One day",
      "params": [
        "2026-10-12 00:00+00",
        "2026-10-13 00:00+00",
        null
      ],
      "resultRows": 149,
      "resultSha256": "50b0f9a414cc641a99f8749a0a615c173796a8608bd34be08593e0b40458b66d",
      "firstRows": [
        {
          "customer_id": 1001,
          "line_value": "8806.00"
        },
        {
          "customer_id": 1007,
          "line_value": "59.50"
        },
        {
          "customer_id": 1008,
          "line_value": "59.50"
        }
      ],
      "plans": {
        "baseline": {
          "Plan": {
            "Node Type": "Sort",
            "Parallel Aware": false,
            "Async Capable": false,
            "Startup Cost": 3458.21,
            "Total Cost": 3458.33,
            "Plan Rows": 48,
            "Plan Width": 36,
            "Actual Startup Time": 4.159,
            "Actual Total Time": 4.162,
            "Actual Rows": 149,
            "Actual Loops": 1,
            "Disabled": false,
            "Sort Key": [
              "(sum((sum(((i.quantity)::numeric * i.unit_price))))) DESC",
              "o.customer_id"
            ],
            "Sort Method": "quicksort",
            "Sort Space Used": 29,
            "Sort Space Type": "Memory",
            "Shared Hit Blocks": 1952,
            "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": "Aggregate",
                "Strategy": "Sorted",
                "Partial Mode": "Simple",
                "Parent Relationship": "Outer",
                "Parallel Aware": false,
                "Async Capable": false,
                "Startup Cost": 3455.9,
                "Total Cost": 3456.87,
                "Plan Rows": 48,
                "Plan Width": 36,
                "Actual Startup Time": 4.045,
                "Actual Total Time": 4.096,
                "Actual Rows": 149,
                "Actual Loops": 1,
                "Disabled": false,
                "Group Key": [
                  "o.customer_id"
                ],
                "Shared Hit Blocks": 1952,
                "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": "Sort",
                    "Parent Relationship": "Outer",
                    "Parallel Aware": false,
                    "Async Capable": false,
                    "Startup Cost": 3455.9,
                    "Total Cost": 3456.02,
                    "Plan Rows": 49,
                    "Plan Width": 36,
                    "Actual Startup Time": 4.044,
                    "Actual Total Time": 4.052,
                    "Actual Rows": 296,
                    "Actual Loops": 1,
                    "Disabled": false,
                    "Sort Key": [
                      "o.customer_id"
                    ],
                    "Sort Method": "quicksort",
                    "Sort Space Used": 34,
                    "Sort Space Type": "Memory",
                    "Shared Hit Blocks": 1952,
                    "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": "Nested Loop",
                        "Parent Relationship": "Outer",
                        "Parallel Aware": false,
                        "Async Capable": false,
                        "Join Type": "Inner",
                        "Startup Cost": 12.01,
                        "Total Cost": 3454.52,
                        "Plan Rows": 49,
                        "Plan Width": 36,
                        "Actual Startup Time": 0.018,
                        "Actual Total Time": 4.018,
                        "Actual Rows": 296,
                        "Actual Loops": 1,
                        "Disabled": false,
                        "Inner Unique": false,
                        "Shared Hit Blocks": 1952,
                        "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": "Seq Scan",
                            "Parent Relationship": "Outer",
                            "Parallel Aware": false,
                            "Async Capable": false,
                            "Relation Name": "orders",
                            "Alias": "o",
                            "Startup Cost": 0,
                            "Total Cost": 2865.05,
                            "Plan Rows": 49,
                            "Plan Width": 8,
                            "Actual Startup Time": 0.006,
                            "Actual Total Time": 3.295,
                            "Actual Rows": 296,
                            "Actual Loops": 1,
                            "Disabled": false,
                            "Filter": "((placed_at >= '2026-10-12 00:00:00+00'::timestamp with time zone) AND (placed_at < '2026-10-13 00:00:00+00'::timestamp with time zone) AND (status = 'paid'::text))",
                            "Rows Removed by Filter": 119707,
                            "Shared Hit Blocks": 765,
                            "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
                          },
                          {
                            "Node Type": "Aggregate",
                            "Strategy": "Plain",
                            "Partial Mode": "Simple",
                            "Parent Relationship": "Inner",
                            "Parallel Aware": false,
                            "Async Capable": false,
                            "Startup Cost": 12.01,
                            "Total Cost": 12.02,
                            "Plan Rows": 1,
                            "Plan Width": 32,
                            "Actual Startup Time": 0.002,
                            "Actual Total Time": 0.002,
                            "Actual Rows": 1,
                            "Actual Loops": 296,
                            "Disabled": false,
                            "Filter": "(count(*) > 0)",
                            "Rows Removed by Filter": 0,
                            "Shared Hit Blocks": 1187,
                            "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": "order_items_pkey",
                                "Relation Name": "order_items",
                                "Alias": "i",
                                "Startup Cost": 0.42,
                                "Total Cost": 11.97,
                                "Plan Rows": 3,
                                "Plan Width": 9,
                                "Actual Startup Time": 0.001,
                                "Actual Total Time": 0.002,
                                "Actual Rows": 3,
                                "Actual Loops": 296,
                                "Disabled": false,
                                "Index Cond": "(order_id = o.order_id)",
                                "Rows Removed by Index Recheck": 0,
                                "Index Searches": 296,
                                "Shared Hit Blocks": 1187,
                                "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.098,
          "Triggers": [],
          "Execution Time": 4.191
        },
        "repair": {
          "Plan": {
            "Node Type": "Sort",
            "Parallel Aware": false,
            "Async Capable": false,
            "Startup Cost": 3451.37,
            "Total Cost": 3451.49,
            "Plan Rows": 48,
            "Plan Width": 36,
            "Actual Startup Time": 3.708,
            "Actual Total Time": 3.712,
            "Actual Rows": 149,
            "Actual Loops": 1,
            "Disabled": false,
            "Sort Key": [
              "(sum(((i.quantity)::numeric * i.unit_price))) DESC",
              "o.customer_id"
            ],
            "Sort Method": "quicksort",
            "Sort Space Used": 29,
            "Sort Space Type": "Memory",
            "Shared Hit Blocks": 1952,
            "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": "Aggregate",
                "Strategy": "Sorted",
                "Partial Mode": "Simple",
                "Parent Relationship": "Outer",
                "Parallel Aware": false,
                "Async Capable": false,
                "Startup Cost": 3447.59,
                "Total Cost": 3450.03,
                "Plan Rows": 48,
                "Plan Width": 36,
                "Actual Startup Time": 3.533,
                "Actual Total Time": 3.654,
                "Actual Rows": 149,
                "Actual Loops": 1,
                "Disabled": false,
                "Group Key": [
                  "o.customer_id"
                ],
                "Shared Hit Blocks": 1952,
                "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": "Sort",
                    "Parent Relationship": "Outer",
                    "Parallel Aware": false,
                    "Async Capable": false,
                    "Startup Cost": 3447.59,
                    "Total Cost": 3447.96,
                    "Plan Rows": 147,
                    "Plan Width": 13,
                    "Actual Startup Time": 3.529,
                    "Actual Total Time": 3.549,
                    "Actual Rows": 887,
                    "Actual Loops": 1,
                    "Disabled": false,
                    "Sort Key": [
                      "o.customer_id"
                    ],
                    "Sort Method": "quicksort",
                    "Sort Space Used": 52,
                    "Sort Space Type": "Memory",
                    "Shared Hit Blocks": 1952,
                    "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": "Nested Loop",
                        "Parent Relationship": "Outer",
                        "Parallel Aware": false,
                        "Async Capable": false,
                        "Join Type": "Inner",
                        "Startup Cost": 0.42,
                        "Total Cost": 3442.3,
                        "Plan Rows": 147,
                        "Plan Width": 13,
                        "Actual Startup Time": 0.004,
                        "Actual Total Time": 3.462,
                        "Actual Rows": 887,
                        "Actual Loops": 1,
                        "Disabled": false,
                        "Inner Unique": false,
                        "Shared Hit Blocks": 1952,
                        "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": "Seq Scan",
                            "Parent Relationship": "Outer",
                            "Parallel Aware": false,
                            "Async Capable": false,
                            "Relation Name": "orders",
                            "Alias": "o",
                            "Startup Cost": 0,
                            "Total Cost": 2865.05,
                            "Plan Rows": 49,
                            "Plan Width": 8,
                            "Actual Startup Time": 0.002,
                            "Actual Total Time": 2.996,
                            "Actual Rows": 296,
                            "Actual Loops": 1,
                            "Disabled": false,
                            "Filter": "((placed_at >= '2026-10-12 00:00:00+00'::timestamp with time zone) AND (placed_at < '2026-10-13 00:00:00+00'::timestamp with time zone) AND (status = 'paid'::text))",
                            "Rows Removed by Filter": 119707,
                            "Shared Hit Blocks": 765,
                            "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
                          },
                          {
                            "Node Type": "Index Scan",
                            "Parent Relationship": "Inner",
                            "Parallel Aware": false,
                            "Async Capable": false,
                            "Scan Direction": "Forward",
                            "Index Name": "order_items_pkey",
                            "Relation Name": "order_items",
                            "Alias": "i",
                            "Startup Cost": 0.42,
                            "Total Cost": 11.75,
                            "Plan Rows": 3,
                            "Plan Width": 13,
                            "Actual Startup Time": 0.001,
                            "Actual Total Time": 0.001,
                            "Actual Rows": 3,
                            "Actual Loops": 296,
                            "Disabled": false,
                            "Index Cond": "(order_id = o.order_id)",
                            "Rows Removed by Index Recheck": 0,
                            "Index Searches": 296,
                            "Shared Hit Blocks": 1187,
                            "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": 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 Time": 0.079,
          "Triggers": [],
          "Execution Time": 3.724
        }
      },
      "ordinaryMs": {
        "baseline": [
          4.984917000000223,
          4.88504200000034,
          4.235916999999972,
          3.931499999999687,
          3.926625000000058,
          4.3083330000004025
        ],
        "repair": [
          4.392083000000184,
          4.093541000000187,
          3.8982089999999516,
          3.8362090000000535,
          3.9234590000000935,
          3.817500000000109
        ]
      }
    },
    {
      "name": "Common customer",
      "params": [
        "2026-10-01 00:00+00",
        "2026-11-01 00:00+00",
        1001
      ],
      "resultRows": 1,
      "resultSha256": "6cfa8be69d2c6051f70a51a7e2384471f0143671dccf5612f3336be5c8dd7355",
      "firstRows": [
        {
          "customer_id": 1001,
          "line_value": "378301.00"
        }
      ],
      "plans": {
        "baseline": {
          "Plan": {
            "Node Type": "Sort",
            "Parallel Aware": false,
            "Async Capable": false,
            "Startup Cost": 16761.81,
            "Total Cost": 16761.81,
            "Plan Rows": 1,
            "Plan Width": 36,
            "Actual Startup Time": 14.252,
            "Actual Total Time": 14.253,
            "Actual Rows": 1,
            "Actual Loops": 1,
            "Disabled": false,
            "Sort Key": [
              "(sum((sum(((i.quantity)::numeric * i.unit_price))))) DESC"
            ],
            "Sort Method": "quicksort",
            "Sort Space Used": 25,
            "Sort Space Type": "Memory",
            "Shared Hit Blocks": 26276,
            "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": "Aggregate",
                "Strategy": "Sorted",
                "Partial Mode": "Simple",
                "Parent Relationship": "Outer",
                "Parallel Aware": false,
                "Async Capable": false,
                "Startup Cost": 12.01,
                "Total Cost": 16761.8,
                "Plan Rows": 1,
                "Plan Width": 36,
                "Actual Startup Time": 14.25,
                "Actual Total Time": 14.25,
                "Actual Rows": 1,
                "Actual Loops": 1,
                "Disabled": false,
                "Shared Hit Blocks": 26276,
                "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": "Nested Loop",
                    "Parent Relationship": "Outer",
                    "Parallel Aware": false,
                    "Async Capable": false,
                    "Join Type": "Inner",
                    "Startup Cost": 12.01,
                    "Total Cost": 16758.96,
                    "Plan Rows": 1130,
                    "Plan Width": 36,
                    "Actual Startup Time": 0.014,
                    "Actual Total Time": 14.026,
                    "Actual Rows": 6358,
                    "Actual Loops": 1,
                    "Disabled": false,
                    "Inner Unique": false,
                    "Shared Hit Blocks": 26276,
                    "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": "Seq Scan",
                        "Parent Relationship": "Outer",
                        "Parallel Aware": false,
                        "Async Capable": false,
                        "Relation Name": "orders",
                        "Alias": "o",
                        "Startup Cost": 0,
                        "Total Cost": 3165.06,
                        "Plan Rows": 1130,
                        "Plan Width": 8,
                        "Actual Startup Time": 0.004,
                        "Actual Total Time": 3.403,
                        "Actual Rows": 6358,
                        "Actual Loops": 1,
                        "Disabled": false,
                        "Filter": "((placed_at >= '2026-10-01 00:00:00+00'::timestamp with time zone) AND (placed_at < '2026-11-01 00:00:00+00'::timestamp with time zone) AND (status = 'paid'::text) AND (customer_id = 1001))",
                        "Rows Removed by Filter": 113645,
                        "Shared Hit Blocks": 765,
                        "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
                      },
                      {
                        "Node Type": "Aggregate",
                        "Strategy": "Plain",
                        "Partial Mode": "Simple",
                        "Parent Relationship": "Inner",
                        "Parallel Aware": false,
                        "Async Capable": false,
                        "Startup Cost": 12.01,
                        "Total Cost": 12.02,
                        "Plan Rows": 1,
                        "Plan Width": 32,
                        "Actual Startup Time": 0.002,
                        "Actual Total Time": 0.002,
                        "Actual Rows": 1,
                        "Actual Loops": 6358,
                        "Disabled": false,
                        "Filter": "(count(*) > 0)",
                        "Rows Removed by Filter": 0,
                        "Shared Hit Blocks": 25511,
                        "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": "order_items_pkey",
                            "Relation Name": "order_items",
                            "Alias": "i",
                            "Startup Cost": 0.42,
                            "Total Cost": 11.97,
                            "Plan Rows": 3,
                            "Plan Width": 9,
                            "Actual Startup Time": 0.001,
                            "Actual Total Time": 0.001,
                            "Actual Rows": 3,
                            "Actual Loops": 6358,
                            "Disabled": false,
                            "Index Cond": "(order_id = o.order_id)",
                            "Rows Removed by Index Recheck": 0,
                            "Index Searches": 6358,
                            "Shared Hit Blocks": 25511,
                            "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.064,
          "Triggers": [],
          "Execution Time": 14.268
        },
        "repair": {
          "Plan": {
            "Node Type": "Sort",
            "Parallel Aware": false,
            "Async Capable": false,
            "Startup Cost": 9161.97,
            "Total Cost": 9161.98,
            "Plan Rows": 1,
            "Plan Width": 36,
            "Actual Startup Time": 21.465,
            "Actual Total Time": 22.526,
            "Actual Rows": 1,
            "Actual Loops": 1,
            "Disabled": false,
            "Sort Key": [
              "(sum(((i.quantity)::numeric * i.unit_price))) DESC"
            ],
            "Sort Method": "quicksort",
            "Sort Space Used": 25,
            "Sort Space Type": "Memory",
            "Shared Hit Blocks": 3824,
            "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": "Aggregate",
                "Strategy": "Sorted",
                "Partial Mode": "Finalize",
                "Parent Relationship": "Outer",
                "Parallel Aware": false,
                "Async Capable": false,
                "Startup Cost": 4179.18,
                "Total Cost": 9161.96,
                "Plan Rows": 1,
                "Plan Width": 36,
                "Actual Startup Time": 21.462,
                "Actual Total Time": 22.523,
                "Actual Rows": 1,
                "Actual Loops": 1,
                "Disabled": false,
                "Shared Hit Blocks": 3824,
                "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": "Gather",
                    "Parent Relationship": "Outer",
                    "Parallel Aware": false,
                    "Async Capable": false,
                    "Startup Cost": 4179.18,
                    "Total Cost": 9161.94,
                    "Plan Rows": 2,
                    "Plan Width": 36,
                    "Actual Startup Time": 21.399,
                    "Actual Total Time": 22.517,
                    "Actual Rows": 2,
                    "Actual Loops": 1,
                    "Disabled": false,
                    "Workers Planned": 1,
                    "Workers Launched": 1,
                    "Single Copy": false,
                    "Shared Hit Blocks": 3824,
                    "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": "Aggregate",
                        "Strategy": "Sorted",
                        "Partial Mode": "Partial",
                        "Parent Relationship": "Outer",
                        "Parallel Aware": false,
                        "Async Capable": false,
                        "Startup Cost": 3179.18,
                        "Total Cost": 8161.74,
                        "Plan Rows": 1,
                        "Plan Width": 36,
                        "Actual Startup Time": 17.877,
                        "Actual Total Time": 17.878,
                        "Actual Rows": 1,
                        "Actual Loops": 2,
                        "Disabled": false,
                        "Shared Hit Blocks": 3824,
                        "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,
                        "Workers": [],
                        "Plans": [
                          {
                            "Node Type": "Hash Join",
                            "Parent Relationship": "Outer",
                            "Parallel Aware": false,
                            "Async Capable": false,
                            "Join Type": "Inner",
                            "Startup Cost": 3179.18,
                            "Total Cost": 8146.77,
                            "Plan Rows": 1994,
                            "Plan Width": 13,
                            "Actual Startup Time": 3.737,
                            "Actual Total Time": 17.13,
                            "Actual Rows": 9537,
                            "Actual Loops": 2,
                            "Disabled": false,
                            "Inner Unique": true,
                            "Hash Cond": "(i.order_id = o.order_id)",
                            "Shared Hit Blocks": 3824,
                            "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,
                            "Workers": [],
                            "Plans": [
                              {
                                "Node Type": "Seq Scan",
                                "Parent Relationship": "Outer",
                                "Parallel Aware": true,
                                "Async Capable": false,
                                "Relation Name": "order_items",
                                "Alias": "i",
                                "Startup Cost": 0,
                                "Total Cost": 4411.68,
                                "Plan Rows": 211768,
                                "Plan Width": 13,
                                "Actual Startup Time": 0.003,
                                "Actual Total Time": 6.232,
                                "Actual Rows": 180002.5,
                                "Actual Loops": 2,
                                "Disabled": false,
                                "Shared Hit Blocks": 2294,
                                "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,
                                "Workers": []
                              },
                              {
                                "Node Type": "Hash",
                                "Parent Relationship": "Inner",
                                "Parallel Aware": false,
                                "Async Capable": false,
                                "Startup Cost": 3165.06,
                                "Total Cost": 3165.06,
                                "Plan Rows": 1130,
                                "Plan Width": 8,
                                "Actual Startup Time": 3.729,
                                "Actual Total Time": 3.729,
                                "Actual Rows": 6358,
                                "Actual Loops": 2,
                                "Disabled": false,
                                "Hash Buckets": 8192,
                                "Original Hash Buckets": 2048,
                                "Hash Batches": 1,
                                "Original Hash Batches": 1,
                                "Peak Memory Usage": 313,
                                "Shared Hit Blocks": 1530,
                                "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,
                                "Workers": [],
                                "Plans": [
                                  {
                                    "Node Type": "Seq Scan",
                                    "Parent Relationship": "Outer",
                                    "Parallel Aware": false,
                                    "Async Capable": false,
                                    "Relation Name": "orders",
                                    "Alias": "o",
                                    "Startup Cost": 0,
                                    "Total Cost": 3165.06,
                                    "Plan Rows": 1130,
                                    "Plan Width": 8,
                                    "Actual Startup Time": 0.004,
                                    "Actual Total Time": 3.331,
                                    "Actual Rows": 6358,
                                    "Actual Loops": 2,
                                    "Disabled": false,
                                    "Filter": "((placed_at >= '2026-10-01 00:00:00+00'::timestamp with time zone) AND (placed_at < '2026-11-01 00:00:00+00'::timestamp with time zone) AND (status = 'paid'::text) AND (customer_id = 1001))",
                                    "Rows Removed by Filter": 113645,
                                    "Shared Hit Blocks": 1530,
                                    "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,
                                    "Workers": []
                                  }
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                ]
              }
            ]
          },
          "Planning": {
            "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 Time": 0.084,
          "Triggers": [],
          "Execution Time": 22.542
        }
      },
      "ordinaryMs": {
        "baseline": [
          12.65829199999962,
          14.265499999999975,
          12.617624999999862,
          13.50183300000026,
          11.949416999999812,
          13.653458000000228
        ],
        "repair": [
          16.42995800000017,
          17.226791999999932,
          18.114665999999943,
          16.724874999999884,
          16.86762499999986,
          16.87320899999986
        ]
      }
    },
    {
      "name": "Rare customer",
      "params": [
        "2026-10-01 00:00+00",
        "2026-11-01 00:00+00",
        1002
      ],
      "resultRows": 1,
      "resultSha256": "68433ff8637d835698f2e02841720bc22c1c1d5f8d647b3ac188b02095a18d16",
      "firstRows": [
        {
          "customer_id": 1002,
          "line_value": "178.50"
        }
      ],
      "plans": {
        "baseline": {
          "Plan": {
            "Node Type": "Sort",
            "Parallel Aware": false,
            "Async Capable": false,
            "Startup Cost": 3177.12,
            "Total Cost": 3177.12,
            "Plan Rows": 1,
            "Plan Width": 36,
            "Actual Startup Time": 2.997,
            "Actual Total Time": 2.997,
            "Actual Rows": 1,
            "Actual Loops": 1,
            "Disabled": false,
            "Sort Key": [
              "(sum((sum(((i.quantity)::numeric * i.unit_price))))) DESC"
            ],
            "Sort Method": "quicksort",
            "Sort Space Used": 25,
            "Sort Space Type": "Memory",
            "Shared Hit Blocks": 777,
            "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": "Aggregate",
                "Strategy": "Sorted",
                "Partial Mode": "Simple",
                "Parent Relationship": "Outer",
                "Parallel Aware": false,
                "Async Capable": false,
                "Startup Cost": 12.01,
                "Total Cost": 3177.11,
                "Plan Rows": 1,
                "Plan Width": 36,
                "Actual Startup Time": 2.995,
                "Actual Total Time": 2.996,
                "Actual Rows": 1,
                "Actual Loops": 1,
                "Disabled": false,
                "Shared Hit Blocks": 777,
                "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": "Nested Loop",
                    "Parent Relationship": "Outer",
                    "Parallel Aware": false,
                    "Async Capable": false,
                    "Join Type": "Inner",
                    "Startup Cost": 12.01,
                    "Total Cost": 3177.09,
                    "Plan Rows": 1,
                    "Plan Width": 36,
                    "Actual Startup Time": 1.572,
                    "Actual Total Time": 2.994,
                    "Actual Rows": 3,
                    "Actual Loops": 1,
                    "Disabled": false,
                    "Inner Unique": false,
                    "Shared Hit Blocks": 777,
                    "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": "Seq Scan",
                        "Parent Relationship": "Outer",
                        "Parallel Aware": false,
                        "Async Capable": false,
                        "Relation Name": "orders",
                        "Alias": "o",
                        "Startup Cost": 0,
                        "Total Cost": 3165.06,
                        "Plan Rows": 1,
                        "Plan Width": 8,
                        "Actual Startup Time": 1.559,
                        "Actual Total Time": 2.975,
                        "Actual Rows": 3,
                        "Actual Loops": 1,
                        "Disabled": false,
                        "Filter": "((placed_at >= '2026-10-01 00:00:00+00'::timestamp with time zone) AND (placed_at < '2026-11-01 00:00:00+00'::timestamp with time zone) AND (status = 'paid'::text) AND (customer_id = 1002))",
                        "Rows Removed by Filter": 120000,
                        "Shared Hit Blocks": 765,
                        "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
                      },
                      {
                        "Node Type": "Aggregate",
                        "Strategy": "Plain",
                        "Partial Mode": "Simple",
                        "Parent Relationship": "Inner",
                        "Parallel Aware": false,
                        "Async Capable": false,
                        "Startup Cost": 12.01,
                        "Total Cost": 12.02,
                        "Plan Rows": 1,
                        "Plan Width": 32,
                        "Actual Startup Time": 0.006,
                        "Actual Total Time": 0.006,
                        "Actual Rows": 1,
                        "Actual Loops": 3,
                        "Disabled": false,
                        "Filter": "(count(*) > 0)",
                        "Rows Removed by Filter": 0,
                        "Shared Hit Blocks": 12,
                        "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": "order_items_pkey",
                            "Relation Name": "order_items",
                            "Alias": "i",
                            "Startup Cost": 0.42,
                            "Total Cost": 11.97,
                            "Plan Rows": 3,
                            "Plan Width": 9,
                            "Actual Startup Time": 0.004,
                            "Actual Total Time": 0.004,
                            "Actual Rows": 3,
                            "Actual Loops": 3,
                            "Disabled": false,
                            "Index Cond": "(order_id = o.order_id)",
                            "Rows Removed by Index Recheck": 0,
                            "Index Searches": 3,
                            "Shared Hit Blocks": 12,
                            "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.051,
          "Triggers": [],
          "Execution Time": 3.008
        },
        "repair": {
          "Plan": {
            "Node Type": "Sort",
            "Parallel Aware": false,
            "Async Capable": false,
            "Startup Cost": 3177.11,
            "Total Cost": 3177.12,
            "Plan Rows": 1,
            "Plan Width": 36,
            "Actual Startup Time": 3.435,
            "Actual Total Time": 3.435,
            "Actual Rows": 1,
            "Actual Loops": 1,
            "Disabled": false,
            "Sort Key": [
              "(sum(((i.quantity)::numeric * i.unit_price))) DESC"
            ],
            "Sort Method": "quicksort",
            "Sort Space Used": 25,
            "Sort Space Type": "Memory",
            "Shared Hit Blocks": 777,
            "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": "Aggregate",
                "Strategy": "Sorted",
                "Partial Mode": "Simple",
                "Parent Relationship": "Outer",
                "Parallel Aware": false,
                "Async Capable": false,
                "Startup Cost": 0.42,
                "Total Cost": 3177.1,
                "Plan Rows": 1,
                "Plan Width": 36,
                "Actual Startup Time": 3.432,
                "Actual Total Time": 3.433,
                "Actual Rows": 1,
                "Actual Loops": 1,
                "Disabled": false,
                "Shared Hit Blocks": 777,
                "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": "Nested Loop",
                    "Parent Relationship": "Outer",
                    "Parallel Aware": false,
                    "Async Capable": false,
                    "Join Type": "Inner",
                    "Startup Cost": 0.42,
                    "Total Cost": 3177.07,
                    "Plan Rows": 3,
                    "Plan Width": 13,
                    "Actual Startup Time": 1.729,
                    "Actual Total Time": 3.428,
                    "Actual Rows": 9,
                    "Actual Loops": 1,
                    "Disabled": false,
                    "Inner Unique": false,
                    "Shared Hit Blocks": 777,
                    "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": "Seq Scan",
                        "Parent Relationship": "Outer",
                        "Parallel Aware": false,
                        "Async Capable": false,
                        "Relation Name": "orders",
                        "Alias": "o",
                        "Startup Cost": 0,
                        "Total Cost": 3165.06,
                        "Plan Rows": 1,
                        "Plan Width": 8,
                        "Actual Startup Time": 1.724,
                        "Actual Total Time": 3.413,
                        "Actual Rows": 3,
                        "Actual Loops": 1,
                        "Disabled": false,
                        "Filter": "((placed_at >= '2026-10-01 00:00:00+00'::timestamp with time zone) AND (placed_at < '2026-11-01 00:00:00+00'::timestamp with time zone) AND (status = 'paid'::text) AND (customer_id = 1002))",
                        "Rows Removed by Filter": 120000,
                        "Shared Hit Blocks": 765,
                        "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
                      },
                      {
                        "Node Type": "Index Scan",
                        "Parent Relationship": "Inner",
                        "Parallel Aware": false,
                        "Async Capable": false,
                        "Scan Direction": "Forward",
                        "Index Name": "order_items_pkey",
                        "Relation Name": "order_items",
                        "Alias": "i",
                        "Startup Cost": 0.42,
                        "Total Cost": 11.97,
                        "Plan Rows": 3,
                        "Plan Width": 13,
                        "Actual Startup Time": 0.003,
                        "Actual Total Time": 0.003,
                        "Actual Rows": 3,
                        "Actual Loops": 3,
                        "Disabled": false,
                        "Index Cond": "(order_id = o.order_id)",
                        "Rows Removed by Index Recheck": 0,
                        "Index Searches": 3,
                        "Shared Hit Blocks": 12,
                        "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": 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 Time": 0.066,
          "Triggers": [],
          "Execution Time": 3.443
        }
      },
      "ordinaryMs": {
        "baseline": [
          3.616375000000062,
          3.7325839999998607,
          3.540124999999989,
          3.8030830000002425,
          4.099583000000166,
          3.9241250000000036
        ],
        "repair": [
          4.425958000000264,
          3.814542000000074,
          3.7690419999998994,
          5.515416000000187,
          4.020665999999892,
          4.117041999999856
        ]
      }
    }
  ],
  "noLineEquivalence": true,
  "limits": "One isolated Linux PostgreSQL container; ordinary repetitions share warmed caches; no concurrency or production latency claim."
}
