Commit b00519e
committed
perf: optimize postgres on macOS/Windows for CI, remove ramdisk
Previously we used ramdisk for embedded postgres on macOS and Windows
to improve test performance. This wastes memory since data ends up
cached twice: once in the ramdisk and again in postgres's own buffers.
Instead, we give postgres more memory and tune it more aggressively:
- Increase shared_buffers to 2GB, effective_cache_size to 4GB
- Minimal WAL level, infrequent checkpoints
- Disable autovacuum, JIT, logging, stats tracking
- OS-specific I/O settings
This gives postgres more memory to work with while simplifying CI setup.1 parent 8ead6f7 commit b00519e
2 files changed
+63
-28
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
363 | 363 | | |
364 | 364 | | |
365 | 365 | | |
366 | | - | |
367 | | - | |
368 | | - | |
369 | | - | |
370 | | - | |
371 | | - | |
372 | 366 | | |
373 | 367 | | |
374 | 368 | | |
| |||
426 | 420 | | |
427 | 421 | | |
428 | 422 | | |
429 | | - | |
430 | | - | |
431 | | - | |
432 | | - | |
433 | | - | |
434 | | - | |
435 | | - | |
436 | | - | |
| 423 | + | |
437 | 424 | | |
438 | 425 | | |
439 | 426 | | |
440 | | - | |
441 | | - | |
442 | | - | |
443 | | - | |
444 | | - | |
445 | | - | |
446 | | - | |
447 | 427 | | |
448 | | - | |
449 | | - | |
450 | 428 | | |
451 | 429 | | |
452 | 430 | | |
| |||
476 | 454 | | |
477 | 455 | | |
478 | 456 | | |
479 | | - | |
480 | 457 | | |
481 | 458 | | |
482 | 459 | | |
| |||
492 | 469 | | |
493 | 470 | | |
494 | 471 | | |
495 | | - | |
496 | 472 | | |
497 | 473 | | |
498 | 474 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
78 | 79 | | |
79 | 80 | | |
80 | 81 | | |
| 82 | + | |
| 83 | + | |
81 | 84 | | |
82 | | - | |
| 85 | + | |
83 | 86 | | |
| 87 | + | |
84 | 88 | | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
85 | 114 | | |
86 | | - | |
87 | | - | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
88 | 134 | | |
89 | 135 | | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
90 | 149 | | |
91 | 150 | | |
92 | 151 | | |
| |||
0 commit comments