Live data from Hacker News

SQLite is likely used more than all other database engines combined

sqlite.org

21–30 of 82 posts

Re: SQLite is likely used more than all other database engines combined

#21
post #14
post #10

I’m curious, is the prevalence of SQLite similar to how PHP is widely used because it’s behind many WordPress sites?

Couple of major companies like Adobe, Apple, Google, Mozilla use it in their products. That would add up quick. https://www.sqlite.org/famous.html

Chrome's use of SQLite for history, cookies, and local storage would probably put it in first place on its own. Its extensive use in iOS and Android just guarantees the "win".

Re: SQLite is likely used more than all other database engines combined

#22

For niche uses of database I am sure this is true. But if you are not in that niche, then Postgresql is usually a much better choice. For example Firefox uses SQLite, because it wants to store lots of application specific data. It is good for that. Personally, I find the tooling, documentation, familiarity and quality of Postgresql makes it my choice even in situations where SQLite might work.

The article is about number of installations, instances across all types of devices

Re: SQLite is likely used more than all other database engines combined

#23

For niche uses of database I am sure this is true. But if you are not in that niche, then Postgresql is usually a much better choice. For example Firefox uses SQLite, because it wants to store lots of application specific data. It is good for that. Personally, I find the tooling, documentation, familiarity and quality of Postgresql makes it my choice even in situations where SQLite might work.

I think the headline statistic negates the claim that these are "niche" uses of database.

Re: SQLite is likely used more than all other database engines combined

#24
post #7

In terms of installations, sure. In terms of total data, probably not. In terms of important data, 100% not. Important data needs guarantees, and its privacy is second to its longevity. Server side and centralized beats client side decentralized for all but sensitive consumer data.

> In terms of total data, probably not.

> In terms of important data, 100% not.

Choosing not to focus upon quantity or quality is likely the reason why SQLite is so popular. It is a lot easier to manage and develop for SQLite than it is to do the same for large databases that require high availability and reliability under heavy loads. There are many more applications for small databases that contain data that is important to the end user even though that data may not be important to anyone else.

Re: SQLite is likely used more than all other database engines combined

#25
I wonder what happened to bdb. I guess maybe authors lost interest/sold to Oracle and the license changed development just didn't keep up with the times. Bdb used to be the sqlite before sqlite existed and ended up used by various embedded applications or even graphical interfaces e.g. to index file thumbnails and such. I'm not sure but I think MacOS at one point used it this way.

Re: SQLite is likely used more than all other database engines combined

#26
I love SQLite. It’s pluggable interfaces and concise C code make it enjoyable to use (and sometimes to debug - as long as you don’t have to go through the single file version!).

Unfortunately, I wish there were multiple implementations of it, and that the file format was documented and stable.

Re: SQLite is likely used more than all other database engines combined

#27
post #7

In terms of installations, sure. In terms of total data, probably not. In terms of important data, 100% not. Important data needs guarantees, and its privacy is second to its longevity. Server side and centralized beats client side decentralized for all but sensitive consumer data.

Right. In terms of installations, I bet textfiles still win. Doesn't mean much, does it?

Re: SQLite is likely used more than all other database engines combined

#28
post #6

i find it ironic one of the most gatekeepy, closed, walled garden companies in the history of the planet, Bloomberg, is a sponsor of one of the most free most open piece of software ever.

Another irony is that according to Wikipedia [1] Bloomberg maintains a fork of BDB.

[1] https://en.wikipedia.org/wiki/Berkeley_DB

Re: SQLite is likely used more than all other database engines combined

#29

For niche uses of database I am sure this is true. But if you are not in that niche, then Postgresql is usually a much better choice. For example Firefox uses SQLite, because it wants to store lots of application specific data. It is good for that. Personally, I find the tooling, documentation, familiarity and quality of Postgresql makes it my choice even in situations where SQLite might work.

At some point, such local usages were sufficiently non-niche that the temp file extension was changed from "sqlite" to "etilqs" to stem the flood of angry emails about local application databases taking up too much disk space.

(cf. Daniel Stenberg getting angry emails because everybody and their dog embeds libcurl, sometimes multiple times in the same app)

Re: SQLite is likely used more than all other database engines combined

#30

For niche uses of database I am sure this is true. But if you are not in that niche, then Postgresql is usually a much better choice. For example Firefox uses SQLite, because it wants to store lots of application specific data. It is good for that. Personally, I find the tooling, documentation, familiarity and quality of Postgresql makes it my choice even in situations where SQLite might work.

I'd guess most programs ever written are single-process programs with no need for the benefits postgres provides over sqlite. Postgres doesn't even have analogous functionality for eg an in-memory sql instance!
Post reply on HN