Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: ORM for db migrations #83

Open
Tracked by #12
Drew-Macgibbon opened this issue Jul 2, 2023 · 0 comments
Open
Tracked by #12

feat: ORM for db migrations #83

Drew-Macgibbon opened this issue Jul 2, 2023 · 0 comments
Assignees
Labels
🌱 feature added functionality 🗣️ discuss further discussion is required

Comments

@Drew-Macgibbon
Copy link
Contributor

Drew-Macgibbon commented Jul 2, 2023

Drizzle:

Pros:

  • cost reduction by bundling joins into a single query
  • great ts support

Cons:

  • may not be production ready (relatively new, not as battle tested)
  • small development team
  • documentation is not as good
  • unlikely hires will know

prisma:

Pros:

  • Prisma 5.0 was just released, it addresses the cold start issues
  • great documentation and by far the more popular choice
  • larger development team
  • hires are more likely to know
  • has db client GUI

Cons:

  • Performing joins is not optimized, and requires multiple queries to the DB (PG Bouncer should mitigate this) it is also being worked on
  • PostGIS support is a work in progress (spacial queries for location-specific functionality)

Decision

We will use Prisma, it will allow us to move faster, and by the time the cons become problematic (10k+ users) I suspect the Prisma team will have fixed the issues.

@Drew-Macgibbon Drew-Macgibbon self-assigned this Jul 2, 2023
@Drew-Macgibbon Drew-Macgibbon added 🌱 feature added functionality 🗣️ discuss further discussion is required labels Jul 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🌱 feature added functionality 🗣️ discuss further discussion is required
Projects
None yet
Development

No branches or pull requests

1 participant