Comment by kevinak

11 hours ago

Is FastAPI just bad with SQLite? I would have expected SQLite to smoke Postgres in terms of ops/s.

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