Skip to content

[META] Add Fetch Phase to Search Profile #18864

@andrevandeven

Description

@andrevandeven

Please describe the end goal of this project

OpenSearch currently supports detailed profiling for the query and aggregation phases of search, enabling developers to analyze performance by timing the underlying operations. However, a significant gap exists in this feature, as it provides no insight into the fetch phase. This absence makes it difficult for developers to identify and resolve performance bottlenecks occurring during document retrieval.

To provide a complete performance picture, a fetch phase profile must be introduced. Consistent with the existing profilers, it should maintain timing information for the entire phase, alongside a granular breakdown of its key operations. The fetch phase profile should also support profiling of fetch phases outside of the standard fetch phase (i.e. inner hits fetch, top hits aggregation fetch).

Supporting References

[RFC] Adding Fetch Phase Profiling #18696
Add Fetch Phase to Search Profile #18664

Issues

Related component

No response

Metadata

Metadata

Assignees

Labels

MetaMeta issue, not directly linked to a PRSearchSearch query, autocomplete ...etc

Type

No type

Projects

Status

✅ Done

Status

Done

Status

New

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions