fix: mvtart sync ON CONFLICT DO NOTHING + doc ranking API

- Add ON CONFLICT DO NOTHING to mvtart insert to work with unique index
- Document ranking endpoints in API_DOCUMENTATION.md

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
MichaelandClaude Opus 4.6 committed 2026-03-19 11:03:28 +01:00
1 parent 792ddc71d2
commit cbfaee2dfb
2 files changed
+104 -1

No files matched your search

+1 -1
View File
@@ -25,7 +25,7 @@ async function insertChunk(pg, table, rows, cols) {
return `(${ph.join(', ')})`;
});
await pg.query(
`INSERT INTO ${table} (${cols.join(', ')}) VALUES ${placeholders.join(', ')}`,
`INSERT INTO ${table} (${cols.join(', ')}) VALUES ${placeholders.join(', ')} ON CONFLICT DO NOTHING`,
values
);
}