monthly-4m.json 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. {
  2. "platform": "macOS-26.5.2-arm64-arm-64bit-Mach-O",
  3. "python": "3.14.6",
  4. "sqlite": "3.53.4",
  5. "os_cache": "not flushed; first connection and warm repeats; not cold-cache evidence",
  6. "rows": 4000000,
  7. "phases": {
  8. "monthly": {
  9. "scope": "4m high-cardinality parsed monthly SQL fixture, NOT a 4m business parser/pipeline run",
  10. "rows": 4000000,
  11. "model_cardinality": 1000000,
  12. "monthly_rows": 4000000,
  13. "load_seconds": 7.849,
  14. "existing_three_index_seconds": 10.047,
  15. "before": {
  16. "class_year": {
  17. "sql": "SELECT c2,dsum(amount),dsum(quantity) FROM monthly WHERE direction=? AND c1=? AND year=? GROUP BY c2",
  18. "parameters": [
  19. "I",
  20. "存储器",
  21. "2025"
  22. ],
  23. "plan": [
  24. "SCAN monthly",
  25. "USE TEMP B-TREE FOR GROUP BY"
  26. ],
  27. "first_ms": 3143.557,
  28. "p50_ms": 3064.805,
  29. "p95_ms": 3143.557,
  30. "rows": 1,
  31. "result_sha256": "60d224cc7ef8849c56cecb29285ec7dd8461753f31cf8d2148ef7e6502672239"
  32. },
  33. "one_model_timeline": {
  34. "sql": "SELECT month,dsum(amount),dsum(quantity) FROM monthly WHERE direction=? AND brand=? AND model=? GROUP BY month",
  35. "parameters": [
  36. "I",
  37. "SAMSUNG",
  38. "TEST-00000001"
  39. ],
  40. "plan": [
  41. "SCAN monthly",
  42. "USE TEMP B-TREE FOR GROUP BY"
  43. ],
  44. "first_ms": 218.332,
  45. "p50_ms": 217.911,
  46. "p95_ms": 218.332,
  47. "rows": 3,
  48. "result_sha256": "051f538236236c917174e7eadc0f267c9919a92c5d407a605673088b0fe21763"
  49. },
  50. "focus": {
  51. "sql": "SELECT brand,dsum(amount) FROM monthly WHERE direction=? AND year=? AND c1=? AND c3=? GROUP BY brand",
  52. "parameters": [
  53. "I",
  54. "2025",
  55. "存储器",
  56. "DDR"
  57. ],
  58. "plan": [
  59. "SCAN monthly",
  60. "USE TEMP B-TREE FOR GROUP BY"
  61. ],
  62. "first_ms": 1766.261,
  63. "p50_ms": 1777.838,
  64. "p95_ms": 1780.937,
  65. "rows": 3,
  66. "result_sha256": "d01d2250dd79e3789655a3f679e62a5051043bf95ab3f6e996a62212b44e13a6"
  67. }
  68. },
  69. "after": {
  70. "class_year": {
  71. "sql": "SELECT c2,dsum(amount),dsum(quantity) FROM monthly WHERE direction=? AND c1=? AND year=? GROUP BY c2",
  72. "parameters": [
  73. "I",
  74. "存储器",
  75. "2025"
  76. ],
  77. "plan": [
  78. "SEARCH monthly USING INDEX idx_class (direction=? AND c1=?)"
  79. ],
  80. "first_ms": 3018.343,
  81. "p50_ms": 3020.252,
  82. "p95_ms": 3027.901,
  83. "rows": 1,
  84. "result_sha256": "60d224cc7ef8849c56cecb29285ec7dd8461753f31cf8d2148ef7e6502672239"
  85. },
  86. "one_model_timeline": {
  87. "sql": "SELECT month,dsum(amount),dsum(quantity) FROM monthly WHERE direction=? AND brand=? AND model=? GROUP BY month",
  88. "parameters": [
  89. "I",
  90. "SAMSUNG",
  91. "TEST-00000001"
  92. ],
  93. "plan": [
  94. "SEARCH monthly USING INDEX idx_model (direction=? AND brand=? AND model=?)"
  95. ],
  96. "first_ms": 0.102,
  97. "p50_ms": 0.021,
  98. "p95_ms": 0.102,
  99. "rows": 3,
  100. "result_sha256": "051f538236236c917174e7eadc0f267c9919a92c5d407a605673088b0fe21763"
  101. },
  102. "focus": {
  103. "sql": "SELECT brand,dsum(amount) FROM monthly WHERE direction=? AND year=? AND c1=? AND c3=? GROUP BY brand",
  104. "parameters": [
  105. "I",
  106. "2025",
  107. "存储器",
  108. "DDR"
  109. ],
  110. "plan": [
  111. "SEARCH monthly USING INDEX idx_model (direction=?)"
  112. ],
  113. "first_ms": 2488.714,
  114. "p50_ms": 2483.142,
  115. "p95_ms": 2488.714,
  116. "rows": 3,
  117. "result_sha256": "d01d2250dd79e3789655a3f679e62a5051043bf95ab3f6e996a62212b44e13a6"
  118. }
  119. },
  120. "query_summary_build_seconds": 88.48,
  121. "summary_row_counts": {
  122. "查询_叶子类目月度": 96,
  123. "查询_品牌型号月度": 3000000
  124. },
  125. "summary_queries": {
  126. "class_timeline": {
  127. "sql": "SELECT \"年度\",\"月度\",\"实际金额(美元)\" FROM q_class_month WHERE \"进/出口\"=? AND \"二级类目\"=? ORDER BY \"_num_年度\",\"_num_月度\",_row_index",
  128. "parameters": [
  129. "I",
  130. "DRAM"
  131. ],
  132. "plan": [
  133. "SEARCH q_class_month USING INDEX idx_query_5083ac899bb7 (进/出口=? AND 二级类目=?)"
  134. ],
  135. "first_ms": 0.084,
  136. "p50_ms": 0.015,
  137. "p95_ms": 0.084,
  138. "rows": 24,
  139. "result_sha256": "1880f1d02663fefc13d68c7f56b7136a6c17783e20743324b63689ae61b99807"
  140. },
  141. "model_timeline": {
  142. "sql": "SELECT \"年度\",\"月度\",\"实际金额(美元)\" FROM q_model_month WHERE \"进/出口\"=? AND \"品牌\"=? AND \"型号\"=? ORDER BY \"_num_年度\",\"_num_月度\",_row_index",
  143. "parameters": [
  144. "I",
  145. "SAMSUNG",
  146. "TEST-00000001"
  147. ],
  148. "plan": [
  149. "SEARCH q_model_month USING INDEX idx_query_3a945a8e1342 (进/出口=? AND 品牌=? AND 型号=?)"
  150. ],
  151. "first_ms": 0.035,
  152. "p50_ms": 0.011,
  153. "p95_ms": 0.035,
  154. "rows": 3,
  155. "result_sha256": "f3822908f6a03fe7c545c9bc38e7d4a1ab616d43fe34043379c1874634499547"
  156. },
  157. "month_top50": {
  158. "sql": "SELECT \"品牌\",\"型号\",\"实际金额(美元)\" FROM q_model_month WHERE \"进/出口\"=? AND \"_num_年度\"=? AND \"_num_月度\"=? AND \"二级类目\"=? ORDER BY \"_num_实际金额(美元)\" DESC,_row_index ASC LIMIT 50",
  159. "parameters": [
  160. "I",
  161. "2025",
  162. "1",
  163. "DRAM"
  164. ],
  165. "plan": [
  166. "SEARCH q_model_month USING INDEX idx_query_d5d32784bdfe (进/出口=? AND _num_年度=? AND _num_月度=? AND 二级类目=?)"
  167. ],
  168. "first_ms": 0.093,
  169. "p50_ms": 0.031,
  170. "p95_ms": 0.093,
  171. "rows": 50,
  172. "result_sha256": "5a2e98083e44cf6563baefc7d5be28f63a90929f64984c682f3c454eb01ecc80"
  173. }
  174. },
  175. "exact_summary_totals": {
  176. "q_class_month": [
  177. null,
  178. "202000000",
  179. 4000000
  180. ],
  181. "q_model_month": [
  182. null,
  183. "202000000",
  184. 4000000
  185. ]
  186. },
  187. "missing_amount_policy": "global sum is NULL due to deliberate missing members",
  188. "disk_bytes": 1954004992
  189. }
  190. },
  191. "phase_wall_seconds": 154.719,
  192. "peak_rss_mb": 251.22,
  193. "total_disk_bytes": 1954004992
  194. }