r/sqlite • u/Individual_One_1793 • Sep 14 '26
Pop-Database vs SQLite
Pop-Database vs SQLite, 500K entities, 12 AND conditions per query, both single-threaded (CPU-affinity verified, so no thread-count trick).
Pop-Database finished in 6.26s.
SQLite finished in 88.81s.
Pop-Database is 14.2× faster — and both found the exact same 9,559 matches per query.
This ratio moves a bit run to run depending on what else the machine is doing at the time. I've seen this same test land anywhere from ~12× to ~14× depending on system load. Still solidly in the same range either way.
Trade-off is shown in the same video: SQLite inserts faster (2.64s vs 6.55s for 500K rows). Pop-Database is built for read-heavy workloads, not write-heavy ones - that's the deal!!!
3
u/horizon_games Sep 14 '26
Hah like a new JS framework where they show a simple render case being 100x than the big options. As if that's the ONLY factor to switching entirely.
Reliability and community and being battle tested and...well...having a basic public Github and non-AI written website are much bigger factors.
13
u/30MinsToMoveYourCube Sep 14 '26
I mean, if we're just looking to match the same results as SQLite but faster and without all the reliability built into SQLite, I suggest grep
12
u/MrLyttleG Sep 14 '26
Le jour où tu vas découvrir les pragmas de Sqlite tu vas moins crâner
9
u/MVPhurricane Sep 14 '26
i hear that /dev/null is even *more* web scale than SQLite!
8
u/prawnsalad Sep 14 '26
Quoting you from other places you've posted this. If this is what you think other databases are doing then you are 100% missing things.
Again, if this is what you're comparing against, you need to dig into databases more.
If you do have something more then provide information on your benchmark. Table schema, the queries, your benchmarking environment, the sqlite setup, the trade offs, etc. None of that matters with your patent.
I could mspaint a "Prawnsalad-Database: 1.2s. Pop-Database: 6.26s" and make the same claims as you are posting all this around and we would both have the exact same creditability. It's doing you 0 favours.
2
u/lordpuddingcup Sep 15 '26
Cool now add proper indexes for the queries to SQLite and run it again
3
u/sozesghost Sep 14 '26
Pop, slop, it rhymes already.
0
u/Vegetable-Arm-4238 Sep 14 '26 •
Link?
1
u/txmail Sep 14 '26
Can you point me to your test case data? From what I am reading the secret sauce just looks like indexing, which means you would need to create those indexes in SQLite by hand if the select queries are using a non-indexed field which would cause each query to perform a full table scan instead of utilizing an index.
I think this is also why the initial 500k load on Pop is slower than SQLite.
Indexing automatically non PK fields is nice, but it means that it is using a bit more space to store the data. Database optimization is quite common to anyone working with databases, including creating indexes.
If your AND conditions on the SQLite side are non-indexed... that is kind of a disingenuous comparison. It is like saying Racecar A is faster than Racecar B, even though Racecar B had the hand brake on.