mirror of
https://github.com/MarginaliaSearch/MarginaliaSearch.git
synced 2025-02-24 05:18:58 +00:00
(ldb) add OR IGNORE to insert status query
Otherwise it will sometimes fail because documents may appear more than once in error scenarios.
This commit is contained in:
parent
e4d7958379
commit
048f685073
@ -33,7 +33,7 @@ public class LinkdbStatusWriter {
|
||||
|
||||
public void add(List<UrlStatus> statuses) throws SQLException {
|
||||
try (var stmt = connection.prepareStatement("""
|
||||
INSERT INTO STATUS(ID, URL, STATUS, DESCRIPTION)
|
||||
INSERT OR IGNORE INTO STATUS(ID, URL, STATUS, DESCRIPTION)
|
||||
VALUES (?, ?, ?, ?)
|
||||
""")) {
|
||||
int count = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user