Apache Derby A Jug Presentation
Apache Derby A Jug Presentation
Chris Dance
Introduction
Chris Dance
PaperCut Software:
Print control software
Arm you with the knowledge to help you make the decision to use
Apache Derby.
JDBC 4 support
Not a toy! Its packed full of goodies you would never expect.
Low overhead
Networked
TCP based network server
Every database has different features and target different (but often
overlapping) database domains.
MySQL Rules. I needed a simple database for my PHP app and it was already sitting there on
my ISPs server all set up and ready to go.
Derby
Even live replication, failover, and ability to natively store JAR files!
Hibernate Support
Spring Transactions
Very few corruptions (there was a corruption bug in one derby release)
Zero DBA administration most have no idea they are running Derby
Copyright 2008 - PaperCut Software Int. Pty. Ltd.
http://www.papercut.com/ 13
Real advantage
Derby faster than clustered Microsoft SQL server! **
Scenario:
Miami Dade College, the largest college in the US with 350,000 students & staff
Very chatty SQL operations (check current card number and update if required)
Most time spent in network round trip network latency and data marshaling
Same data and scenario with embedded Derby was twice as fast
Logic needed to be moved down into the database layer to improve SQL
Server performance
Increased memory available for joins (derby.language.maxMemoryPerTable to JVM max ~15% of RAM)
"Think of SQLite not as a replacement for Oracle but as a replacement for fopen().
- D. Richard Hipp, creator of SQLite
Some ideas:
A pre-configured demo database for your existing application
Derby Website:
http://db.apache.org/derby/
http://db.apache.org/derby/derby_mail.html
PaperCut website and download (how its used in our print quota application):
http://www.papercut.com/