Skip to content

chore: log type for slow search requests#357

Open
cheb0 wants to merge 2 commits intomainfrom
0-log-slow-search-type
Open

chore: log type for slow search requests#357
cheb0 wants to merge 2 commits intomainfrom
0-log-slow-search-type

Conversation

@cheb0
Copy link
Member

@cheb0 cheb0 commented Feb 16, 2026

Description

Very simple fix to allow searching slow search request by type.


  • I have read and followed all requirements in CONTRIBUTING.md;
  • I used LLM/AI assistance to make this pull request;

@cheb0 cheb0 changed the title chore: log search type when it's slow chore: log type for slow search requests Feb 16, 2026
@github-actions
Copy link
Contributor

🔴 Performance Degradation

Some benchmarks have degraded compared to the previous run.
Click on Show table button to see full list of degraded benchmarks.

Show table
Name Previous Current Ratio Verdict
And/size=1000000-4 8e3eca 99f865
4.58 ns/op 5.23 ns/op 1.14 🔴

@github-actions
Copy link
Contributor

🔴 Performance Degradation

Some benchmarks have degraded compared to the previous run.
Click on Show table button to see full list of degraded benchmarks.

Show table
Name Previous Current Ratio Verdict
And/size=1000-4 7dbc81 2b97ac
4.43 ns/op 5.18 ns/op 1.17 🔴
FindSequence_Random/medium-4 7dbc81 2b97ac
12377.38 MB/s 10426.22 MB/s 0.84 🔴

logger.Warn("slow search",
zap.Int64("took_ms", took.Milliseconds()),
zap.Object("req", (*searchRequestMarshaler)(req)),
zap.String("type", searchParams.Type()),
Copy link
Member

@dkharms dkharms Feb 20, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we can move this log inside Searcher.SearchDocs method and enrich log with more information (as we discussed):

  • time_range in seconds?
  • fractions with list of all fraction names (without .docs/.meta/.index extensions) that were touched by search request;

And it seems like searchRequestMarshaler uses deprecated fields for aggregations.

@eguguchkin eguguchkin added this to the v0.69.0 milestone Mar 2, 2026
@eguguchkin eguguchkin self-requested a review March 2, 2026 11:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants