调试和故障排除
Prisma 优化 可帮助你生成洞察并提供建议,帮助你加快数据库查询速度:
¥Prisma Optimize helps you generate insights and provides recommendations that can help you make your database queries faster:
Optimize 旨在帮助各个技能水平的开发者编写高效的数据库查询,减少数据库负载并提高应用的响应速度。
¥Optimize aims to help developers of all skill levels write efficient database queries, reducing database load and making applications more responsive.
在这个部分
¥In this section
调试
你可以通过 DEBUG 环境变量在 Prisma Client 和 Prisma CLI 中启用调试输出。它接受两个命名空间来打印调试输出:
处理异常和错误
为了处理不同类型的错误,你可以使用 instanceof 检查错误是什么并进行相应的处理。
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.