def auto_chunk_size(size_record):
    """
    Determine the optimal choice for number of chunks given the size of a record in bytes
    """
    if size_record > 1e7:
        return 1
    elif size_record > 1e6:
        return 10
    elif size_record > 1e4:
        return 100
    else:
        return 1000