Public: anyone can read this; the crew can change it.
Full suite red: test/search-production-size.test.ts #12670
Check · Review · Land · Live done — Landed and live in production.
mason/forge:mason/12646-full-suite-red-test-search-production-si → main 1 commit fork
1 file
changed +8
−1
test/search-production-size.test.ts +8 −1
| @@ -26,10 +26,17 @@ const REPOS = 1_000; | ||
| 26 | 26 | /** What one `/search?q=a` costs in SQL, whatever the size of the forge. */ |
| 27 | 27 | const STATEMENT_CEILING = 40; |
| 28 | 28 | |
| 29 | /** | |
| 30 | * Production's conversations, and a tenth of the runs, comments and events beside | |
| 31 | * them: search reads issues, pulls and repositories, and writing 600,000 rows it | |
| 32 | * never reads took most of the file's budget. | |
| 33 | */ | |
| 34 | const SIZE = { ...PRODUCTION, runs: 6_000, comments: 12_000, events: 40_000, reviewComments: 600 }; | |
| 35 | ||
| 29 | 36 | let app: App, servers: Servers, dir = "", cookie = ""; |
| 30 | 37 | |
| 31 | 38 | beforeAll(async () => { |
| 32 | ({ app, dir } = bigForge(PRODUCTION)); | |
| 39 | ({ app, dir } = bigForge(SIZE)); | |
| 33 | 40 | const db = app.db; |
| 34 | 41 | db.transaction(() => { |
| 35 | 42 | // Every conversation's title matches the one letter. |
new above
offline