allen501pc / jlibs

Automatically exported from code.google.com/p/jlibs
0 stars 0 forks source link

Enhance SQL DAO with support for batch operations #22

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
For performance benefits, it would be nice for the DAO to support batch 
operations.

It would be convenient for batches to be handled using a similar approach as 
transactions, such that one could write:

BatchManager.run(datasource, new Batch<X>() {
  public X run (Connection conn) {
     .... Insert/Update/Delete calls here are implicitly batched and executed when this method returns ....
  }
});

Batch operations should work within a transaction, though it would not work to 
put a transaction within a batch.

Select operations should just be executed immediately.

Original issue reported on code.google.com by eire...@gmail.com on 7 Nov 2011 at 2:59

GoogleCodeExporter commented 9 years ago
Did you get the update on this I sent?

Original comment by eire...@gmail.com on 20 Mar 2012 at 7:32

GoogleCodeExporter commented 9 years ago
now DAO supports batch operations

Original comment by santhosh.tekuri@gmail.com on 8 Nov 2013 at 10:21