'Choose a token range expiration strategy.
Based on the DB dialect, select an expiry range callable that is
appropriate.'

def _expiry_range_strategy(self, dialect):

    if (dialect == 'ibm_db_sa'):
        return functools.partial(_expiry_range_batched, batch_size=100)
    elif (dialect == 'mysql'):
        return functools.partial(_expiry_range_batched, batch_size=1000)
    return _expiry_range_all
