I have a method in rails that is doing something like this:
a = Foo.new(\"bar\") a.save b = Foo.new(\"baz\") b.save ... x = Foo.new(\"123\", :parent_id =&g
You don't need a gem to hit DB fast and only once!
Jackrg has worked it out for us: https://gist.github.com/jackrg/76ade1724bd816292e4e