def delete_batch(self, pk_list, using, field=None):
        if not field:
            field = self.model._meta.pk
        for offset in range(0, len(pk_list), GET_ITERATOR_CHUNK_SIZE):
            where = self.where_class()
            where.add((Constraint(None, field.column, field), 'in',
                    pk_list[offset:offset + GET_ITERATOR_CHUNK_SIZE]), AND)
            self.do_query(self.model._meta.db_table, where, using=using)
The factory is passed to an SRVConnector and a connection initiated.
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.4/django/db/models/sql/subqueries.py/DeleteQuery.delete_batch--crossover with--dataset/ETHPy150Open ralphm/wokkel/wokkel/test/test_client.py/ClientCreatorTest.test_call