nandosola / dilithium-rb

A tiny framework to power your enterprise-ish stuff in Ruby
BSD 3-Clause "New" or "Revised" License
3 stars 3 forks source link

fetch_all does N+1 queries #59

Open mcamou opened 10 years ago

mcamou commented 10 years ago

Currently, fetch_all does a first query to get all the keys and then calls fetch_by_id for each query. We should get everything in a single query.