From: Carsten Gehling Date: 2009-09-15T02:37:22+09:00 Subject: Re: Pre-allocate large amount of memory? Robert Klemme wrote: > > Maybe it's not such a good idea to read everything in memory. After > all, retrieving large volumes of data from disk is where RDBMS's > shine. My reason for doing this is simply to avoid multiple sql-queries in a recursive self-referencing datastructure. Usually this can be avoided by querying the entire subset of data needed, and manipulate it in memory. Unfortunately the data in question does not enable me to just query the subset of data. I will definetely have a look at Redis. Seems promising. Thanks. - Carsten -- Posted via http://www.ruby-forum.com/.