Any ideas about how to shrink the DMMF object? It'...
# prisma-client
m
Any ideas about how to shrink the DMMF object? It's way way too big and causing serious performance issues for people. For example: what if we assume
"dbName"
is
null
if it's not defined, or
isReadOnly
is
false
if not defined,
isNullable
is
false
if not specified, etc I have a modest DB schema and my DMMF string is like 7MB. I believe it would be able to get it a lot smaller if we assume missing values are `false`/`null`. Is this a possibility? I'm willing to open a PR I just need a little guidance on this. My job is to make my application go faster and this appears to be at least one of the bottlenecks. More details are in that issue I linked.
For example regarding being pointed in the right direction.. If I wanted to make these booleans default to
false
... where are they used in the codebase? I tried searching and can't find any mention of
isReadOnly
except for a couple of tests.
Don't see it in prisma-engines or language-tools