Geezeo/moe — pull request #2 by fuzz (2014-02-04 16:46:05+00:00)
Title: Ordering would help

Realized I completely dropped the ball
because I have no way to order metadata_items (flow logs) so they are
displayed in a random order. Ha ha ha cry. I considered ordering them by date
once retrieved and for most cases I have seen that would probably be fine but
I have only looked at a couple of dozen out of millions of accounts and it
falls rather short of moe's goal to be a toolkit for using dynamo at scale.
So, ugh, an index :( Not the end of the world but I was disappointed that my
persistence strategy was not as efficient as I had expected. But then! I
remembered dynamo scans through range keys in order (you can choose forwards
or back) so it was simply a matter of adding a timestamp to the hash key and
making sure they follow dynamo's rules for ordering strings.