Re: Imagine if Prevayler could transparently use disk...
Naveen Chawla <[email protected]>
| Newsgroups | gmane.comp.java.prevayler |
|---|---|
| Message-ID | <CAGs7EcVFb0h54qS77cZtZOjOp1Sgb=jQuAaWO-7ZU7rDnpLdqg@mail.gmail.com> |
Hi Klaus, Thanks for your reply. What I'm suggesting is only normal Prevayler behaviour until a near-maximum memory threshold is reached, then utilise disk only if and where necessary after that (if this mode is selected). The stuff in memory will still be as normal Prevayler, right? I presumed that OODBMSs etc. always require disk-saving during changes, and don't rely on transaction logging, like Prevayler, to recover their objects when only the in-memory stuff is changed, which is why I said this would be faster than (and thus be an irresistable replacement for) all databases accessed with Java. Am I wrong? Or do OODBMSs behave like Prevayler (i.e. use only transaction logging) when you change in-memory stuff? By orders of magnitude slower I'm presuming then you mean only the limitations of the hardware itself? Isn't this perfectly fine for anyone who wants to persist large data? Prevayler is orders of magnitude easier to use (its best feature in my opinion), and would also be way faster than any alternative, unless I'm wrong about that? And the complexity certainly wouldn't be at the user level, right? On 17 November 2011 01:02, Klaus Wuestefeld <[email protected]> wrote: > Hi, > > You are talking about an OODBMS: orders of magnitude slower and more > complex than Prevalence. > > See you, Klaus. > > > > On Mon, Nov 14, 2011 at 10:39 AM, Naveen Chawla <[email protected]> wrote: >> Looks possible via bytecode instrumentation even after the jvm has started: >> http://download.oracle.com/javase/6/docs/api/java/lang/instrument/package-summary.html#package_description >> http://www.csg.is.titech.ac.jp/~chiba/javassist/ >> >>> ...so you could seamlessly create and use terabyte+ sized Java objects with it! >>> >>> Stupid? Crazy? Pointless? Impossible? Maybe one day? Or already possible? >>> >>> Maybe by transparently allowing deserialization/serialization of >>> fields to/from memory, based on which ones are most/least used. Or >>> maybe there's an even simpler way. >>> >>> I'm guessing it'd still be way more performant than databases. I like >>> the Prevayler "way" of doing things, so I wouldn't want the user code >>> to change in any way, so it'd still be "Prevayler". >>> >> ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d _______________________________________________ To unsubscribe go to the end of this page: http://lists.sourceforge.net/lists/listinfo/prevayler-discussion _______________________________________________ "Databases in Memoriam" -- http://www.prevayler.org