def handle(self, *args, **options):
        if not options['noinput']:
            confirm = raw_input("""
        ### %s Fast Reindex !!! ###
        You have requested to do a fluff index reset via fast track.
        This will update all your fluff indicators in place.

        Type 'yes' to continue, or 'no' to cancel: """ % self.pillow_class.__name__)

            if confirm != 'yes':
                print "\tReset cancelled."
                return

        self.pillow_class.delete_filtered = options['delete_filtered']
        self._bootstrap(options)
        # override this to avoid any checkpointing issues
        self.pillow = self.pillow_class(chunk_size=0)
        start = datetime.utcnow()

        print "Starting fast tracked reindexing"
        for i, row in enumerate(self.full_couch_view_iter()):
            print "\tProcessing item %s (%d)" % (row['id'], i)
            self.process_row(row, i)

        end = datetime.utcnow()
        print "done in %s seconds" % (end - start).seconds
dataset/ETHPy150Open dimagi/commcare-hq/corehq/ex-submodules/fluff/management/commands/ptop_fast_reindex_fluff.py/FluffPtopReindexer.handle/original