Debugging & troubleshooting
Prisma Optimize helps you generate insights and provides recommendations that can help you make your database queries faster:
Optimize aims to help developers of all skill levels write efficient database queries, reducing database load and making applications more responsive.
In this section
Debugging
You can enable debugging output in Prisma Client and Prisma CLI via the DEBUG environment variable. It accepts two namespaces to print debugging output:
Handling exceptions and errors
In order to handle different types of errors you can use instanceof to check what the error is and handle it accordingly.
Troubleshooting binary size and deployment issues
If you encounter large bundle sizes, slow builds, or deployment errors related to Prisma’s Rust engine binaries, for example, in serverless or edge environments, the issue may be caused by the default native Rust query engine that ships with Prisma Client.