Skip to content

Document that only one instance of Prisma client should be initialized and shared across the app #822

@pantharshit00

Description

@pantharshit00

Since a Prisma instance initalizes the prisma query-engine binary and also spins up a db pool, one should not spin up a Prisma instance like in every request.

See prisma/prisma#1983 (comment) for more details.

prisma/prisma#1983 (comment)

Metadata

Metadata

Assignees

Labels

type/docsDocumentation creation, updates or corrections

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions