focus-index-experiment.json 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. {
  2. "before": {
  3. "sql": "SELECT brand,dsum(amount) FROM monthly WHERE direction=? AND year=? AND c1=? AND c3=? GROUP BY brand",
  4. "parameters": [
  5. "I",
  6. "2025",
  7. "存储器",
  8. "DDR"
  9. ],
  10. "plan": [
  11. "SEARCH monthly USING INDEX idx_model (direction=?)"
  12. ],
  13. "first_ms": 3514.7,
  14. "p50_ms": 2494.692,
  15. "p95_ms": 3514.7,
  16. "rows": 3,
  17. "result_sha256": "d01d2250dd79e3789655a3f679e62a5051043bf95ab3f6e996a62212b44e13a6"
  18. },
  19. "after": {
  20. "sql": "SELECT brand,dsum(amount) FROM monthly WHERE direction=? AND year=? AND c1=? AND c3=? GROUP BY brand",
  21. "parameters": [
  22. "I",
  23. "2025",
  24. "存储器",
  25. "DDR"
  26. ],
  27. "plan": [
  28. "SEARCH monthly USING COVERING INDEX idx_focus_query (direction=? AND year=? AND c1=? AND c3=?)"
  29. ],
  30. "first_ms": 1460.615,
  31. "p50_ms": 1450.355,
  32. "p95_ms": 1460.615,
  33. "rows": 3,
  34. "result_sha256": "d01d2250dd79e3789655a3f679e62a5051043bf95ab3f6e996a62212b44e13a6"
  35. },
  36. "index_build_seconds": 6.026850083959289,
  37. "index_sql": "CREATE INDEX idx_focus_query ON monthly(direction,year,c1,c3,brand,amount,quantity,n)",
  38. "sqlite_after_bytes": 1257381888
  39. }