Re: Help with Singletons

2009-03-02 Thread Alex Gaynor
On Mon, Mar 2, 2009 at 12:56 PM, Dan wrote: > > Hi everyone, > > I'm trying to create some lazy querying classes in my code to minimize > the number of queries run per request. Suppose, for example, I wanted > to store all the comments on a site in a variable, cached_comments, > which is part of

Help with Singletons

2009-03-02 Thread Dan
Hi everyone, I'm trying to create some lazy querying classes in my code to minimize the number of queries run per request. Suppose, for example, I wanted to store all the comments on a site in a variable, cached_comments, which is part of an application, Blog. (Note, I'm not actually doing anyt