michaelfairley/abongo — pull request #2 by teejteej (2012-03-28 17:20:44+00:00)
Title: Performance optimizations

Hi Michael,

In preparation of migration a high traffic site off abingo and onto abongo, I was concerned about Abongo not yet using any indexes. I'm now calling `ensure_indexes` when the `db` variable is set, to ensure the most important indexes are there. Also, I've switched around some params in queries, so they can take advantage of the new compound indexes.

As an extra, I've removed `:safe => true` from the `add_conversion` method, as I didn't see any advantage in that specific case and prefer the performance over safety in the current high traffic project I'm using Abongo for.

Thanks!