lshift/diffa — pull request #161 by 0x6e6562 (2012-05-22 15:43:10+00:00)
Title: Difference store caching

The scope of this patch is to reduce the DB traffic created when `addPendingUnmatchedEvent` and `addMatchedEvent` are called on the `HibernateDomainDifferenceStore`.

This has been achieved by re-routing portions of the Hibernate logic directly to the DB, therby eliminating some DB round trips. In addition to this, caches for pending and reported difference events have been introduced in order to potentially reduce some more of the database load.

Some general inroads were made in de-Hibernating the `HibernateDomainDifferenceStore`, but there is a lot of work to do and hence this is not complete.