API batch transaction, conserve transaction

Just put some limits so that transaction is not needlessly generated for
each line. less waste of space in uw_transaction table.

Change-Id: I6b7b49b3bfcf7d81d435accbc4f8aed803a0c221
Merge "API batch transaction, conserve transaction"