[
  {
    "name": "actual-order-prefix-API",
    "sql": "SELECT * FROM order_summary WHERE ordered_at >= $1::date AND ordered_at < $2::date+1 AND order_number LIKE $3 ORDER BY ordered_at DESC,id DESC LIMIT 51",
    "params": [
      "2020-01-01",
      "2026-12-31",
      "SO-000001%"
    ],
    "plan": [
      {
        "Plan": {
          "Node Type": "Limit",
          "Parallel Aware": false,
          "Async Capable": false,
          "Startup Cost": 8.52,
          "Total Cost": 8.54,
          "Plan Rows": 6,
          "Plan Width": 77,
          "Actual Startup Time": 0.038,
          "Actual Total Time": 0.039,
          "Actual Rows": 1,
          "Actual Loops": 1,
          "Shared Hit Blocks": 10,
          "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": 8.52,
              "Total Cost": 8.54,
              "Plan Rows": 6,
              "Plan Width": 77,
              "Actual Startup Time": 0.037,
              "Actual Total Time": 0.038,
              "Actual Rows": 1,
              "Actual Loops": 1,
              "Sort Key": [
                "ordered_at DESC",
                "id DESC"
              ],
              "Sort Method": "quicksort",
              "Sort Space Used": 25,
              "Sort Space Type": "Memory",
              "Shared Hit Blocks": 10,
              "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_summary_order_number_idx",
                  "Relation Name": "order_summary",
                  "Alias": "order_summary",
                  "Startup Cost": 0.41,
                  "Total Cost": 8.44,
                  "Plan Rows": 6,
                  "Plan Width": 77,
                  "Actual Startup Time": 0.01,
                  "Actual Total Time": 0.01,
                  "Actual Rows": 1,
                  "Actual Loops": 1,
                  "Index Cond": "((order_number ~>=~ 'SO-000001'::text) AND (order_number ~<~ 'SO-000002'::text))",
                  "Rows Removed by Index Recheck": 0,
                  "Filter": "((ordered_at >= '2020-01-01'::date) AND (ordered_at < '2027-01-01'::date) AND (order_number ~~ 'SO-000001%'::text))",
                  "Rows Removed by Filter": 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": 286,
          "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.068,
        "Triggers": [],
        "Execution Time": 0.103
      }
    ]
  },
  {
    "name": "actual-late-receipt-API",
    "sql": "SELECT * FROM late_receipts ORDER BY expected_at,id LIMIT 50",
    "params": [],
    "plan": [
      {
        "Plan": {
          "Node Type": "Limit",
          "Parallel Aware": false,
          "Async Capable": false,
          "Startup Cost": 0.27,
          "Total Cost": 6.88,
          "Plan Rows": 50,
          "Plan Width": 60,
          "Actual Startup Time": 0.007,
          "Actual Total Time": 0.018,
          "Actual Rows": 50,
          "Actual Loops": 1,
          "Shared Hit Blocks": 25,
          "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": "late_receipts_expected_at_id_idx",
              "Relation Name": "late_receipts",
              "Alias": "late_receipts",
              "Startup Cost": 0.27,
              "Total Cost": 36.36,
              "Plan Rows": 273,
              "Plan Width": 60,
              "Actual Startup Time": 0.007,
              "Actual Total Time": 0.015,
              "Actual Rows": 50,
              "Actual Loops": 1,
              "Shared Hit Blocks": 25,
              "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.31,
        "Triggers": [],
        "Execution Time": 0.035
      }
    ]
  }
]