| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194 |
- {
- "platform": "macOS-26.5.2-arm64-arm-64bit-Mach-O",
- "python": "3.14.6",
- "sqlite": "3.53.4",
- "os_cache": "not flushed; first connection and warm repeats; not cold-cache evidence",
- "rows": 4000000,
- "phases": {
- "monthly": {
- "scope": "4m high-cardinality parsed monthly SQL fixture, NOT a 4m business parser/pipeline run",
- "rows": 4000000,
- "model_cardinality": 1000000,
- "monthly_rows": 4000000,
- "load_seconds": 7.849,
- "existing_three_index_seconds": 10.047,
- "before": {
- "class_year": {
- "sql": "SELECT c2,dsum(amount),dsum(quantity) FROM monthly WHERE direction=? AND c1=? AND year=? GROUP BY c2",
- "parameters": [
- "I",
- "存储器",
- "2025"
- ],
- "plan": [
- "SCAN monthly",
- "USE TEMP B-TREE FOR GROUP BY"
- ],
- "first_ms": 3143.557,
- "p50_ms": 3064.805,
- "p95_ms": 3143.557,
- "rows": 1,
- "result_sha256": "60d224cc7ef8849c56cecb29285ec7dd8461753f31cf8d2148ef7e6502672239"
- },
- "one_model_timeline": {
- "sql": "SELECT month,dsum(amount),dsum(quantity) FROM monthly WHERE direction=? AND brand=? AND model=? GROUP BY month",
- "parameters": [
- "I",
- "SAMSUNG",
- "TEST-00000001"
- ],
- "plan": [
- "SCAN monthly",
- "USE TEMP B-TREE FOR GROUP BY"
- ],
- "first_ms": 218.332,
- "p50_ms": 217.911,
- "p95_ms": 218.332,
- "rows": 3,
- "result_sha256": "051f538236236c917174e7eadc0f267c9919a92c5d407a605673088b0fe21763"
- },
- "focus": {
- "sql": "SELECT brand,dsum(amount) FROM monthly WHERE direction=? AND year=? AND c1=? AND c3=? GROUP BY brand",
- "parameters": [
- "I",
- "2025",
- "存储器",
- "DDR"
- ],
- "plan": [
- "SCAN monthly",
- "USE TEMP B-TREE FOR GROUP BY"
- ],
- "first_ms": 1766.261,
- "p50_ms": 1777.838,
- "p95_ms": 1780.937,
- "rows": 3,
- "result_sha256": "d01d2250dd79e3789655a3f679e62a5051043bf95ab3f6e996a62212b44e13a6"
- }
- },
- "after": {
- "class_year": {
- "sql": "SELECT c2,dsum(amount),dsum(quantity) FROM monthly WHERE direction=? AND c1=? AND year=? GROUP BY c2",
- "parameters": [
- "I",
- "存储器",
- "2025"
- ],
- "plan": [
- "SEARCH monthly USING INDEX idx_class (direction=? AND c1=?)"
- ],
- "first_ms": 3018.343,
- "p50_ms": 3020.252,
- "p95_ms": 3027.901,
- "rows": 1,
- "result_sha256": "60d224cc7ef8849c56cecb29285ec7dd8461753f31cf8d2148ef7e6502672239"
- },
- "one_model_timeline": {
- "sql": "SELECT month,dsum(amount),dsum(quantity) FROM monthly WHERE direction=? AND brand=? AND model=? GROUP BY month",
- "parameters": [
- "I",
- "SAMSUNG",
- "TEST-00000001"
- ],
- "plan": [
- "SEARCH monthly USING INDEX idx_model (direction=? AND brand=? AND model=?)"
- ],
- "first_ms": 0.102,
- "p50_ms": 0.021,
- "p95_ms": 0.102,
- "rows": 3,
- "result_sha256": "051f538236236c917174e7eadc0f267c9919a92c5d407a605673088b0fe21763"
- },
- "focus": {
- "sql": "SELECT brand,dsum(amount) FROM monthly WHERE direction=? AND year=? AND c1=? AND c3=? GROUP BY brand",
- "parameters": [
- "I",
- "2025",
- "存储器",
- "DDR"
- ],
- "plan": [
- "SEARCH monthly USING INDEX idx_model (direction=?)"
- ],
- "first_ms": 2488.714,
- "p50_ms": 2483.142,
- "p95_ms": 2488.714,
- "rows": 3,
- "result_sha256": "d01d2250dd79e3789655a3f679e62a5051043bf95ab3f6e996a62212b44e13a6"
- }
- },
- "query_summary_build_seconds": 88.48,
- "summary_row_counts": {
- "查询_叶子类目月度": 96,
- "查询_品牌型号月度": 3000000
- },
- "summary_queries": {
- "class_timeline": {
- "sql": "SELECT \"年度\",\"月度\",\"实际金额(美元)\" FROM q_class_month WHERE \"进/出口\"=? AND \"二级类目\"=? ORDER BY \"_num_年度\",\"_num_月度\",_row_index",
- "parameters": [
- "I",
- "DRAM"
- ],
- "plan": [
- "SEARCH q_class_month USING INDEX idx_query_5083ac899bb7 (进/出口=? AND 二级类目=?)"
- ],
- "first_ms": 0.084,
- "p50_ms": 0.015,
- "p95_ms": 0.084,
- "rows": 24,
- "result_sha256": "1880f1d02663fefc13d68c7f56b7136a6c17783e20743324b63689ae61b99807"
- },
- "model_timeline": {
- "sql": "SELECT \"年度\",\"月度\",\"实际金额(美元)\" FROM q_model_month WHERE \"进/出口\"=? AND \"品牌\"=? AND \"型号\"=? ORDER BY \"_num_年度\",\"_num_月度\",_row_index",
- "parameters": [
- "I",
- "SAMSUNG",
- "TEST-00000001"
- ],
- "plan": [
- "SEARCH q_model_month USING INDEX idx_query_3a945a8e1342 (进/出口=? AND 品牌=? AND 型号=?)"
- ],
- "first_ms": 0.035,
- "p50_ms": 0.011,
- "p95_ms": 0.035,
- "rows": 3,
- "result_sha256": "f3822908f6a03fe7c545c9bc38e7d4a1ab616d43fe34043379c1874634499547"
- },
- "month_top50": {
- "sql": "SELECT \"品牌\",\"型号\",\"实际金额(美元)\" FROM q_model_month WHERE \"进/出口\"=? AND \"_num_年度\"=? AND \"_num_月度\"=? AND \"二级类目\"=? ORDER BY \"_num_实际金额(美元)\" DESC,_row_index ASC LIMIT 50",
- "parameters": [
- "I",
- "2025",
- "1",
- "DRAM"
- ],
- "plan": [
- "SEARCH q_model_month USING INDEX idx_query_d5d32784bdfe (进/出口=? AND _num_年度=? AND _num_月度=? AND 二级类目=?)"
- ],
- "first_ms": 0.093,
- "p50_ms": 0.031,
- "p95_ms": 0.093,
- "rows": 50,
- "result_sha256": "5a2e98083e44cf6563baefc7d5be28f63a90929f64984c682f3c454eb01ecc80"
- }
- },
- "exact_summary_totals": {
- "q_class_month": [
- null,
- "202000000",
- 4000000
- ],
- "q_model_month": [
- null,
- "202000000",
- 4000000
- ]
- },
- "missing_amount_policy": "global sum is NULL due to deliberate missing members",
- "disk_bytes": 1954004992
- }
- },
- "phase_wall_seconds": 154.719,
- "peak_rss_mb": 251.22,
- "total_disk_bytes": 1954004992
- }
|