Blobs: avoid re-writing sha value on failed (unnecessary) UPSERT
Open
backend
performance
- Dominant language
- JavaScript
- Stars
- 226
- Forks
- 235
- Avg merge
- 2d 22h
- Merged PRs (30d)
- 19
Description
In https://github.com/getodk/central-backend/blob/8491deeaa73abd13a47ffe7bf8451103e614d214/lib/model/query/blobs.js#L26, a `sha` value is rewritten unnecessarily. This is **not** a no-op in postgres, and if an equally reliable alternative which does not require write-on-conflict can be found, that would be preferable.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.