Re: [Prevayler-discussion] Soft and Weak Reference for prevayler idea
Brought to you by:
jsampson,
klauswuestefeld
From: Klaus W. <kla...@ya...> - 2004-04-24 01:15:28
|
Hi Marconi, With Prevayler you do need enough RAM to hold all your business objects. That can be a problem if you don't have enough money to buy it. Basically, what you are suggesting is we make Prevayler into an object-oriented database. Many OODBMs already exist, though, and I am not going to implement yet another one. Variations on this idea are suggested once a month on this list. Its OK. :) Welcome to the list. :) See you, Klaus. --- Marconi Pereira Soldate <so...@bo...> wrote: > I was reading about these types of references and > they can solve three bigger problems that (I think) exist in prevayler. > > 1) Keep everything in RAM requires a lot of RAM. > Thousands of objects that are in memory can be only occupying memory space. > > 2) Having thousand of objects in the memory, snapshot and the > deserialization of the system seems to occupy a considerable time. > > 3) During the re-execution of a transaction, problems can occur > (Erros and RuntimesExceptions, right ?) that could leave a inconsistent > system. > Design the system on another way, the business objects could have weak > references in way that, if are not being very used, the Garbage Colector > could collect them. When need them again, would be brought for the memory > (task to be carried through by a subclass of Soft or Weak Reference). > As the system would be designed I still does not know, but I am certain that > it has a skill to implement this idea. > > First, these cited problems really exist or I did not understand the > system correctly? This idea already was thought? It works ? > > Thanks. > > > Marconi > > > > ------------------------------------------------------- > This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek > For a limited time only, get FREE Ground shipping on all orders of $35 > or more. Hurry up and shop folks, this offer expires April 30th! > http://www.thinkgeek.com/freeshipping/?cpg=12297 > _______________________________________________ > To unsubscribe go to the end of this page: > http://lists.sourceforge.net/lists/listinfo/prevayler-discussion > _______________________________________________ > "Do you still use a database?" -- http://www.prevayler.org __________________________________ Do you Yahoo!? Yahoo! Photos: High-quality 4x6 digital prints for 25¢ http://photos.yahoo.com/ph/print_splash |