getodk / getodk/central

Blobs: avoid re-writing sha value on failed (unnecessary) UPSERT

Open
#1,219 0 comments 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.