def to_key(i):
    """
    Transform the given id integer to the key used by :class:`lmdb_io.LMDB`.
    
    :param i: integer id
    :type i: int
    :return: string key
    :rtype: string
    """
    
    return '{:08}'.format(i)