3 ms·
May I recommend OccamsRecord? It’s a gem allowing you to retrieve queries as hash without instantiating all the objects - and is much faster than AR. Also, Seq
by andrei_says_ 4y ago
May I recommend OccamsRecord? It’s a gem allowing you to retrieve queries as hash without instantiating all the objects - and is much faster than AR.
Also, Sequel exists. Yes it’s not the Rails way but is fantastic.
- zac23or 4y ago> May I recommend OccamsRecord? If ActiveRecord is affecting code speed I use raw sql which returns an array of hashes. And if the application needs to be fast, using ruby, the best way is to use Rack directly without frameworks.