From: Dmitri Colebatch Date: 2003-01-21T11:21:45+09:00 Subject: Re: persistence (was: IE blatantly defiant of HTML standards) the hard thing is then indexes.... I've created my own little custom wrapper on PStore that basically loads everything in memeory - but then I have to do my own searches - I basically loop over the collection... not good... in time I see that I can create indexes on the things I know I need to search on, and not keep the whole thing in memory - also speed up searching considerably... shouldn't be too hard on the scale I'm talking... of course the real problem if you have an existing database is data migration... show me a dba who will let you move their 2 gig schema into something the open source community has built... my 2c dim Tom Sawyer wrote: > On Monday 20 January 2003 04:58 am, Anders Bengtsson wrote: > >>I'd recommend looking at Prevayler, it's a very easy >>solution to most persistence problems. >>There is a Ruby port, Mnemonic, but you can write your >>own Prevayler port in a few hours if you need to. >> >>http://www.prevayler.org/ > > > Prevayler is a very interesting idea, but it isn't a full purpose solution. i > would love to be able to use something like this but i have tables that are > multiple hundreds of megabytes each. i'd run out of memory pretty quick. > > but it did get me thinking that it would be neat is Ruby could cache its > ObjectSpace to disk, or more exactly, if it could track object usage and > cache the objects with oldest/least use. then Ruby in and of itself could be > persistent, and work as a general purpose soultion. > > thought? > > -transami > > >