How do you implement `@commit_manually` in Django 1.8?

I'm trying to upgrade Django 1.5 code to work with Django 1.8, and for some bizarre reason, the `commit_manually` decorator was removed in Django 1.6 with no direct replacement. My process iterates over thousands of records, so it can't wrap the entire process in a single transaction without running out of memory, but it still needs to group some records in a transaction to improve performance. To do this, I had a method wrapped with @commit\_manually, which called transaction.commit() every N iterations.

I can't tell for sure from the [docs](https://docs.djangoproject.com/en/1.8/topics/db/transactions/#transactions), but this still seems supported. I just have to call `set_autocommit(False)` instead of having a convenient decorator. Is this correct?