Re: preloading/caching small tables

Jeremy Voorhis
2005-07-28T20:02:00Z

Perhaps instead of using database tables, you could store the data
with YAML instead. It sounds like it would be well-suited for how you
want to use it.

On 7/28/05, Imran Patel
<imran.patel-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:
> Hi,
>
> I have couple of small database tables that I would like to get
> pre-loaded (as hash[id] = value) "once" in my app at startup. I
would
> like to access the resulting hashes in my Controller logic. I have
> tried looking for answers on the wiki but haven''t been very
> successful. What would be the best way to do this?
>
> Thanks
> imran
> --
> "Oh, I used to be disgusted, now I try to be amused."
>                       - Elvis Costello
> _______________________________________________
> Rails mailing list
> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>