Hi everyone,
I recently ran into a significant IDE performance issue in my project with Prisma, and after some digging, I was lucky enough to pinpoint the cause.
The core of the problem isn't an issue with Prisma itself, but rather a subtle pitfall in how Prisma's generated types are used within TypeScript. I believe other developers might easily encounter the same thing.
I wrote a post on a Japanese tech blog (Zenn) about my findings, which was well-received. I've also posted a summarized English version on my personal blog here for context:
https://www.toyb0x.me/blog/prisma-type-performance-optimization-en/
To contribute back to the community and as a personal challenge, I'd love to create a PR to add this knowledge and a recommended code example to the official Prisma documentation.
I was thinking it might fit well in the section on Client Extensions, perhaps somewhere around here:
https://github.com/prisma/docs/blob/main/content/200-orm/200-prisma-client/300-client-extensions/index.mdx#add-an-extension-to-prisma-client
What do you think would be the best place for this kind of tip?
I'm open to any suggestions or feedback, even if you think a documentation update isn't necessary for this.
Thanks in advance!