Avatar for the prisma user
prisma
prisma
BlogDocsChangelog

perf(client): Pre-index DMMF datamodel during generation

#18861Merged
Comparing
integration/keyed-dmmf
(
6594d8f
) with
main
(
d3d9164
)
CodSpeed Performance Gauge
+5%
Improvements
0
Regressions
0
Untouched
3
New
0
Dropped
0
Ignored
0

Benchmarks

Passed

typescript compilation ~50 Models
packages/client/src/__tests__/benchmarks/huge-schema/huge-schema.bench.ts::typescript::typescript compilation ~50 Models
CodSpeed Performance Gauge
+8%
14.4 ms
13.3 ms
client generation 100 models with relations
packages/client/src/__tests__/benchmarks/lots-of-relations/lots-of-relations.bench.ts::typescript::client generation 100 models with relations
CodSpeed Performance Gauge
+5%
8.6 s
8.2 s
client generation ~50 Models
packages/client/src/__tests__/benchmarks/huge-schema/huge-schema.bench.ts::typescript::client generation ~50 Models
CodSpeed Performance Gauge
+3%
1.3 s
1.3 s

Commits

Click on a commit to change the comparison range
Base
main
d3d9164
-27%
perf(client): Pre-index DMMF datamodel during generation In the constructor, we spend some time indexing all models and types by their name, which on a larger schemas has an impact on startup performance. This PR replaces base-dmmf with a set of 3 pre-indexed maps. For backward compatibility, `Prisma.dmmf` export will be lazily computed using runtime datamodel if requested. Close prisma/client-planning#321
f492893
2 years ago
by SevInf
-1%
perf(client): Pre-index DMMF datamodel during generation In the constructor, we spend some time indexing all models and types by their name, which on a larger schemas has an impact on startup performance. This PR replaces base-dmmf with a set of 3 pre-indexed maps. For backward compatibility, `Prisma.dmmf` export will be lazily computed using runtime datamodel if requested. Close prisma/client-planning#321
553f71c
2 years ago
by SevInf
+42%
perf(client): Pre-index DMMF datamodel during generation In the constructor, we spend some time indexing all models and types by their name, which on a larger schemas has an impact on startup performance. This PR replaces base-dmmf with a set of 3 pre-indexed maps. For backward compatibility, `Prisma.dmmf` export will be lazily computed using runtime datamodel if requested. Close prisma/client-planning#321
8f67e07
2 years ago
by SevInf
-5%
perf(client): Pre-index DMMF datamodel during generation In the constructor, we spend some time indexing all models and types by their name, which on a larger schemas has an impact on startup performance. This PR replaces base-dmmf with a set of 3 pre-indexed maps. For backward compatibility, `Prisma.dmmf` export will be lazily computed using runtime datamodel if requested. Close prisma/client-planning#321
3d87134
2 years ago
by SevInf
-6%
Fix circular references
4ad122b
2 years ago
by SevInf
+29%
Fix studio
51af15c
2 years ago
by SevInf
-55%
Fix studio
2d1314e
2 years ago
by SevInf
-66%
Fix dataproxy + GraphQL
d8251e8
2 years ago
by SevInf
+94%
Fix legacy tests
6594d8f
2 years ago
by SevInf
© 2025 CodSpeed Technology
Home Terms Privacy Docs