Takes longer time than `Python` client on get_points
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 30/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Domain
- api, performance
Research direction
Start at the Rust client's get_points entry point and reproduce the Windows 11 comparison using the same collection and six point IDs as the issue. Compare the Rust release timing with Python's retrieve call while investigating the client and Tonic layers. Done means the timing difference is reproducibly explained and the relevant follow-up scope is documented.
Written by the indexing model from the issue text.
Description
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 ?
- Dominant language
- Rust
- Stars
- 425
- Forks
- 89
- Avg merge
- 2h 48m
- Merged PRs (30d)
- 3
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from qdrant/rust-client
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
qdrant/rust-client#320 ·
-
upsert_points deep-clones the whole request on every call, not only on retryMay be free again @NullSense claimed this 7 days ago, and no pull request is open. Open
Difficulty 4/5 3-5 days Newbie friendliness 35/100
qdrant/rust-client#316 · 3 comments ·
-
Option to set TLS domain name and :authority origin (client behind a tunnel/proxy)May be free again @inamdarmihir claimed this 37 days ago, and no pull request is open. Open
Difficulty 4/5 3-5 days Newbie friendliness 48/100
qdrant/rust-client#306 · 1 comment ·
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 38/100
qdrant/rust-client#289 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 30/100
qdrant/rust-client#272 · 2 reactions ·
All issues in qdrant/rust-client
Similar issues
-
autofix:working
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
libracoder/kiri#1138 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
roc-lang/basic-webserver#277 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
samkerrcode/opengent#113 ·
Maintainers usually reply within 1 day
-
app bug session
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day