Live data from Hacker News

There are over one trillion SQLite databases in active use

sqlite.org

51–60 of 92 posts

Re: There are over one trillion SQLite databases in active use

#51
post #48

SQLlite has also got probably the most well-tested code of conduct of any open source project in the world (aside from the other open source projects which use this CoC) https://sqlite.org/codeofethics.html

I don't think anyone can reasonably get angry over someone else following these. Good rules.

Haha I’d love to agree but it seems there are plenty of people in this thread that are upset about it nonetheless

Re: There are over one trillion SQLite databases in active use

#52
post #48

SQLlite has also got probably the most well-tested code of conduct of any open source project in the world (aside from the other open source projects which use this CoC) https://sqlite.org/codeofethics.html

I don't think anyone can reasonably get angry over someone else following these. Good rules.

> Speak no useless words or words that move to laughter.

I'm extremely biased coming from a family with a long tradition of atheism and even anticlerical "militantism".

Re: There are over one trillion SQLite databases in active use

#53
post #46
post #18

Earlier quoted context omitted.

Not GP, but PostgreSQL offers jsonb fields[1] Since PostgreSQL allows for functional indexes, you can query and index the data in a structured way. For example you have a table t with "id" and "data" where data is a jsonb field like {foo: ..., bar: ...}. You can do SELECT id, data->'foo' FROM t WHERE data->'bar' > 5 Which will yield the value of "foo" (inside the json field) for rows where "bar" (inside the json fiel…

Unless I'm misunderstanding SQLite can do this as well, but with less nice syntax. The above could be written something like: SELECT id, json_extract(data, '$.foo') FROM t WHERE json_extract(data, '$.bar') > 5 in SQLite. You can also add an index on one of these expressions: https://dgl.cx/2020/06/sqlite-json-support

That is true, but SQLite doesn't support functional indexing. This means that you cannot do

    CREATE INDEX idx_t_bar ON t(json_extract(data, '$.bar'));
for fast lookups. But you can do

    CREATE INDEX idx_t_bar ON t(data->'bar');
in PostgreSQL. You have some workarounds like I explained.[1]

Also PostgreSQL has many operators[2] which makes using JSON fields easier.

[1] https://news.ycombinator.com/item?id=29461926

[2] https://www.postgresql.org/docs/9.5/functions-json.html

Re: There are over one trillion SQLite databases in active use

#54

Earlier quoted context omitted.

> No one is required to follow The Rule...[The SQLite developers] view The Rule as their promise to all SQLite users of how the developers are expected to behave. This is a one-way promise, or covenant. In other words, the developers are saying: "We will treat you this way regardless of how you treat us." I don't see a problem here, despite my own disinterest in following the Christian faith or any other. It's not ha…

In fact, that would go against their code of ethics.

While true, I suspect this may not reliably qualify as a compelling argument for someone disposed to raise prima facie concerns about the same code of ethics because it makes open reference to deity.

Then again, I suppose an argument from behavior may also be less likely to convince an interlocutor more inclined to concern with what someone else believes than with how they actually behave. So it goes.

Re: There are over one trillion SQLite databases in active use

#56
post #44

One of the examples of wildly successful "one-man-army" software (conceived of and built by a single person). See also: Redis, Linux, Doom/Quake, Steve Wozniak, jQuery, Python and countless obscure modern SaaS products.

Their extensive test library is proprietary, so they ensure the path of least resistance for companies is to hire themselves to make improvements to the library.

That has helped ensure there are no forks given quality would be inferior.

It also kept SQLite out of the browser since there are no competing implementations of it.

Re: There are over one trillion SQLite databases in active use

#57
post #17
post #8

Don’t forget to count all the cruise missiles, too!

Those tend to fall out of the “active use” category not long after entering it, so it’s probably not a big factor. On a more serious note, had there been something special about SQLite supporting military use of their project that prompted this? Otherwise that’s the point of free software, people are free to do (mostly) whatever they want with it. Including building weapons. SQLite is so prevalent, it’s almost like p…

I remember an interview whereby he mentioned sqlite was initially built for software on warships.

Re: There are over one trillion SQLite databases in active use

#58
post #23

Earlier quoted context omitted.

Hundreds of SQLite files? In active use? Unless iOS itself spawns a few hundred instances and actively uses them all the time I have a hard time thinking of what would use so many databases, much less that they’re actually in active use.

What does active use really mean? The databases themselves are only accessed for a few nanoseconds at a time.

That's true of most software though, even when you're staring at their GUI. It's part of the normal operation of the software, where do you draw the line?

Re: There are over one trillion SQLite databases in active use

#59
post #53
post #46

Earlier quoted context omitted.

Unless I'm misunderstanding SQLite can do this as well, but with less nice syntax. The above could be written something like: SELECT id, json_extract(data, '$.foo') FROM t WHERE json_extract(data, '$.bar') > 5 in SQLite. You can also add an index on one of these expressions: https://dgl.cx/2020/06/sqlite-json-support

That is true, but SQLite doesn't support functional indexing. This means that you cannot do CREATE INDEX idx_t_bar ON t(json_extract(data, '$.bar')); for fast lookups. But you can do CREATE INDEX idx_t_bar ON t(data->'bar'); in PostgreSQL. You have some workarounds like I explained.[1] Also PostgreSQL has many operators[2] which makes using JSON fields easier. [1] https://news.ycombinator.com/item?id=29461926 [2] htt…

> SQLite doesn't support functional indexing

SQLite has "Indexes On Expressions"[1] since 2015. I'm assuming functional indexing in Postgres is the same. So I think the syntax would be:

    CREATE INDEX idx_t_bar ON json_extract(data, '$.bar');
[1]: https://www.sqlite.org/expridx.html

> Also PostgreSQL has many operators[2] which makes using JSON fields easier.

This does look a little more convenient to write than SQLite's JSON syntax, but I don't see any fundamental difference here.

Re: There are over one trillion SQLite databases in active use

#60
post #51
post #48

Earlier quoted context omitted.

I don't think anyone can reasonably get angry over someone else following these. Good rules.

Haha I’d love to agree but it seems there are plenty of people in this thread that are upset about it nonetheless

Well, you can agree, and they can continue being upset about other people's life choices. Letting the pop vox dictate your speech isn't wise.
Post reply on HN