1 min readMay 25, 2017
You wrote you had to use some hackery by calling insertAll multiple times. So your code was already not idiomatic anymore. Also you did not provide the hackery code you used, maybe you created multiple transactions which has a higher overhead than wrapping everything in a single transaction.