(self, *args, **kwargs)
Helper for switching between normal and parallel bulk operation
Helper for switching between normal and parallel bulk operation
Helper for switching between normal and parallel bulk operation
def _bulk(self, *args, **kwargs):
        """Helper for switching between normal and parallel bulk operation"""
        parallel = kwargs.pop('parallel', False)
        if parallel:
            return self.parallel_bulk(*args, **kwargs)
        else:
            return self.bulk(*args, **kwargs)
def _bulk ( self , * args , * * kwargs ) : parallel = kwargs . pop ( 'parallel' , False ) if parallel : return self . parallel_bulk ( * args , * * kwargs ) else : return self . bulk ( * args , * * kwargs )