def handle(self, *args, **options):
batch_size = options.get('<STR_LIT>', None)<EOL>if not batch_size:<EOL><INDENT>batch_size = <NUM_LIT:1000><EOL><DEDENT>self.stdout.write('<STR_LIT>')<EOL>for model in get_registered_model():<EOL><INDENT>if options.get('<STR_LIT>', None) and not (model.__name__ in<EOL>options['<STR_LIT>']):<EOL><INDENT>continue<EOL><DEDENT>counts = reindex_all(model, batch_size=batch_size)<EOL>self.stdout.write('<STR_LIT>'.format(model.__name__, counts))<EOL><DEDENT>
Run the management command.