|
|
||
Joerg Plewe's BlogDatabases Archivesdb4o and it's queriesPosted by herkules on December 11, 2005 at 03:28 AM | Permalink | Comments (0)I mentioned the lightweight OODB db4o in some earlier blog entries and I admit that I really like that piece of software. For that, I like to guide your attention to another blog, giving a nice overview about the various approaches for queries, esp. the native queries introduced with db4o V5.0. I feel it is worth reading. A new DB benchmark in townPosted by herkules on March 30, 2005 at 05:43 AM | Permalink | Comments (5)Since I've been investigating on persistence recently, I found that performance might be an issue, esp. when thinking about embedded databases. So I organized a race (very obviously inspired by db4o's Formula1 tutorial) and put the results online in form of the SourceForge project PolePosition Currently I lined up these database systems for some training laps: I started from scratch without having much experience in any of the databases tested. So the code is pretty much unbiased and shows what an average programmer might achieve performance-wise. On the long hand, each database should use the best code possible. For I will never be an expert for that variety of database systems at the same time, making the project opensource gives the possibility for the dedicated experts out there to optimize for their resp. favorite. So please let me know where the code is poor and where improvements are mandatory. The preliminary results are quite mixed without having one single winner for all purposes. Just take a look at the results yourself. There are other important benchmarks which are not part of the results published. The 'hassle' or the 'learning curve', the 'lines of code' or 'time for debug' benchmark e.g. just to mention a few. As mentioned earlier, db4o is hard to beat there.... There are more things to come. Anybody volunteering for the JDO team? Everybody have fun with the code and let me know what you think. Will federate databases die out?Posted by herkules on March 04, 2005 at 08:34 AM | Permalink | Comments (5)These days I'm fooling around with some database technologies. Just one thing came to my mind when I was observing my own daily work. Do I query federate databases often? No, I don't. Instead I use google. That's my standard query tool and it is really powerful. Everybody does. Nobody can live without any more. Today, federate databases are the backbone of most applications. They maintain prestructured data to answer prestuctured queries leading to prestructured results in fixed-form user frontends (well, roughly :) ). Maybe even more valuable data (or should I say knowlegde) floats around in zillions of Word documents, presentations, emails. Nobody reads them. Some smart companies already started to install internal search engines maybe complemented by taxonomy/classification engines in even smarter companies. Will they be able to replace federate databases one day? On starship Enterprise, the question 'What do we know about planet Omega-Haribo7?' can be answered giving exactly the information the questioner wanted. Lifeforms, atmosphere, latest wars. I'm pretty sure it's not just some voice recognition combined with a MySQL server to get that done. Will the future decide the battle between OODBMS and RDBMS against both? Will unstructured information be the key for future enterprise databases? Will GUI-forms vanish? Will this - in the end - lead to completely new paradigms in programming languages, databases, UI ...? Just a thought before weekend. db4o - persistence made easyPosted by herkules on February 14, 2005 at 06:00 AM | Permalink | Comments (4)There has been an announcement recently that the db4o database has gone opensource. Db4o? Heard about it, visited the website years ago, remember it looked nice.... The download is small, even smaller is the jar: 320kb - nothing more is needed. Checking it out reveals really cool features. All kinds of persistence I've seen so far needed some kind of prerequisites to be taken: special base classes, enhancements, mapping scripts, precompilers or even hand-crafted read/write code. At least some DB initialisation. Nothing of that in db4o. Take any object, present it to the database and consider it persisted. It's really that easy:
Retrieving is not more difficult:
For now, I didn't dig very deep. Updating and deleting is easy as well. For it is a database, there are query APIs implementing QBE and S.O.D.A.. This is everything I need and maybe already more than I can handle :). The magic words 'transaction' and 'client/server' also show up in the tutorial, so I suppose I will not be left alone when it gets more complex.
The database itself is just a plain, very small file. If you are looking for a truely lightweight persister and can live with the GPL, give it a try. It's so light that it makes sense to replace even property files with db4o. | ||
|
|