def handle(self, *args, **options): """ Deletes rows, chunking the deletes to avoid long table/row locks. """ chunk_size, sleep_between = super(Command, self).handle(*args, **options) delete_rows(CourseEnrollment.objects, 'student_historicalcourseenrollment', 'history_id', chunk_size, sleep_between)
def handle(self, *args, **options): """ Deletes rows, chunking the deletes to avoid long table/row locks. """ chunk_size, sleep_between = super(Command, self).handle(*args, **options) delete_rows(VerificationDeadline.objects, 'verify_student_historicalverificationdeadline', 'history_id', chunk_size, sleep_between)
def handle(self, *args, **options): """ Deletes rows, chunking the deletes to avoid long table/row locks. """ chunk_size, sleep_between = super(Command, self).handle(*args, **options) delete_rows(ApiAccessRequest.objects, 'api_admin_historicalapiaccessrequest', 'history_id', chunk_size, sleep_between)
def handle(self, *args, **options): """ Deletes rows, chunking the deletes to avoid long table/row locks. """ chunk_size, sleep_between = super(Command, self).handle(*args, **options) delete_rows( ApiAccessRequest.objects, 'api_admin_historicalapiaccessrequest', 'history_id', chunk_size, sleep_between )
def handle(self, *args, **options): """ Deletes rows, chunking the deletes to avoid long table/row locks. """ chunk_size, sleep_between = super(Command, self).handle(*args, **options) delete_rows(CreditRequest.objects, 'credit_historicalcreditrequest', 'history_id', chunk_size, sleep_between) delete_rows(CreditRequirementStatus.objects, 'credit_historicalcreditrequirementstatus', 'history_id', chunk_size, sleep_between)
def handle(self, *args, **options): """ Deletes rows, chunking the deletes to avoid long table/row locks. """ chunk_size, sleep_between = super(Command, self).handle(*args, **options) delete_rows( VerificationDeadline.objects, 'verify_student_historicalverificationdeadline', 'history_id', chunk_size, sleep_between )
def handle(self, *args, **options): """ Deletes rows, chunking the deletes to avoid long table/row locks. """ chunk_size, sleep_between = super(Command, self).handle(*args, **options) delete_rows( CourseEnrollment.objects, 'student_historicalcourseenrollment', 'history_id', chunk_size, sleep_between )
def handle(self, *args, **options): """ Deletes rows, chunking the deletes to avoid long table/row locks. """ chunk_size, sleep_between = super(Command, self).handle(*args, **options) delete_rows( MicrositeOrganizationMapping.objects, 'microsite_configuration_historicalmicrositeorganizationmapping', 'history_id', chunk_size, sleep_between) delete_rows(MicrositeTemplate.objects, 'microsite_configuration_historicalmicrositetemplate', 'history_id', chunk_size, sleep_between)
def handle(self, *args, **options): """ Deletes rows, chunking the deletes to avoid long table/row locks. """ chunk_size, sleep_between = super(Command, self).handle(*args, **options) delete_rows( MicrositeOrganizationMapping.objects, 'microsite_configuration_historicalmicrositeorganizationmapping', 'history_id', chunk_size, sleep_between ) delete_rows( MicrositeTemplate.objects, 'microsite_configuration_historicalmicrositetemplate', 'history_id', chunk_size, sleep_between )
def handle(self, *args, **options): """ Deletes rows, chunking the deletes to avoid long table/row locks. """ chunk_size, sleep_between = super(Command, self).handle(*args, **options) delete_rows( CreditRequest.objects, 'credit_historicalcreditrequest', 'history_id', chunk_size, sleep_between ) delete_rows( CreditRequirementStatus.objects, 'credit_historicalcreditrequirementstatus', 'history_id', chunk_size, sleep_between )