MichalLytek / MichalLytek/typegraphql-prisma
EMFILE: too many open files
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 918
- Forks
- 130
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the Bug**
I have a prisma.schema with 202 tables, when running `npx prisma generate` I get the message: Error: EMFILE: too many open files. I then modified the schema to have 153 tables to test and ran the command again and it failed. I then tried with 100 tables and it failed. I tried it with 57 tables, and it failed. My schema is generated from a `prisma db pull` to an existing MS SQL server database.
- OS: Windows 11
- Node 14.17.0
- `typegraphql-prisma` 0.16.3
- Prisma version: 3.3.0
- TypeScript: 4.4.4
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the failure with `npx prisma generate` using a large `prisma.schema` produced by `prisma db pull` from MS SQL Server on Windows 11. Compare the reported open-file limit across the stated table counts and generator versions; done means generation completes without `EMFILE` for the affected schema.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- graphql, node.js, typescript
- Domain
- databases, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 32/100