I’m trying to optimize synchronizing a DataMapper store to a csv file
capture. I want to destroy all records that gets deleted from the daily
csv file I’m reading. Currently, I’m just using a boolean field called
touch, and setting it to false before reading the file, setting it to
true when I see the record, then destroying all ‘touched = false’
records when I’m done.
Needless to say, this doesn’t scale well with 300k lines of CSV. There
an easier way that I’m missing?