per type commit

we group by adapter for type and then commit