| ▲ | hedora an hour ago | ||||||||||||||||
Not the person you are responding to, but sqlite is single threaded (even in multi process, you get one write transaction at a time). So, if you have a network server that does BEGIN TRANSACTION (process 1000 requests) COMMIT (send 1000 acks to clients), with sqlite, your rollback rate from conflicts will be zero. For PG with multiple clients, it’ll tend to 100% rollbacks if the transactions can conflict at all. You could configure PG to only allow one network connection at a time, and get a similar effect, but then you’re paying for MVCC, and a bunch of other stuff that you don’t need. | |||||||||||||||||
| ▲ | andriy_koval an hour ago | parent [-] | ||||||||||||||||
In your example, clients can't have their own transactions? You commit/rollback all requests for all 1000 clients together? | |||||||||||||||||
| |||||||||||||||||