3/31/2017 2:26:05 AM
enhances caching in some code paths.
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
|
3/30/2017 11:41:58 AM
Meyer <pierre@mouraf.org>
|
3/30/2017 7:17:34 AM
record_id
While the implementation is JDBC driver specific, it seems to be working fine
for our use-case (h2, MariaDB and PostgreSQL).
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
|
3/30/2017 7:14:53 AM
fetch the record_id, as we already have it at this point.
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
|
3/30/2017 5:25:24 AM
calls already populate caches. We now do something similar
once the transaction for the create call returns.
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
|
3/30/2017 4:42:21 AM
a bad ehcache.xml is supplied, simply revert to default configuration
(throwing errors in a Guice provider doesn't work well).
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
|
3/30/2017 4:34:43 AM
is local only.
See also https://github.com/killbill/killbill/issues/247.
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
|
3/30/2017 3:42:42 AM
most cases, we've already had to fetch the latest state
to populate the audit and history tables.
Return it back to the transaction wrapper: this lets us avoid yet
another query when the DAO layer has to access it.
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
|
3/29/2017 11:47:47 AM
full object to check if it exists already, just
look-up the record id.
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
|
3/29/2017 10:58:03 AM
the entity and the entity record id
both before and after executing the JDBC transaction.
In reality, because we want the latest state for the history tables,
we need to query for the current state before the JDBC transaction
only in case of DELETE operations.
Additionally, no need to retrieve the entity record id separately
(it comes for free from the entity).
This saves 3 JDBC calls for any CREATE or DELETE operation, 2 for any UPDATE operation.
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
|