Prisma의 쿼리 로깅은 ORM의 관점에서만 데이터베이스 동작을 기록한다.
Prisma에서 쿼리 로깅을 활성화했지만, 실제 데이터베이스(PostgreSQL)의 동작까지는 포괄하지 못한다는 것을 설명한다. Prisma의 로그는 쿼리 실행 시간과 ORM 관점에서의 세부사항만을 보여주며, 데이터베이스 내부의 인덱스 사용이나 계획 선택의 오류는 반영하지 않는다. 이러한 오해는 최적화 결정을 내리는 데 있어 잘못된 방향으로 이끌 수 있다.
Prisma's query logging only records database behavior from the ORM's perspective.
The article explains that enabling query logging in Prisma provides insights only from the ORM's perspective but not about the actual behavior in the database (PostgreSQL). Prisma logs display query execution times and details from the ORM view, but do not include insights on index usage or planning decisions made by the database. This misunderstanding can lead to incorrect optimization decisions.