ryanb / xapit-sync

Rails plugin to automatically reload a Xapian database when models change.
MIT License
12 stars 3 forks source link

Remove duplicate changes #5

Open ryanb opened 15 years ago

ryanb commented 15 years ago

If a record is updated more than once, or updated and then destroyed, then only one XapitChange should be recorded. We don't want to replace documents more than necessary.

To accomplish this we could remove previous XapitChange records which have the same target_class and target_id.