McObject, Object-Oriented Embedded Database for Android

Posted on 02 January 2008 by Hatem Ben Yacoub

McObject, Object-Oriented Embedded Database for AndroidMcObject announced today that Perst, its all-Java object-oriented, open source embedded database, has been verified as compatible with the Android mobile device platform backed by Google and the Open Handset Alliance.

McObject is offering the Android-ready Perst, as well as TestIndex, a demo application showing Perst and Android’s bundled SQLite database performing the same tasks side by side. Both are available as free downloads, with complete source code, from http://www.mcobject.com/android.

Perst

With Perst, users of Android-based phones will benefit from responsive, richly-featured embedded software made possible by a database system that delivers high performance and a small footprint, and by the efficiency that results from true Java developer-oriented features.

Perst stores data directly in Java objects. This eliminates the need for data-packing or unpacking code to map between the application’s data model and the database’s data model, as is required by relational and object-relational databases. The Perst API is flexible, easy-to-use and very fast compared to alternative commercial Java OODBMSs.

Perst is a very compact embedded database, with a core consisting of only five thousand lines of code. This small footprint imposes little demand on system resources. Moreover, Perst does not require administration. Perst supports transactions with the ACID (Atomic, Consistent, Isolated and Durable) properties, and expands developers’ coding efficiency by making Java objects as easy to use as possible.

For example, for access to objects, Perst implements specialized collection classes optimized for different data layouts and access patterns, including:

  • Classic B-Tree implementation;
  • R-tree indexes for spatially-oriented applications such as GIS and navigation;
  • Main-memory database containers, based on T-Tree indexes, optimized for real-time memory-only access;
  • Patricia Trie index, which speeds searches in networking and telephony applications;
  • TimeSeries class to efficiently deal with small fixed-size objects;
  • Specialized versions of collections for thick indices (indices with many duplicates), and bit indices (keys with a restricted number of possible values).

In addition to its core functionality, Perst provides optional features such as garbage collection, detection of hanging references, automatic schema evolution, XML import/export utilities, master-slave replication support (with the option to run read-only queries on slave nodes), an SQL subset to filter elements of any collection, and integration with the AspectJ and JAssist AOP tools.

To read McObject’s complete announcement of Perst and TestIndex for Android, see http://www.mcobject.com/pressroom.php?step=3&article=91.

Popularity: 22%

« Weekly Android Applications 24/12/2007 | Home | Android Developer Challenge Open »

Leave a Reply

Advertise Here