mirror of
https://github.com/basicmachines-co/basic-memory
synced 2026-06-21 13:47:35 +00:00
0818bda565
Add add_all_ignore_duplicates() method to RelationRepository for bulk inserting relations with ON CONFLICT DO NOTHING. This handles cases where the same [[wiki link]] appears multiple times in a document, silently ignoring duplicates based on the (from_id, to_name, relation_type) unique constraint. Works with both SQLite and PostgreSQL dialects. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: phernandez <paul@basicmachines.co>