optimizing hardware limits in Rust

This commit is contained in:
Bill
2025-11-18 12:40:08 -07:00
parent 92348cb3a1
commit ac61f58f01
4 changed files with 116 additions and 10 deletions

View File

@@ -36,7 +36,7 @@ SELECT
(random() * 10 + 100)::INT AS course_id,
(NOW() - (random() * '1000 days'::INTERVAL))::DATE AS start_date,
(random() * 5)::FLOAT8 AS rating
FROM generate_series(1, 5000000) s(i);
FROM generate_series(1, 20000000) s(i);
-- 4. Analyze the table for better query planning (good practice)
ANALYZE benchmark_table;