Large schemas generate huge `index.d.ts` causing slow autocomplete and type-checking in your editor
## Problem Whenever I generate the prisma client again after modifying the schema, it takes a while for WebStorm (an IntelliJ-based IDE) to reflect the changes in static analysis. While I haven't done any benchmarking to confirm this is the case, I think it is because of the thousand lines long index.d.ts. Seeing as the draw of Prisma is that it is typed, I feel like an improvement in the static analysis performance would be relevant to the project. ## Suggested solution Split the index.d.ts file into separate type-def files for potentially faster static analysis.
Posted by andrehsu on Dec 29, 2020, 1:04 AM
Tags
Related issues
- struct's lifetime requirements can be bypassed via covariant field assignment
- Proposal to Reorganize the Moderation Team and Review Moderation Policies
- Progressive FPS degradation appears to be related to dota2.com — blocking the domain prevents the performance loss
- proposal: container/...: generic collection types
- Better Custom Endpoint BYOK
- A concrete policy for backward compatibility until Godot 5.0
Raise real-world problems, find people facing the same issue, and discuss solutions.3,000 issues0 comments
github (Other)
struct's lifetime requirements can be bypassed via covariant field assignment
Proposal to Reorganize the Moderation Team and Review Moderation Policies
Progressive FPS degradation appears to be related to dota2.com — blocking the domain prevents the performance loss
proposal: container/...: generic collection types
Better Custom Endpoint BYOK
A concrete policy for backward compatibility until Godot 5.0
New MTP models not supported
Tracking: 429 / Capacity Issues
Large schemas generate huge `index.d.ts` causing slow autocomplete and type-checking in your editor
## Problem Whenever I generate the prisma client again after modifying the schema, it takes a while for WebStorm (an IntelliJ-based IDE) to reflect the changes in static analysis. While I haven't done any benchmarking to confirm this is the case, I think it is because of the thousand lines long index.d.ts. Seeing as the draw of Prisma is that it is typed, I feel like an improvement in the static analysis performance would be relevant to the project. ## Suggested solution Split the index.d.ts file into separate type-def files for potentially faster static analysis.
Comments (0)
No comments yet. Start the discussion.