Hey guys,
just testing Prisma with postgres connector. I was curious how many SQL queries are executed and found that even for simple query like
query getPost {
post(postId: “cjmln88vt000z0a17d5vha3wq”){
title
}
}
‘’postgres’' DB logs two executed queries:
postgres_1 | 2018-09-28 114541.804 GMT [34] LOG: execute <unnamed>: select
postgres_1 | “default$default”.“Post”.“id”,
postgres_1 | “default$default”.“Post”.“title”,
postgres_1 | “default$default”.“Post”.“published”
postgres_1 | from “default$default”.“Post”
postgres_1 | where “default$default”.“Post”.“id” = $1
postgres_1 | 2018-09-28 114541.804 GMT [34] DETAIL: parameters: $1 = ‘cjmln88vt000z0a17d5vha3wq’
postgres_1 | 2018-09-28 114541.804 GMT [33] LOG: execute <unnamed>: select
postgres_1 | “default$default”.“Post”.“id”,
postgres_1 | “default$default”.“Post”.“title”,
postgres_1 | “default$default”.“Post”.“published”
postgres_1 | from “default$default”.“Post”
postgres_1 | where “default$default”.“Post”.“id” = $1
postgres_1 | 2018-09-28 114541.804 GMT [33] DETAIL: parameters: $1 = ‘cjmln88vt000z0a17d5vha3wq’
Is this somehow expected or not?