You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You have to migrate from mongodb database which is currently using mongoose ODM to postgres database using prisma or drizzle as an ORM abstraction layer.
Technical Details
Add abstraction methods so that data layer is separate from business layer and presentation layer.
Normalize the schema design by making separate tables for each embedded documents, and references to be converted to foreign keys, focusing on the transactional workloads. If we still require some flexible schema and nested structure, just add that column of jsonb type
Use Drizzle as an ORM as they are edge compatible.
Use Turso or Neon for your postgres server or setup one locally via docker.
The text was updated successfully, but these errors were encountered:
Problem Statement
You have to migrate from mongodb database which is currently using mongoose ODM to postgres database using prisma or drizzle as an ORM abstraction layer.
Technical Details
jsonb
typeThe text was updated successfully, but these errors were encountered: