db4o Developer Community

db4o open source object database, native to Java and .NET
Welcome to db4o Developer Community Sign in | Join
in Search
More Search Options

Product News from the Core Team

This blog features product news right from the core developer team, once new features and functions get checked into Subversion, available as Continuous Build every 2 hours.

Faster defragment at slot level

db4o database files are structured as used and unused slots internally, very much like a file system. Just like a file system, a db4o file can become fragmented, which means it may become larger than it would have to be. This also can have a negative affect on (file access) performance, so it is advisable to defragment database files on a regular basis.

As of version 6.0 db4o provides a new defragment mechanism. While the old mechanism would instantiate live objects to transfer them to the defragmented database file, the new version operates directly at the slot/file level, avoiding any reflection or object instantiation calls.

According to our internal benchmarks this results in a performance speedup of 4x up to 14x, depending on various factors ranging from OS/VM version through the individual database structure to custom defragment configuration. For more complex and deeper graphs we suspect that there can be much larger performance improvements than in our benchmark. Please let us know about your results.

For the general case, usage is as simple as calling

com.db4o.defragment.Defragment.defrag(<path to file>);
...which will move the original file to a backup location and create a defragmented version in the original location. Those of you who would like to have more fine-grained control over the defragmentation process, please refer to the API docs.
Published Tuesday, November 14, 2006 12:25 AM by Patrick Roemer
Filed under:


Comments

 

db4o en Español said:

db4objects, Inc. ( http://www.db4o.com ) acaba de liberar la versión 6 de db4o, su base de objetos de

November 20, 2006 8:30 PM
 

db4o Newsletter said:

db4o Version 6.0 Debuts to the Community How to Contribute to db4o Seagate Personal Servers get a boost

November 21, 2006 1:10 AM
 

db4o auf Deutsch said:

db4o Version 6.0 ...ist erschienen und ab sofort fuer die Community als development (beta) Release zum

November 21, 2006 10:42 AM
 

db4o in Chinese said:

11-12月事件列表: 11/18/2006 - Itasca, IL, USA 11/23/2006 - Vienna, Austria 11/24/2006 - Bangalore, India 11/28/2006

November 26, 2006 2:22 PM
 

db4o News and Press Releases said:

SAN MATEO, Calif., Dec. 14, 2006 - db4objects ( www.db4o.com ), creator of the open source object database,

December 14, 2006 4:40 AM
 

db4o Newsletter said:

Welcome to the January newsletter! db4o Version 6.0 Released as Production-Ready dOCL, the New db4o Open

December 14, 2006 4:58 AM
 

db4o in Chinese said:

节日快乐! db4objects 祝你有一个快乐的圣诞节.我们感谢你在过去一年对我们的支持, 我们希望2007能迎来更成功的一年! K U D O O F T H E M O N T H "面向对象数据库...我并没有预料到他们是如此简单和实效.想象一下,db4o只是一个dll.仅仅一个dl这么简单.不用任何的设置和配置.高效率地存储数据.

December 15, 2006 8:36 AM
 

db4o auf Deutsch said:

db4objects wünscht allen eine schöne Weihnachtszeit! Wir danken euch für eure wertvollen Beiträge und

December 19, 2006 6:27 AM
 

Kudos said:

http://www.infoq.com/news/2006/12/db40-6 Db4Object has released version 6.0 of their open source object

December 21, 2006 11:31 PM
Anonymous comments are disabled

This Blog

Syndication RSS Feeds

News

Get the latest features every 2 hours with the Continuous Build!