Closed bethesque closed 8 months ago
Note that we do run all our tests against Postgres (multiple versions) as well as Sqlite (and MySQL, but let's not talk about that) in CI.
Major release for what hairy bits? What is backwards incompatible?
I thought you were hinting at dropping support for other databases
Reduce contention updating the contract_data_updated_at for integrations, which is causing some responses to be slow while locks are waited for.
This is tricky to test in a unit test, especially as the database we use for our unit tests (Sqlite) doesn't support SKIP LOCKED, so I manually tested it using the following code.
In another shell, within 15 seconds:
The second script will complete immediately, without waiting for the first one to sleep its 15 seconds. The first script will update integrations 1 and 2, while the second script will attempt to update 2 and 3, but will only actually update 3.