{"html_url": "https://github.com/dogsheep/dogsheep-beta/issues/18#issuecomment-688623097", "issue_url": "https://api.github.com/repos/dogsheep/dogsheep-beta/issues/18", "id": 688623097, "node_id": "MDEyOklzc3VlQ29tbWVudDY4ODYyMzA5Nw==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-09-08T05:15:51Z", "updated_at": "2020-09-08T05:15:51Z", "author_association": "MEMBER", "body": "I'm inclined to go with the first, simpler option. I have longer term plans for efficient incremental index updates based on clever trickery with triggers.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 695553522, "label": "Deleted records stay in the search index"}, "performed_via_github_app": null} {"html_url": "https://github.com/dogsheep/dogsheep-beta/issues/18#issuecomment-688622995", "issue_url": "https://api.github.com/repos/dogsheep/dogsheep-beta/issues/18", "id": 688622995, "node_id": "MDEyOklzc3VlQ29tbWVudDY4ODYyMjk5NQ==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-09-08T05:15:21Z", "updated_at": "2020-09-08T05:15:21Z", "author_association": "MEMBER", "body": "Alternatively it could run as it does now but add a `DELETE FROM index1.search_index WHERE key not in (select key from ...)`.\r\n\r\nI'm not sure which would be more efficient.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 695553522, "label": "Deleted records stay in the search index"}, "performed_via_github_app": null}