Hey guys, just testing Prisma with postgres connec...
# orm-help
t
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?
n
This is unexpected, and I would like to learn more about its reproduction. Hence I commented here https://github.com/prisma/prisma/issues/3210.
(also see the related issue I mentioned)
t
thx for the reply
n
thanks for the repro repo, trying it now