31
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
this post was submitted on 03 Apr 2024
31 points (100.0% liked)
Programming
16968 readers
250 users here now
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Rules
- Follow the programming.dev instance rules
- Keep content related to programming in some way
- If you're posting long videos try to add in some form of tldr for those who don't want to watch videos
Wormhole
Follow the wormhole through a path of communities !webdev@programming.dev
founded 1 year ago
MODERATORS
In 15 years I have never actually seen this happen.
As you've said writing generically can have big performance implications.
Almost all projects I've seen end up locked in one way or another.
A better approach if you want to do this is abstract away the actual database stuff from your main code.
This way you can do whatever provider specific stuff you need and still allow the option to rip it out with minimal refactoring.
Your main code shouldn't really care what provider you are using. Only code that interacts directly with the database should.