this post was submitted on 16 Jul 2023
79 points (98.8% liked)

Programming

17377 readers
237 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
you are viewing a single comment's thread
view the rest of the comments
[–] rmam@programming.dev 9 points 1 year ago (2 children)

I think its easier for ops people to just use a proper database.

SQLite is a proper database.

For single-instance deployments, running SQLite means no overhead due to a network roundtrip, and things just work.

[–] gnus_migrate@programming.dev 1 points 1 year ago (1 children)

Proper = has actual admin tooling vs. just a file format.

[–] rmam@programming.dev 3 points 1 year ago (1 children)

What admin tooling do you need? You haven't defined any problem requiring a solution.

[–] gnus_migrate@programming.dev 1 points 1 year ago

The database in a state where it's violating some assumptions I'm making and I need to manually intervene without taking down my application for example. I need to have an audit trail on the changes being made to the database and who made them. I need to create replicas to implement failover. I need to replicate my application on multiple machines and all the replicas need to have the same view of the data. I need to mitigate the possibility of data leaks if I have multiple tenants sharing a database.

I'm not saying that you're wrong for using it. I'm just saying that it doesn't work for everything.

[–] eluvatar@programming.dev 1 points 1 year ago

I typically run postgres locally too (in docker), while there's still technically network overhead there's not much compared to a real network, plus you can easily move it to another machine without reworking your app to switch from SQLite to postgres.