Index per-source tag refreshes for scalable bulk ingestion
Metadata integrity checks / metadata (push) Successful in 5s

This commit is contained in:
2026-11-06 11:39:16 +08:00
parent 5d9d13a272
commit a3539be4b1
3 changed files with 17 additions and 5 deletions
+1
View File
@@ -63,6 +63,7 @@ CREATE TABLE IF NOT EXISTS paper_tags (
source_record_id INTEGER REFERENCES source_records(id),
evidence_key TEXT NOT NULL, PRIMARY KEY(paper_id,tag_id,evidence_key)
);
CREATE INDEX IF NOT EXISTS paper_tags_source_evidence ON paper_tags(source_record_id,evidence_key);
CREATE TABLE IF NOT EXISTS match_candidates (
left_paper_id INTEGER NOT NULL REFERENCES papers(id), right_paper_id INTEGER NOT NULL REFERENCES papers(id),
method TEXT NOT NULL, score REAL, evidence_json TEXT NOT NULL,