Java Prevalence, is it ridiculously that simple?
There is a talk in the town, its called "Prevayler"( http://www.prevayler.org/wiki.jsp) . The idea is towards getting rid of Relational databases( Making Larry Ellison run for money) and persisting the data in-memory, yes all the data in memory. Now the claim is that its ~9000 times faster than using relational databases. Prevalyer has data objects ready to be used , meaning, you don't have to perform the object creation every time a data is being retrieved thus it saves on the costly object creation time. These objects are supposed to be cached in the same physical machine so you don't have deal with network latency and cost associated with such for database driven applications.
Folks behind this idea considers it ridiculously simple also its strange that they use the word prevalence which literally mean "Generally accepted". It is really that simple or can it be generally accepted.
I don't want to repeat what's in Prevalyer website. Prevalence folks have already figured how they can deal with system crash, backups/restore etc. What I am curious is how they are benchmarking Prevalance with relational database?
Some catchy points about Prevalance which are so debatable -->
** Rollback is needless according to prevalence. Wait a second, what about the A part solved by RDBMS in ACID, the Atomicity. I was looking for how prevalence answer my question and found that suggestion is pretty lame. Do a try and catch on your business object and have the catch remove the object graph associated so far before the exception happened. Well for first its clear that prevalence does not provide ACID and second I am not sure how you can revert from the catch block.
** Two-Phased commit is unnecessary. Well I just leave this comment to as is ...
** No SQL use OQL( Object query Language ).
In short I believe the attempt so far can be useful in using prevalence as good object caching architecture which guarantee cache recovery. But then do I need a cache database for it......
Folks behind this idea considers it ridiculously simple also its strange that they use the word prevalence which literally mean "Generally accepted". It is really that simple or can it be generally accepted.
I don't want to repeat what's in Prevalyer website. Prevalence folks have already figured how they can deal with system crash, backups/restore etc. What I am curious is how they are benchmarking Prevalance with relational database?
Some catchy points about Prevalance which are so debatable -->
** Rollback is needless according to prevalence. Wait a second, what about the A part solved by RDBMS in ACID, the Atomicity. I was looking for how prevalence answer my question and found that suggestion is pretty lame. Do a try and catch on your business object and have the catch remove the object graph associated so far before the exception happened. Well for first its clear that prevalence does not provide ACID and second I am not sure how you can revert from the catch block.
** Two-Phased commit is unnecessary. Well I just leave this comment to as is ...
** No SQL use OQL( Object query Language ).
In short I believe the attempt so far can be useful in using prevalence as good object caching architecture which guarantee cache recovery. But then do I need a cache database for it......

28 Comments:
At 2:40 AM,
Anonymous said…
Read this:
http://www.pyrasun.com/mike/mt/archives/%202004/12/index.html
Prevayler is a simple object cache blown way out of proportion by the author.
At 6:41 AM,
Jeff said…
For query languages, since Prevayler is OO its possible to use a object oriented query tool like jxpath. I saw a tool out there called joSQL that I have not tried yet that seems to do the same thing with SQL syntax.
At 11:12 PM,
Anonymous said…
JoSQL does allow a SQL statement to be applied to a List of objects (I know, I wrote it!), see http://josql.sourceforge.net.
It works in a similar way to OQL but has some differences and is more designed at the Java programmer rather than sticking strictly to the "rules" of SQL (for example, JoSQL has no concept of aggregation or inner selects which seem a little pointless when dealing with objects).
I'm puzzled why the Prevlayer folks seem to prefer OQL over SQL though... (although I may be looking at the wrong tutorial for it!)
SQL is a great query language that allows you to not have to write pages of code (which is why I created JoSQL) to do the same things over and over again. JoSQL is aimed at those situations when you don't have a RDBMS available or it's too heavyweight to use one, so it may be useful for Prevlayer...
At 5:00 AM,
Anonymous said…
Hi all! Help homeless children!
buy [url=http://phentermine.alldating.org/phentermine.htm]phentermine[/url] online
phentermine
G'night
At 4:51 AM,
Anonymous said…
Hi. Afftar zzot!
viagra
viagra
Don't delete
At 3:30 PM,
Anonymous said…
Hello. Nice!
Visit my site viagra
buy http://delta-space.info/phentermine.htm viagra online
Thanks.
At 11:35 PM,
Anonymous said…
Hello. Good work!
Visit my site phentermine
buy http://freeunixhs.info/phentermine.htm phentermine online
Thanks.
At 10:26 AM,
Anonymous said…
Hello Super site!
buy viagra
cheap viagra online
G'night
At 7:53 AM,
Anonymous said…
Hello people!
buy viagra
cheap viagra online
G'night
At 7:39 PM,
Anonymous said…
Very interesting!
buy viagra,
cheap http://viagra.alldating.org/viagra.htm online
G'night
At 6:38 PM,
Anonymous said…
Hello people, try our products!
buy phentermine online,
cheap http://xrjuhosting.info/phentermine.htm phentermine
Bye.
At 4:37 PM,
Anonymous said…
Hi, interesting site.
visit smoking stop
http://stop-smoking-aid.batcave.net/smoking-stop.htm smoking stop
Thanks.
At 2:05 PM,
Anonymous said…
Hi, Dear All!
[url=http://wikkimikki.fortunecity.com/msg001.htm]levitra[/url]
levitra
Thanks.
At 7:09 PM,
Anonymous said…
Hi Nice site.
best [url=http://tuoppi.oulu.fi/kbs-bin/readbeer?Nr=626]viagra[/url]
http://tuoppi.oulu.fi/kbs-bin/readbeer?Nr=626#viagra for you
Bye.
At 7:22 AM,
Anonymous said…
Hi, Dear All!
[url=http://phentermine-abc.info/page001.htm]phentermine[/url]
phentermine
Thanks.
At 11:26 PM,
Anonymous said…
Hi all!, cool site. Look at my site.
buy [url=http://www.rhodesschool.com/blogcomments/default.asp?blogID=23193]phentermine[/url]
http://www.rhodesschool.com/blogcomments/default.asp?blogID=23193 phentermine
G'night
At 5:50 PM,
Anonymous said…
Nice day, best.
Look at my site [url=http://www.jahk.org/forum/topic.asp?TOPIC_ID=113]viagra[/url].
Here you can buy http://www.jahk.org/forum/topic.asp?TOPIC_ID=113#viagra best.
Bye-bye.
At 10:46 PM,
viagra said…
Comprehensive information on viagra. available at http://www.viagraforce.com or any other suitable online Viagra source would inform you that Viagra is the perfect ED solution for the young generation as well as for old men and so if you are afflicted with impotency, get hold of Viagra immediately and take the medicine according to the doctor’s instructions.
At 1:22 AM,
alfredconnor said…
Due to the fact that not everyone can afford the high prices of the brand name Viagra, manufacturers have created a generic viagra version of it, a copy containing the same ingredients and formula, producing the same effects but having a different look. Generic Viagra online is intended for those who need a cheaper version of Viagra. You can buy viagra online at excellent prices, and you can even find offers and discounts online as well.
At 2:30 AM,
lauriestanley said…
Generic Propecia is a medication used for the treatment of prostate cancer and pattern baldness in men. It is the main ingredient in two drugs – Proscar for prostate cancer and Propecia for pattern baldness.
At 9:40 PM,
Anonymous said…
It is usual reserve achat levitra I consider, that you are not right. I am assured. Let's discuss it.
At 10:16 PM,
Anonymous said…
how to buy viagra mexican viagra buy cheap viagra online make your own viagra uk viagra sales what does viagra do generic viagra india order viagra online viagra attorneys buy viagra in london england legal viagra viagra rx viagra liver damage viagra no prescription
At 8:09 PM,
Anonymous said…
Cette idГ©e a vieilli runfr.com acheter cialis [url=http://runfr.com]achat cialis[/url]
At 10:26 PM,
Anonymous said…
голя максим и малолетки http://free-3x.com/ молоденькие принуждение лишение невинности free-3x.com/ порно молодеж онлайн [url=http://free-3x.com/]free-3x.com[/url]
At 7:57 AM,
Anonymous said…
[url=http://www.xbox360achievements.org/forum/member.php?u=259462] order mexitil online[/url]
At 10:30 PM,
Anonymous said…
[url=http://www.xbox360achievements.org/forum/member.php?u=259462]mexitil discount[/url]
At 10:03 PM,
Anonymous said…
[url=http://community.bsu.edu/members/buy+online+Viagra.aspx]i want to order Viagra without a perscription[/url]
At 9:07 AM,
mollyabraham said…
Levitra (Vardenafil HCL) is the third treatment in the same class as Viagra and Cialis – all being medicines prescribed to men with erectile dysfunction.
Post a Comment
<< Home