younifyd
Menu

Get optimization progress

Get optimization progress

GET/collections/{collection_name}/optimizations

Use it in a workflow

  1. Add a step and choose the Qdrant connector.
  2. Pick the Get optimization progress action (under Collections).
  3. Fill in the fields below, then reference the result from later steps as {{getOptimizationProgress.response.data}}.

Request

Path parameters

collection_namestringrequired

Name of the collection

Query parameters

withstring

Comma-separated list of optional fields to include in the response. Possible values: queued, completed, idle_segments.

completed_limitinteger

Maximum number of completed optimizations to return. Ignored if `completed` is not in the `with` parameter.

Default 16

Response

Returns 200 with an object. Read it in later steps with {{getOptimizationProgress.response.data.<field>}}.

usageoneOf

Default null

timenumber (float)

Time spent to process this request

statusstring
resultobject

Optimizations progress for the collection

summaryobjectrequired4 fields
runningarray<object>required5 fields

Currently running optimizations.

queuedarray<object>2 fields

An estimated queue of pending optimizations. Requires `?with=queued`.

completedarray<object>5 fields

Completed optimizations. Requires `?with=completed`. Limited by `?completed_limit=N`.

idle_segmentsarray<object>2 fields

Segments that don't require optimization. Requires `?with=idle_segments`.

json
{
  "usage": null,
  "time": 0.002,
  "status": "ok",
  "result": {
    "summary": {
      "queued_optimizations": 0,
      "queued_segments": 0,
      "queued_points": 0,
      "idle_segments": 0
    },
    "running": [
      {
        "uuid": "00000000-0000-0000-0000-000000000000",
        "optimizer": "string",
        "status": null,
        "segments": [
          {
            "uuid": "00000000-0000-0000-0000-000000000000",
            "points_count": 0
          }
        ],
        "progress": {
          "name": "string",
          "started_at": "2025-01-01T00:00:00Z",
          "finished_at": "2025-01-01T00:00:00Z",
          "duration_sec": 0,
          "done": 0,
          "total": 0,
          "children": [
            {}
          ]
        }
      }
    ],
    "queued": [
      {
        "optimizer": "string",
        "segments": [
          {
            "uuid": "00000000-0000-0000-0000-000000000000",
            "points_count": 0
          }
        ]
      }
    ],
    "completed": [
      {
        "uuid": "00000000-0000-0000-0000-000000000000",
        "optimizer": "string",
        "status": null,
        "segments": [
          {
            "uuid": "00000000-0000-0000-0000-000000000000",
            "points_count": 0
          }
        ],
        "progress": {
          "name": "string",
          "started_at": "2025-01-01T00:00:00Z",
          "finished_at": "2025-01-01T00:00:00Z",
          "duration_sec": 0,
          "done": 0,
          "total": 0,
          "children": [
            {}
          ]
        }
      }
    ],
    "idle_segments": [
      {
        "uuid": "00000000-0000-0000-0000-000000000000",
        "points_count": 0
      }
    ]
  }
}

Need more? See the Qdrant guide for connection setup and behaviour shared by every action.