Consider a Transaction, which takes a long time. During that I would like to execute few small updates on TableSmall, which should be executed instantly and rollback of the main Transaction shouldn't rollback those small updates.
My current problem is that these small updates will lock the TableSmall\ until completion of the Transaction. I need to be able to continue updating the TableSmall even when the Transaction is still running.
Is it okay to annotate the small updates with @Transactional(propagation = Propagation.REQUIRES_NEW) to avoid locking rows/tables of these small updates?