{
  "measured_utc": "2026-10-12T16:38:28.206135+00:00",
  "python": "3.11.5",
  "sqlite": "3.42.0",
  "os": "Windows-10-10.0.19045-SP0",
  "processor": "AMD64 Family 23 Model 24 Stepping 1, AuthenticAMD",
  "rows": 50000,
  "date_min": "2025-01-01T00:00:12.000",
  "date_max": "2025-01-05T23:57:33.000",
  "sample": "First 50,000 unique keys ascending among January 2025 records; not a representative month sample.",
  "parameters": [
    "BROOKLYN",
    "NYPD"
  ],
  "warmups": 5,
  "samples_per_variant": 40,
  "timing": "perf_counter_ns; fetchall included; alternating baseline/candidate order; warm OS/SQLite caches; no concurrency; p95 nearest rank",
  "queries": {
    "recent_requests": "SELECT unique_key,created_date,complaint_type FROM requests WHERE borough=? AND agency=? ORDER BY created_date DESC,unique_key DESC LIMIT 50",
    "category_counts": "SELECT complaint_type,count(*) AS n FROM requests WHERE borough=? AND agency=? GROUP BY complaint_type ORDER BY n DESC,complaint_type"
  },
  "indexes": [
    "CREATE INDEX requests_recent ON requests(borough,agency,created_date DESC,unique_key DESC,complaint_type)",
    "CREATE INDEX requests_categories ON requests(borough,agency,complaint_type)"
  ],
  "results": {
    "recent_requests": {
      "row_count": 50,
      "result_sha256": "3e0c536dce9a5ddaf39b28296e29b9cd28eef65ac8f6dccfde396ed0192ae34d",
      "plans": [
        [
          "SCAN requests",
          "USE TEMP B-TREE FOR ORDER BY"
        ],
        [
          "SEARCH requests USING COVERING INDEX requests_recent (borough=? AND agency=?)"
        ]
      ],
      "vm_steps": [
        208717,
        361
      ],
      "median_ms": [
        14.5458,
        0.51575
      ],
      "p95_ms": [
        19.8558,
        0.6822
      ],
      "raw_ms": [
        [
          17.5181,
          18.4701,
          17.7331,
          18.9623,
          14.4187,
          17.5587,
          14.3105,
          15.1006,
          14.5785,
          14.4183,
          14.8507,
          14.1019,
          14.8803,
          14.5131,
          14.3787,
          14.0995,
          14.4625,
          14.1033,
          14.3857,
          14.3271,
          14.3321,
          14.3872,
          14.3075,
          14.174,
          14.1834,
          14.0362,
          14.3294,
          14.1614,
          18.0355,
          14.7039,
          19.9881,
          17.4771,
          14.8663,
          14.2056,
          19.8558,
          19.6899,
          14.9308,
          21.4086,
          16.8315,
          19.7172
        ],
        [
          0.6822,
          0.5647,
          0.74,
          0.5727,
          0.5158,
          0.3722,
          0.5249,
          0.367,
          0.5318,
          0.3682,
          0.5175,
          0.3577,
          0.5917,
          0.3964,
          0.5528,
          0.3695,
          0.5361,
          0.3759,
          0.5165,
          0.3762,
          0.514,
          0.3625,
          0.4951,
          0.3589,
          0.4678,
          0.4272,
          0.5157,
          0.3675,
          0.5295,
          0.3667,
          0.5627,
          0.3907,
          0.5523,
          0.4072,
          0.6808,
          0.5461,
          0.693,
          0.5779,
          0.5264,
          0.3766
        ]
      ],
      "equality_checks": 71
    },
    "category_counts": {
      "row_count": 20,
      "result_sha256": "eae47aa332ababf16ea4f78614735b9db9571d83958e6f9947a5ba5b27626cc5",
      "plans": [
        [
          "SCAN requests",
          "USE TEMP B-TREE FOR GROUP BY",
          "USE TEMP B-TREE FOR ORDER BY"
        ],
        [
          "SEARCH requests USING COVERING INDEX requests_categories (borough=? AND agency=?)",
          "USE TEMP B-TREE FOR ORDER BY"
        ]
      ],
      "vm_steps": [
        231257,
        42881
      ],
      "median_ms": [
        17.08125,
        2.4839
      ],
      "p95_ms": [
        37.1828,
        3.7787
      ],
      "raw_ms": [
        [
          15.4525,
          15.5395,
          15.5261,
          16.7318,
          15.6837,
          18.2722,
          17.33,
          15.5018,
          15.5651,
          15.3237,
          16.1831,
          16.4678,
          16.8408,
          16.7206,
          15.9654,
          16.1431,
          20.3324,
          36.84,
          19.4833,
          66.4644,
          109.3593,
          17.7291,
          16.6881,
          16.9971,
          18.5269,
          20.7472,
          20.0196,
          16.482,
          16.8758,
          20.4915,
          16.8983,
          22.846,
          15.7879,
          18.6273,
          19.2823,
          22.4522,
          37.1828,
          17.476,
          17.1654,
          19.1934
        ],
        [
          2.3825,
          2.1716,
          2.341,
          2.4013,
          3.3457,
          3.7787,
          2.7106,
          2.2434,
          2.3416,
          2.1711,
          2.5026,
          2.3429,
          2.4955,
          2.2294,
          2.3341,
          2.1284,
          3.4425,
          3.175,
          2.9093,
          2.5333,
          2.9063,
          3.5421,
          2.5836,
          2.4723,
          2.4086,
          2.7737,
          3.7328,
          3.8295,
          2.3976,
          2.2573,
          2.4251,
          2.288,
          2.3286,
          2.2843,
          3.1634,
          2.3842,
          4.1604,
          3.6902,
          2.9469,
          2.5503
        ]
      ],
      "equality_checks": 71
    }
  },
  "database_bytes": [
    4829184,
    10272768
  ],
  "parameter_pairs_checked": 71
}
