Bug 291 : REFACTOR: Transaction logging for performance
Priority 
High
Reported Version 
 
Logged By 
Rob
Status 
Fixed
Fixed Version 
2.6.0
Assigned To 
 
Product 
Ebean - core
Duplicate Of 
 
Created 
05/05/2010
Updated 
05/05/2010
Type 
Bug
 
Attachments 
No attachments

The ORMBench application highlighed the performance cost of Ebean's default transaction logging mechanism.

The refactor is to make the transaction logging more performant.

 
Rob 05 May 03:39
Fixed in HEAD

The fix was to introduce a buffer of log messages (per transaction) - have those added to a concurrent queue - and use a background thread to pull these buffers off the queue and log them to a file.

The output only uses a flush when it is not busy writing to get maximum use of the buffering of the write.

Fixed in HEAD.

woResponse

Upload a file