prisma: Intellisense performance degradation
Bug description
We noticed when migrating from Prisma 6.0.1 to Prisma 6.2.1 or 6.3.0 that the performance with Intellisense has degraded a lot.
When using Prisma@6.0.1, we get the suggestions in less than 0.5 second.
After the migration, it is closer to 3-4 seconds to get the Prisma fields in Cursor/Code.
How to reproduce
Use any prisma.model.find({}) in your code with Prisma@6.0.1 and trigger Intellisense suggestions.
Do the same with Prisma@6.3.0
Compare both timings.
Expected behavior
No response
Prisma information
// Add your schema.prisma
// Add your code using Prisma Client
export const createOrganization = async (
organizationId: string,
): Promise<Organisation> => {
const organization = await prisma.organisation.create({
data: { organizationId },
});
return organizationModelizer(organization);
};
Environment & setup
- OS: macOS–>
- Database: PostgreSQL
- Node.js version: 20.X
Prisma Version
6.0.1
6.2.1
6.3.0
About this issue
- Original URL
- State: open
- Created 2 years ago
- Reactions: 9
- Comments: 24 (12 by maintainers)
We can confirm the bug when using client extensions, the combination of
omitApiand client extensions leads to a performance degradation. We’re working on a fix.@aqrln the
prisma generateseems to be working fine with 6.5.0 (and yes I’m using SQL Server)@lildesert to dig into this we’d need a way to reproduce this issue. The current reproduction cases we used to tackle this issue show significant improved performance under the new build. So might be that your case is yet another underlying issue.
Could you provide us with a reproduction example please? Esp. the prisma schema and how you initialize the client and configure extensions. You can also add me to a private repository if you don’t want to post this information publicly.
I ran
prisma generateand even restarted VS Code every time. Just tried6.5.0-dev.66and still slow compared to6.2.0. Let me know if I can provide more info to help (logs etc)Thanks! In the meantime would be great to have a way to just disable the omitApi feature so we can upgrade to latest Prisma version.
We are experiencing this issue on
6.2.1.@ludralph 6.2.0 had a bug related to the removal of the preview feature, so
omitApiis only GA for real starting from 6.2.1@ludralph @PILLOWPET
Same here, I was wondering since when my VS Code was so incredibly slow.
The intellisense of my application and Code Formatter is now crazy slow taking 5-6 seconds to load and enven 10 seconds for Code Formatting a file when saving it. And this applies to all my application, not only intellisense of Prisma functions or objects.
I reverted to 6.0.1 and wow, difference is obvious. Intellisense now loads instantly.
I think it may be related to the prisma schema size. I have about 20 tables in my database.
I am using a database first approach and rely on
prisma db pullandprisma generateto create my models. My database is SQL ServerEDIT: I verified version by version and everything is fine up to
6.2.0. Its from6.2.1that everyting’s slow