mirror of
https://github.com/qdrant/landing_page.git
synced 2026-10-03 01:48:32 +02:00
* New r/w contention troubleshooting guide * Add snippet to low latency search guide * Add FAQ entry * Add 'Read More' section to guide
15 lines
446 B
Rust
15 lines
446 B
Rust
use qdrant_client::qdrant::{HnswConfigDiffBuilder, UpdateCollectionBuilder};
|
|
|
|
pub async fn main() -> anyhow::Result<()> {
|
|
let client = qdrant_client::Qdrant::from_url("http://localhost:6334").build()?; // @hide
|
|
|
|
client
|
|
.update_collection(
|
|
UpdateCollectionBuilder::new("{collection_name}")
|
|
.hnsw_config(HnswConfigDiffBuilder::default().max_indexing_threads(4)),
|
|
)
|
|
.await?;
|
|
|
|
Ok(())
|
|
}
|