Takes longer time than `Python` client on get_points

オープン
#131 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
30/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
python, rust
領域
api, performance

調査の方向性

Rust クライアントの get_points エントリーポイントから開始し、issue と同じ collection と6つの point IDを使用して Windows 11 の比較を再現します。クライアント層と Tonic 層を調査しながら、Rust のリリースタイミングと Python の retrieve 呼び出しを比較します。タイミングの差が再現可能な形で説明され、関連するフォローアップのスコープが文書化されれば完了です。

索引モデルが issue の本文から書いたものです。

説明

OS: Windows11

rust(release ~308ms):

use anyhow::Result;

use qdrant_client::prelude::*;
#[actix_web::main]
async fn main() -> Result<()> {
    let client = QdrantClientBuilder::default().build()?;
    let collection_name = "test_collection";
    let t = std::time::Instant::now();
    client
        .get_points(
            collection_name,
            None,
            &[
                "211b0f43-1b8d-4d12-9dd3-62aa0f07a8c6".to_owned().into(),
                "bdd8a0a7-8f39-4b3e-9a92-7a8e2c6f0a4d".to_owned().into(),
                "9cda8e6d-6e0f-4e33-8a6b-2e3b13d6a2e2".to_owned().into(),
                "e9e6e4e9-3b69-4edf-9a5c-a9e8b4df8a66".to_owned().into(),
                "4f80c7a1-4f7b-4c79-94a4-8e20c3f6a1e3".to_owned().into(),
                "17b73663-3a8c-4e5d-9a7d-ec7bba2a8bcf".to_owned().into(),
            ],
            Some(false),
            Some(true),
            None,
        )
        .await?;
    println!("\n{:?}", t.elapsed());
    Ok(())
}

python(~270ms):

from qdrant_client import QdrantClient

client = QdrantClient(prefer_grpc=True)
t = time.time()
client.retrieve(
    "test_collection",
    [
        "211b0f43-1b8d-4d12-9dd3-62aa0f07a8c6",
        "bdd8a0a7-8f39-4b3e-9a92-7a8e2c6f0a4d",
        "9cda8e6d-6e0f-4e33-8a6b-2e3b13d6a2e2",
        "e9e6e4e9-3b69-4edf-9a5c-a9e8b4df8a66",
        "4f80c7a1-4f7b-4c79-94a4-8e20c3f6a1e3",
        "17b73663-3a8c-4e5d-9a7d-ec7bba2a8bcf",
    ],
)
print(time.time() - t)

I know it's minor but I wonder is it related with Tonic or client itself ?

主要言語
Rust
スター
425
フォーク
89
平均マージ
2時間 48分
マージ済み PR(30日)
3

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

qdrant/rust-client のほかの issue

qdrant/rust-client の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。