Also surprised. My yardstick was this post which showed SQLite beating Postgres in a Django app. Benchmarking is hard, and the author said the Postgres results were not tuned to the same degree as SQLite, so buyer beware.
https://blog.pecar.me/django-sqlite-benchmark
Yes, that's why I would expect it to smoke Postgres here, in process is orders of magnitude faster. Do you really need concurrency here when you can do 10-100k+ inserts per second?
I think Python is bad in general if you want “high-performance”
Also surprised. My yardstick was this post which showed SQLite beating Postgres in a Django app. Benchmarking is hard, and the author said the Postgres results were not tuned to the same degree as SQLite, so buyer beware. https://blog.pecar.me/django-sqlite-benchmark
SQLite is in process, but concurrent write / performance is a complex matter : https://sqlite.org/wal.html
Yes, that's why I would expect it to smoke Postgres here, in process is orders of magnitude faster. Do you really need concurrency here when you can do 10-100k+ inserts per second?
If 100k users each hit purchase button at the same time will sqlite write it in 1 second?
This is different than 1 user doing the purchase for 100k fans