[
  {
    "name": "base/customer-order-index",
    "sql": "SELECT id,order_number,ordered_at FROM sales_orders WHERE customer_id=$1 AND ordered_at >= $2::date ORDER BY ordered_at,id LIMIT 50",
    "params": [
      1,
      "2023-01-01"
    ],
    "plan": [
      {
        "Plan": {
          "Node Type": "Limit",
          "Parallel Aware": false,
          "Async Capable": false,
          "Startup Cost": 0.41,
          "Total Cost": 86.08,
          "Plan Rows": 50,
          "Plan Width": 22,
          "Actual Startup Time": 0.035,
          "Actual Total Time": 0.1,
          "Actual Rows": 50,
          "Actual Loops": 1,
          "Shared Hit Blocks": 53,
          "Shared Read Blocks": 3,
          "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": "sales_orders_customer_id_ordered_at_id_idx",
              "Relation Name": "sales_orders",
              "Alias": "sales_orders",
              "Startup Cost": 0.41,
              "Total Cost": 2056.29,
              "Plan Rows": 1200,
              "Plan Width": 22,
              "Actual Startup Time": 0.035,
              "Actual Total Time": 0.097,
              "Actual Rows": 50,
              "Actual Loops": 1,
              "Index Cond": "((customer_id = 1) AND (ordered_at >= '2023-01-01'::date))",
              "Rows Removed by Index Recheck": 0,
              "Shared Hit Blocks": 53,
              "Shared Read Blocks": 3,
              "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
            }
          ]
        },
        "Settings": {
          "work_mem": "8MB",
          "max_parallel_workers": "1",
          "max_parallel_workers_per_gather": "0",
          "search_path": "reference, public"
        },
        "Planning": {
          "Shared Hit Blocks": 173,
          "Shared Read Blocks": 1,
          "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.703,
        "Triggers": [],
        "Execution Time": 0.129
      }
    ]
  },
  {
    "name": "base/open-work-index",
    "sql": "SELECT id,due_at FROM work_orders WHERE status=$1 AND due_at >= $2::date ORDER BY due_at,id LIMIT 50",
    "params": [
      "material_shortage",
      "2021-01-01"
    ],
    "plan": [
      {
        "Plan": {
          "Node Type": "Limit",
          "Parallel Aware": false,
          "Async Capable": false,
          "Startup Cost": 0.42,
          "Total Cost": 4.48,
          "Plan Rows": 3,
          "Plan Width": 12,
          "Actual Startup Time": 0.024,
          "Actual Total Time": 0.025,
          "Actual Rows": 6,
          "Actual Loops": 1,
          "Shared Hit Blocks": 4,
          "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 Only Scan",
              "Parent Relationship": "Outer",
              "Parallel Aware": false,
              "Async Capable": false,
              "Scan Direction": "Forward",
              "Index Name": "work_orders_status_due_at_id_idx",
              "Relation Name": "work_orders",
              "Alias": "work_orders",
              "Startup Cost": 0.42,
              "Total Cost": 4.48,
              "Plan Rows": 3,
              "Plan Width": 12,
              "Actual Startup Time": 0.024,
              "Actual Total Time": 0.025,
              "Actual Rows": 6,
              "Actual Loops": 1,
              "Index Cond": "((status = 'material_shortage'::text) AND (due_at >= '2021-01-01'::date))",
              "Rows Removed by Index Recheck": 0,
              "Heap Fetches": 0,
              "Shared Hit Blocks": 4,
              "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
            }
          ]
        },
        "Settings": {
          "work_mem": "8MB",
          "max_parallel_workers": "1",
          "max_parallel_workers_per_gather": "0",
          "search_path": "reference, public"
        },
        "Planning": {
          "Shared Hit Blocks": 80,
          "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.342,
        "Triggers": [],
        "Execution Time": 0.034
      }
    ]
  },
  {
    "name": "base/event-operation-index",
    "sql": "SELECT id,occurred_at,quantity_good FROM production_events WHERE operation_id=$1 ORDER BY occurred_at,id LIMIT 50",
    "params": [
      1
    ],
    "plan": [
      {
        "Plan": {
          "Node Type": "Limit",
          "Parallel Aware": false,
          "Async Capable": false,
          "Startup Cost": 0.43,
          "Total Cost": 11.98,
          "Plan Rows": 3,
          "Plan Width": 17,
          "Actual Startup Time": 0.018,
          "Actual Total Time": 0.019,
          "Actual Rows": 3,
          "Actual Loops": 1,
          "Shared Hit Blocks": 4,
          "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": "production_events_operation_id_occurred_at_id_idx",
              "Relation Name": "production_events",
              "Alias": "production_events",
              "Startup Cost": 0.43,
              "Total Cost": 11.98,
              "Plan Rows": 3,
              "Plan Width": 17,
              "Actual Startup Time": 0.018,
              "Actual Total Time": 0.018,
              "Actual Rows": 3,
              "Actual Loops": 1,
              "Index Cond": "(operation_id = 1)",
              "Rows Removed by Index Recheck": 0,
              "Shared Hit Blocks": 4,
              "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
            }
          ]
        },
        "Settings": {
          "work_mem": "8MB",
          "max_parallel_workers": "1",
          "max_parallel_workers_per_gather": "0",
          "search_path": "reference, public"
        },
        "Planning": {
          "Shared Hit Blocks": 62,
          "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.282,
        "Triggers": [],
        "Execution Time": 0.04
      }
    ]
  },
  {
    "name": "base/inventory-lot-index",
    "sql": "SELECT id,occurred_at,signed_quantity FROM inventory_movements WHERE lot_id=$1 ORDER BY occurred_at,id LIMIT 50",
    "params": [
      1
    ],
    "plan": [
      {
        "Plan": {
          "Node Type": "Limit",
          "Parallel Aware": false,
          "Async Capable": false,
          "Startup Cost": 0.42,
          "Total Cost": 50.89,
          "Plan Rows": 12,
          "Plan Width": 17,
          "Actual Startup Time": 0.016,
          "Actual Total Time": 0.063,
          "Actual Rows": 12,
          "Actual Loops": 1,
          "Shared Hit Blocks": 14,
          "Shared Read Blocks": 0,
          "Shared Dirtied Blocks": 0,
          "Shared Written Blocks": 0,
          "Local Hit Blocks": 0,
          "Local Read Blocks": 0,
          "Local Dirtied Blocks": 0,
          "Local Written Blocks": 0,
          "Temp Read Blocks": 0,
          "Temp Written Blocks": 0,
          "Plans": [
            {
              "Node Type": "Index Scan",
              "Parent Relationship": "Outer",
              "Parallel Aware": false,
              "Async Capable": false,
              "Scan Direction": "Forward",
              "Index Name": "inventory_movements_lot_id_occurred_at_id_idx",
              "Relation Name": "inventory_movements",
              "Alias": "inventory_movements",
              "Startup Cost": 0.42,
              "Total Cost": 50.89,
              "Plan Rows": 12,
              "Plan Width": 17,
              "Actual Startup Time": 0.016,
              "Actual Total Time": 0.062,
              "Actual Rows": 12,
              "Actual Loops": 1,
              "Index Cond": "(lot_id = 1)",
              "Rows Removed by Index Recheck": 0,
              "Shared Hit Blocks": 14,
              "Shared Read Blocks": 0,
              "Shared Dirtied Blocks": 0,
              "Shared Written Blocks": 0,
              "Local Hit Blocks": 0,
              "Local Read Blocks": 0,
              "Local Dirtied Blocks": 0,
              "Local Written Blocks": 0,
              "Temp Read Blocks": 0,
              "Temp Written Blocks": 0
            }
          ]
        },
        "Settings": {
          "work_mem": "8MB",
          "max_parallel_workers": "1",
          "max_parallel_workers_per_gather": "0",
          "search_path": "reference, public"
        },
        "Planning": {
          "Shared Hit Blocks": 71,
          "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.314,
        "Triggers": [],
        "Execution Time": 0.071
      }
    ]
  },
  {
    "name": "base/inspection-lot-index",
    "sql": "SELECT * FROM inspections WHERE lot_id=$1 ORDER BY inspected_at,id LIMIT 50",
    "params": [
      1
    ],
    "plan": [
      {
        "Plan": {
          "Node Type": "Limit",
          "Parallel Aware": false,
          "Async Capable": false,
          "Startup Cost": 0.42,
          "Total Cost": 8.44,
          "Plan Rows": 1,
          "Plan Width": 37,
          "Actual Startup Time": 0.012,
          "Actual Total Time": 0.013,
          "Actual Rows": 1,
          "Actual Loops": 1,
          "Shared Hit Blocks": 4,
          "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": "inspections_lot_id_inspected_at_id_idx",
              "Relation Name": "inspections",
              "Alias": "inspections",
              "Startup Cost": 0.42,
              "Total Cost": 8.44,
              "Plan Rows": 1,
              "Plan Width": 37,
              "Actual Startup Time": 0.012,
              "Actual Total Time": 0.012,
              "Actual Rows": 1,
              "Actual Loops": 1,
              "Index Cond": "(lot_id = 1)",
              "Rows Removed by Index Recheck": 0,
              "Shared Hit Blocks": 4,
              "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
            }
          ]
        },
        "Settings": {
          "work_mem": "8MB",
          "max_parallel_workers": "1",
          "max_parallel_workers_per_gather": "0",
          "search_path": "reference, public"
        },
        "Planning": {
          "Shared Hit Blocks": 68,
          "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.29,
        "Triggers": [],
        "Execution Time": 0.02
      }
    ]
  },
  {
    "name": "base/trace-join",
    "sql": "SELECT DISTINCT w.id,sl.sales_order_id FROM material_consumption m JOIN operations o ON o.id=m.operation_id JOIN work_orders w ON w.id=o.work_order_id JOIN sales_order_lines sl ON sl.id=w.sales_order_line_id WHERE m.lot_id=$1 ORDER BY w.id LIMIT 50",
    "params": [
      1
    ],
    "plan": [
      {
        "Plan": {
          "Node Type": "Limit",
          "Parallel Aware": false,
          "Async Capable": false,
          "Startup Cost": 101.55,
          "Total Cost": 101.63,
          "Plan Rows": 10,
          "Plan Width": 8,
          "Actual Startup Time": 0.178,
          "Actual Total Time": 0.181,
          "Actual Rows": 10,
          "Actual Loops": 1,
          "Shared Hit Blocks": 117,
          "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": "Unique",
              "Parent Relationship": "Outer",
              "Parallel Aware": false,
              "Async Capable": false,
              "Startup Cost": 101.55,
              "Total Cost": 101.63,
              "Plan Rows": 10,
              "Plan Width": 8,
              "Actual Startup Time": 0.178,
              "Actual Total Time": 0.18,
              "Actual Rows": 10,
              "Actual Loops": 1,
              "Shared Hit Blocks": 117,
              "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": 101.55,
                  "Total Cost": 101.58,
                  "Plan Rows": 10,
                  "Plan Width": 8,
                  "Actual Startup Time": 0.177,
                  "Actual Total Time": 0.178,
                  "Actual Rows": 10,
                  "Actual Loops": 1,
                  "Sort Key": [
                    "w.id",
                    "sl.sales_order_id"
                  ],
                  "Sort Method": "quicksort",
                  "Sort Space Used": 25,
                  "Sort Space Type": "Memory",
                  "Shared Hit Blocks": 117,
                  "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": 1.56,
                      "Total Cost": 101.39,
                      "Plan Rows": 10,
                      "Plan Width": 8,
                      "Actual Startup Time": 0.04,
                      "Actual Total Time": 0.151,
                      "Actual Rows": 10,
                      "Actual Loops": 1,
                      "Inner Unique": true,
                      "Shared Hit Blocks": 114,
                      "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": 1.14,
                          "Total Cost": 96.21,
                          "Plan Rows": 10,
                          "Plan Width": 8,
                          "Actual Startup Time": 0.03,
                          "Actual Total Time": 0.093,
                          "Actual Rows": 10,
                          "Actual Loops": 1,
                          "Inner Unique": true,
                          "Shared Hit Blocks": 74,
                          "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.85,
                              "Total Cost": 93.03,
                              "Plan Rows": 10,
                              "Plan Width": 4,
                              "Actual Startup Time": 0.021,
                              "Actual Total Time": 0.059,
                              "Actual Rows": 10,
                              "Actual Loops": 1,
                              "Inner Unique": true,
                              "Shared Hit Blocks": 44,
                              "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 Only Scan",
                                  "Parent Relationship": "Outer",
                                  "Parallel Aware": false,
                                  "Async Capable": false,
                                  "Scan Direction": "Forward",
                                  "Index Name": "material_consumption_lot_id_operation_id_idx",
                                  "Relation Name": "material_consumption",
                                  "Alias": "m",
                                  "Startup Cost": 0.42,
                                  "Total Cost": 8.6,
                                  "Plan Rows": 10,
                                  "Plan Width": 4,
                                  "Actual Startup Time": 0.011,
                                  "Actual Total Time": 0.013,
                                  "Actual Rows": 10,
                                  "Actual Loops": 1,
                                  "Index Cond": "(lot_id = 1)",
                                  "Rows Removed by Index Recheck": 0,
                                  "Heap Fetches": 0,
                                  "Shared Hit Blocks": 4,
                                  "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": "operations_pkey",
                                  "Relation Name": "operations",
                                  "Alias": "o",
                                  "Startup Cost": 0.42,
                                  "Total Cost": 8.44,
                                  "Plan Rows": 1,
                                  "Plan Width": 8,
                                  "Actual Startup Time": 0.004,
                                  "Actual Total Time": 0.004,
                                  "Actual Rows": 1,
                                  "Actual Loops": 10,
                                  "Index Cond": "(id = m.operation_id)",
                                  "Rows Removed by Index Recheck": 0,
                                  "Shared Hit Blocks": 40,
                                  "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": "work_orders_pkey",
                              "Relation Name": "work_orders",
                              "Alias": "w",
                              "Startup Cost": 0.29,
                              "Total Cost": 0.32,
                              "Plan Rows": 1,
                              "Plan Width": 8,
                              "Actual Startup Time": 0.003,
                              "Actual Total Time": 0.003,
                              "Actual Rows": 1,
                              "Actual Loops": 10,
                              "Index Cond": "(id = o.work_order_id)",
                              "Rows Removed by Index Recheck": 0,
                              "Shared Hit Blocks": 30,
                              "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": "sales_order_lines_pkey",
                          "Relation Name": "sales_order_lines",
                          "Alias": "sl",
                          "Startup Cost": 0.42,
                          "Total Cost": 0.52,
                          "Plan Rows": 1,
                          "Plan Width": 8,
                          "Actual Startup Time": 0.006,
                          "Actual Total Time": 0.006,
                          "Actual Rows": 1,
                          "Actual Loops": 10,
                          "Index Cond": "(id = w.sales_order_line_id)",
                          "Rows Removed by Index Recheck": 0,
                          "Shared Hit Blocks": 40,
                          "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
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        "Settings": {
          "work_mem": "8MB",
          "max_parallel_workers": "1",
          "max_parallel_workers_per_gather": "0",
          "search_path": "reference, public"
        },
        "Planning": {
          "Shared Hit Blocks": 241,
          "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": 1.238,
        "Triggers": [],
        "Execution Time": 0.25
      }
    ]
  },
  {
    "name": "aggregate/order-summary",
    "sql": "SELECT * FROM order_summary WHERE ordered_at >= $1::date ORDER BY ordered_at,id LIMIT 50",
    "params": [
      "2024-01-01"
    ],
    "plan": [
      {
        "Plan": {
          "Node Type": "Limit",
          "Parallel Aware": false,
          "Async Capable": false,
          "Startup Cost": 0.41,
          "Total Cost": 9.51,
          "Plan Rows": 50,
          "Plan Width": 77,
          "Actual Startup Time": 0.019,
          "Actual Total Time": 0.198,
          "Actual Rows": 50,
          "Actual Loops": 1,
          "Shared Hit Blocks": 3,
          "Shared Read Blocks": 51,
          "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_summary_ordered_at_id_idx",
              "Relation Name": "order_summary",
              "Alias": "order_summary",
              "Startup Cost": 0.41,
              "Total Cost": 4386.36,
              "Plan Rows": 24111,
              "Plan Width": 77,
              "Actual Startup Time": 0.019,
              "Actual Total Time": 0.195,
              "Actual Rows": 50,
              "Actual Loops": 1,
              "Index Cond": "(ordered_at >= '2024-01-01'::date)",
              "Rows Removed by Index Recheck": 0,
              "Shared Hit Blocks": 3,
              "Shared Read Blocks": 51,
              "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
            }
          ]
        },
        "Settings": {
          "work_mem": "8MB",
          "max_parallel_workers": "1",
          "max_parallel_workers_per_gather": "0",
          "search_path": "reference, public"
        },
        "Planning": {
          "Shared Hit Blocks": 165,
          "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.601,
        "Triggers": [],
        "Execution Time": 0.207
      }
    ]
  },
  {
    "name": "base/unselective-join",
    "sql": "SELECT s.id,c.name,l.quantity,l.unit_price_cents FROM sales_orders s JOIN customers c ON c.id=s.customer_id JOIN sales_order_lines l ON l.sales_order_id=s.id ORDER BY s.id,l.id LIMIT 50",
    "params": [],
    "plan": [
      {
        "Plan": {
          "Node Type": "Limit",
          "Parallel Aware": false,
          "Async Capable": false,
          "Startup Cost": 0.93,
          "Total Cost": 5.87,
          "Plan Rows": 50,
          "Plan Width": 40,
          "Actual Startup Time": 0.037,
          "Actual Total Time": 0.075,
          "Actual Rows": 50,
          "Actual Loops": 1,
          "Shared Hit Blocks": 86,
          "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": "Merge Join",
              "Parent Relationship": "Outer",
              "Parallel Aware": false,
              "Async Capable": false,
              "Join Type": "Inner",
              "Startup Cost": 0.93,
              "Total Cost": 17784.55,
              "Plan Rows": 180000,
              "Plan Width": 40,
              "Actual Startup Time": 0.036,
              "Actual Total Time": 0.072,
              "Actual Rows": 50,
              "Actual Loops": 1,
              "Inner Unique": false,
              "Merge Cond": "(l.sales_order_id = s.id)",
              "Shared Hit Blocks": 86,
              "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": "sales_order_lines_sales_order_id_id_idx",
                  "Relation Name": "sales_order_lines",
                  "Alias": "l",
                  "Startup Cost": 0.42,
                  "Total Cost": 11052.24,
                  "Plan Rows": 180000,
                  "Plan Width": 17,
                  "Actual Startup Time": 0.01,
                  "Actual Total Time": 0.022,
                  "Actual Rows": 50,
                  "Actual Loops": 1,
                  "Shared Hit Blocks": 53,
                  "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": "Materialize",
                  "Parent Relationship": "Inner",
                  "Parallel Aware": false,
                  "Async Capable": false,
                  "Startup Cost": 0.45,
                  "Total Cost": 3748.19,
                  "Plan Rows": 60000,
                  "Plan Width": 27,
                  "Actual Startup Time": 0.024,
                  "Actual Total Time": 0.041,
                  "Actual Rows": 50,
                  "Actual Loops": 1,
                  "Shared Hit Blocks": 33,
                  "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.45,
                      "Total Cost": 3598.19,
                      "Plan Rows": 60000,
                      "Plan Width": 27,
                      "Actual Startup Time": 0.019,
                      "Actual Total Time": 0.034,
                      "Actual Rows": 18,
                      "Actual Loops": 1,
                      "Inner Unique": true,
                      "Shared Hit Blocks": 33,
                      "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": "sales_orders_pkey",
                          "Relation Name": "sales_orders",
                          "Alias": "s",
                          "Startup Cost": 0.29,
                          "Total Cost": 2067.29,
                          "Plan Rows": 60000,
                          "Plan Width": 8,
                          "Actual Startup Time": 0.009,
                          "Actual Total Time": 0.011,
                          "Actual Rows": 18,
                          "Actual Loops": 1,
                          "Shared Hit Blocks": 3,
                          "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": "Memoize",
                          "Parent Relationship": "Inner",
                          "Parallel Aware": false,
                          "Async Capable": false,
                          "Startup Cost": 0.16,
                          "Total Cost": 0.18,
                          "Plan Rows": 1,
                          "Plan Width": 27,
                          "Actual Startup Time": 0.001,
                          "Actual Total Time": 0.001,
                          "Actual Rows": 1,
                          "Actual Loops": 18,
                          "Cache Key": "s.customer_id",
                          "Cache Mode": "logical",
                          "Cache Hits": 3,
                          "Cache Misses": 15,
                          "Cache Evictions": 0,
                          "Cache Overflows": 0,
                          "Peak Memory Usage": 2,
                          "Shared Hit Blocks": 30,
                          "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": "customers_pkey",
                              "Relation Name": "customers",
                              "Alias": "c",
                              "Startup Cost": 0.15,
                              "Total Cost": 0.17,
                              "Plan Rows": 1,
                              "Plan Width": 27,
                              "Actual Startup Time": 0.001,
                              "Actual Total Time": 0.001,
                              "Actual Rows": 1,
                              "Actual Loops": 15,
                              "Index Cond": "(id = s.customer_id)",
                              "Rows Removed by Index Recheck": 0,
                              "Shared Hit Blocks": 30,
                              "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
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        "Settings": {
          "work_mem": "8MB",
          "max_parallel_workers": "1",
          "max_parallel_workers_per_gather": "0",
          "search_path": "reference, public"
        },
        "Planning": {
          "Shared Hit Blocks": 49,
          "Shared Read Blocks": 11,
          "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.465,
        "Triggers": [],
        "Execution Time": 0.118
      }
    ]
  }
]