freerange/sauron — pull request #28 by tomafro (2012-04-26 08:20:26+00:00)
Title: Repository collaborates with an index

Record is a terrible name for the thing that we add messages to alongside the store. My feeling is that it is really an index; it's key purpose is to give us fast access to messages, so we don't have to read in and parse all 100k odd message bodies every time we want to access data. I'd even like to remove all ActiveRecord methods that we're currently using (such as `where`) out of the repository and into a defined interface in the index (but not in this pull request). It shouldn't need to be an ActiveRecord subclass at all (even if it uses them).