multi_search: per-search latency includes time spent waiting behind earlier searches in the same request

未关闭
#3,149 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
48/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
cpp

调研方向

Start at the /multi_search request handling and per-search latency measurement, then trace how timings feed typesense_search_95Percentile_latency_ms. Compare when each search starts with when its execution is measured. Done when the metric reflects individual search execution time, or separates waiting time from execution time, while preserving the request wall time.

由索引模型根据 Issue 内容生成。

描述

feature-request

In v30.1 the searches of one /multi_search request run one after another, and each is timed from when the whole request arrived. A 50-search request that takes 7.5 s records searches from ~0.15 s to 7.5 s, so the search latency percentiles report the wait inside the batch as search time.

Could each search be timed from its own start (or both: wait and execution) so the percentiles show real search cost?

Context: observed on Typesense v30.1 with daily batch jobs sending /multi_search requests of 50 vector searches each (about one such request per second); the per-request wall time shows up as 4-7 s spikes in typesense_search_95Percentile_latency_ms while individual searches cost ~150-500 ms.

主要语言
C++
星标
27.2k
派生
1k
平均合并
5 天 3 小时
30 天内合并 PR
7

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

typesense/typesense 的其他 Issue

查看 typesense/typesense 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。