per type commit

group by adapter for type and then commit