Join Slack
Powered by
Shouldn't there always be an Index on the @id fiel...
# orm-help
h
Halvor
07/06/2022, 8:02 AM
Shouldn't there always be an Index on the @id field? Seems like a lot of my tables in db is missing them... Why?
✅ 1
y
yujonglee
07/06/2022, 12:09 PM
https://www.prisma.io/docs/concepts/components/prisma-schema/indexes
might help.
n
nikolasburk
07/06/2022, 2:23 PM
As far as I’m aware,
an index is automatically created for a primary key
. So, that’s why it might not be visible in the DB itself, but as long as the
PRIMARY KEY
is there, you’re safe in that the column has an index as well 👍
h
Halvor
07/08/2022, 7:09 AM
thx 🙂
🙌 1
Open in Slack
Previous
Next