Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
ZooDB is an object oriented database based on the JDO 3.0 standard. It is written mainly by Tilmann Zäschke. It is licensed under GPLv3 (GNU Public License), see file COPYING.
ZooDB is also available via maven:
<dependency> <groupId>org.zoodb</groupId> <artifactId>zoodb</artifactId> <version>0.4.7</version> </dependency>
Under development, but already in use by some university projects.
- Works as normal database or as in-memory database.
- Fast (4x faster than db4o using db4o's PolePosition benchmark suite).
- Reasonably scalable, has been used successfully with 60,000,000+ objects in a 30+ GB database.
- Maximum object count: 2^63.
- Maximum database size depends on (configurable) page size: 2^31 * PAGE_SIZE. With default page size: 2^31 * 4KB = 8TB.
- Crash-recovery/immunity (dual flush, no log-file required).
- Standard stuff: commit/rollback, query, indexing, lazy-loading, transitive persistence & updates (persistence by reachability), automatic schema definition, embedded object support (second class objects).
- Queries support standard operators, indexing, path queries, parameters, aggregation (avg, max, min), projection, uniqueness, ORDER BY, setting result classes (partial) and methods (partial).
- Multi-user/-session capability (optimistic TX), but currently not terribly efficient.
- XML export/import (currently only binary attributes).
- Some examples are available in the 'examples' folder.
- Open source (GPLv3).
Note that some features may be available in the latest snapshot only.
- Schema evolution is ~90% complete (updating OIDs is not properly supported, no low level queries) --> Queries don't work with lazy evolution.
- No backup (except copying the DB file).
- Single process use only (no stand-alone server).
- JDO only partially supported:
- Some query features not supported: group by, range, variables, imports, setting result classes (partial).
- No XML config or Annotations; configuration only via Java API.
- Manual enhancement of classes required (insert activateRead()/activateWrite() & extend provided super-class).
- Little documentation (some example code), but follows JDO 3.0 spec.
- JDO 3.0 (Java Data Objects):
- URL: https://db.apache.org/jdo/
- JAR: jdo2-api-3.0.jar
- JTA (Java Transaction API):
- URL: http://java.sun.com/products/jta/
- JAR: jta.jar
- JUnit (currently use 4.8.1, but should work with newer and older versions as well):
- URL: http://www.junit.org/
- JAR: junit-4.8.1.jar
Tobias Gmünder (profiling) Jonas Nick (prefix-sharing index) Bogdan Vancea (prefix-sharing index) Tilmann Zäschke