Prisma troubleshooting
· One min read
Read replica
- I thought it didn't exist due to the Support for Read Replicas #172 issue.
- But it is provided in the form of middleware at prisma/prisma-read-replica-middleware.
- e.g. prisma/middleware-examples/prisma-read-replica-middleware
Data sources
- In the
schema.prisma
file, there can only be onedatasource
column. - In case the data source changes, the
migration.lock
file must be deleted and the migration process must be run again.
Polymorphism
- Support for Polymorphic Associations #1644 It seems there is no current plan to support this.
- Polymorphic relationships are necessary in normalization but it de-normalizes by adding information to the column.