v.4.21.0

Improvements:

  1. [LUNA-8747] Added the ignore query parameter to the linker resource (attach/detach faces to/from a list). If ignore=1, faces from face_ids that are not found in the system no longer fail the whole request: the response has status code 200 and a JSON body

    {"not_found_faces": ["..."]}
    

    listing the ids of the faces that were not found, while the rest of the requested faces are still attached/detached as usual. The default behaviour (ignore=0) is unchanged: any missing face still fails the whole request with a 400 error and nothing is attached/detached.

  2. [LUNA-8747] For PostgreSQL, attaching multiple faces to a list in one request now uses a single bulk INSERT ... ON CONFLICT DO NOTHING statement instead of one insert per face (each over its own connection), which noticeably speeds up the linker resource for large face_ids lists.

Migration:

See a migration manual.