'Commit the mutations batched up so far and potentially do pruning.
This is automatically called by __exit__ when used as a context
manager.'

def send(self):

    self.mutator.send()
    if self.to_prune:
        LOG.debug('Pruning    queries    %r', self.to_prune)
        CachedQuery._prune_multi(self.to_prune)
