adelsz / pgtyped

pgTyped - Typesafe SQL in TypeScript
https://pgtyped.dev
MIT License
2.91k stars 94 forks source link

Running pgtyped on a computer with lots of cores causes runaway memory consumption #536

Closed bhalonen closed 11 months ago

bhalonen commented 1 year ago

Describe the bug If you run pg-typed code gen on a computer with lots of cores, it starts threads for every one of the cores and runs out of memory.

Expected behavior A pgtyped_config.json flag to limit max number of threads Piscana starts.

Test case Hard to do without hardware

adelsz commented 11 months ago

Fixed in https://github.com/adelsz/pgtyped/commit/241073841454bd82621473bba805defd2465f8f3