Ask HN: Have you used SQLite as a primary database?
11–20 of 330 posts
Re: Ask HN: Have you used SQLite as a primary database?
#12The only issue is that you'll need to take special care when backing up the DB file (but this is probably the same for most DBs even today.)
Re: Ask HN: Have you used SQLite as a primary database?
#13It's also powering another one and I really like the fact that I can just commit the whole DB to the GIT repo.
Re: Ask HN: Have you used SQLite as a primary database?
#14so long as you are not trying to access the DB with more than one process, sqlite scales as far as most DBs on a single instance. The only issue is that you'll need to take special care when backing up the DB file (but this is probably the same for most DBs even today.)
Re: Ask HN: Have you used SQLite as a primary database?
#15It works great - there are ergonomic APIs in most languages, it’s fast and reliable, and great to be able to drop into an SQL shell occasionally to work out what’s going on. A custom binary format might be slightly more optimal in some ways but using sqlite saves so much work and means a solid base we can trust.
Re: Ask HN: Have you used SQLite as a primary database?
#16so long as you are not trying to access the DB with more than one process, sqlite scales as far as most DBs on a single instance. The only issue is that you'll need to take special care when backing up the DB file (but this is probably the same for most DBs even today.)
Re: Ask HN: Have you used SQLite as a primary database?
#17Re: Ask HN: Have you used SQLite as a primary database?
#18 1) Sqlite
2) Self-hosted Postgres
3) Big Boy Database, with an $$$ cost. (AWS Aurora, Oracle, etc).
Most projects never leave the Sqlite level. Only one has left the Postgres level so far.Re: Ask HN: Have you used SQLite as a primary database?
#19Production uses: 0 (1 if my Ph.D. thesis code is included, which had some C++ code that linked against version 2 of the SQLite library).