- Code Commit - http://www.codecommit.com/blog -
ActiveObjects 0.7 Released
Posted By Daniel Spiewak On December 22, 2007 @ 2:57 pm In Java | 6 Comments
Just in time for the Christmas holidays, I give you ActiveObjects  version 0.7! This release sports a whole slew of minor performance tweaks and bugfixes, providing better reliability. Also, we’ve greatly increased the number and scope of the unit tests running against the core. This gives us more confidence that the code is indeed as stable as we hope.
Actually, the big ticket item for 0.7 is the introduction of polymorphic relations . This feature is fully tested and stable, so I don’t anticipate it introducing any issues in the coming days as we narrow our focus to 1.0. However, no feature is so well tested as to be certainly bug free under all circumstances. I look forward to fixing any problems you may encounter with the library!
A few minor feature additions:
Looking toward the road ahead, things are really starting to settle down a bit. The main feature I’m looking to implement for 0.8 is extensible value caching, which should allow you to determine how and where the cached field values are stored. The main use-case behind this is support for memcached, which has been requested a few times and has actually been on the agenda since 0.3. With memcached driving the value cache, ActiveObjects should be almost perfectly scalable.
To that end, it’s also worth mentioning that I did some profiling (using the NetBeans Profiler) using a Wicket -based web application I’m developing on the side. I’m happy to report that the overhead imposed by ActiveObjects is extremely minimal. In each test, the bottleneck was in the PreparedStatement#execute method (in JDBC). Since ActiveObjects generates very streamlined and natural queries, it seems that this is really the minimal execution time possible for such database access. Extrapolating further from this data, and given that the JDBC exec time was avg 40ms, while the execution time in the ActiveObjects API was on the order of 1ms-5ms, we can safely say that ActiveObjects is less than 10% slower than using JDBC directly (compare that to the 50% overhead claimed by ActiveRecord ). This “estimate” doesn’t even take into account the many performance advantages offered by ORMs over hand-coded database access (such as relations caching, optimal query construction, etc).
Anyway, enough shameless boasting. As Hibernate has often pointed out, ORM benchmarks are usually worse than useless. The only benchmark which really matters is how well the ORM performs in your application. Try it out, see what you think.
Article printed from Code Commit: http://www.codecommit.com/blog
URL to article: http://www.codecommit.com/blog/java/activeobjects-07-released
URLs in this post:
 ActiveObjects: https://activeobjects.dev.java.net
 polymorphic relations: http://www.codecommit.com/blog/java/polymorphic-relational-types-in-activeobjects
 Wicket: http://wicket.apache.org
 50% overhead claimed by ActiveRecord: http://wiki.rubyonrails.org/rails/pages/ActiveRecord
 activeobjects-0.7.tar.gz: https://activeobjects.dev.java.net/files/documents/6960/80096/activeobjects-0.7.tar.gz
 activeobjects-0.7.zip: https://activeobjects.dev.java.net/files/documents/6960/80097/activeobjects-0.7.zip
All content copyright © 2010 Daniel Spiewak. Distributed under Creative Commons.
All code (unless otherwise stated) is licensed under the BSD License.