Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: use insert ignore for filecache_extended
The current approach is to insert a new row and, if a unique constraint violation occurs, update an existing one. PostgreSQL logs the unique constraint violation as error "duplicate key value violates unique constraint". Our Adapter.insertIgnoreConflict method provides a way to run an insert query without logging such errors by using the vendor-specific sql extensions like "on conflict do nothing" on Postgres. Signed-off-by: Daniel Kesselberg <[email protected]>
- Loading branch information