Menu

Post image 1
Post image 2
Post image 3
Post image 4
1 / 4
0

Prisma Broke at 570 Models. I Rebuilt Its Generator in 500ms.

DEV Community·Fybyte Technologies·about 1 month ago
#XgtDpd9r
#this#model#const#prisma#schema#classsrc
Reading 0:00
15s threshold

Prisma didn't slow down. It didn't degrade. It just… stopped working. RangeError: Cannot create a string longer than 0x1fffffe8 characters Enter fullscreen mode Exit fullscreen mode That's not a warning. That's not a performance issue. That's a hard V8 runtime limit . And once you hit it, prisma generate doesn't get slower — it becomes impossible to run . No flag fixes it. No config option fixes it. More memory doesn't fix it. The setup I'm a solo developer building Fyboard , an enterprise platform. Current schema: 570 models 1,696 foreign key relationships 384 enums ~ 22,000 lines of schema.prisma And here's what makes this not an edge case: This is the schema for 4 modules out of 12 planned . The schema is going to roughly triple before I'm done. Whatever I built had to handle 1,500+ models without falling over. I filed a detailed feature request . No response. The schema kept growing. I needed a solution.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More