repo stringlengths 6 65 | file_url stringlengths 81 311 | file_path stringlengths 6 227 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:31:58 2026-01-04 20:25:31 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/benches/map_benchmark.rs | lib/segment/benches/map_benchmark.rs | #[cfg(not(target_os = "windows"))]
mod prof;
use std::collections::{BTreeMap, HashMap};
use criterion::{Criterion, criterion_group, criterion_main};
use rand::SeedableRng;
use rand::rngs::StdRng;
use segment::data_types::tiny_map::TinyMap;
use segment::fixtures::index_fixtures::random_vector;
const DIM: usize = 100;... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/benches/serde_formats.rs | lib/segment/benches/serde_formats.rs | #[cfg(not(target_os = "windows"))]
mod prof;
use criterion::{Criterion, criterion_group, criterion_main};
use itertools::Itertools;
use segment::payload_json;
use segment::types::Payload;
fn serde_formats_bench(c: &mut Criterion) {
let mut group = c.benchmark_group("serde-formats-group");
let payloads = (0..... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/benches/metrics.rs | lib/segment/benches/metrics.rs | #[cfg(not(target_os = "windows"))]
mod prof;
use criterion::{Criterion, criterion_group, criterion_main};
use half::f16;
use rand::rngs::StdRng;
use rand::{Rng, SeedableRng};
use segment::data_types::vectors::{VectorElementTypeByte, VectorElementTypeHalf};
use segment::spaces::metric::Metric;
#[cfg(target_arch = "x86_... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/benches/multi_vector_search.rs | lib/segment/benches/multi_vector_search.rs | use std::collections::HashMap;
use std::sync::Arc;
use std::sync::atomic::AtomicBool;
use common::budget::ResourcePermit;
use common::counter::hardware_counter::HardwareCounterCell;
use common::flags::FeatureFlags;
use common::progress_tracker::ProgressTracker;
use criterion::{BatchSize, Criterion, criterion_group, cr... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/benches/boolean_filtering.rs | lib/segment/benches/boolean_filtering.rs | use std::sync::Arc;
use std::sync::atomic::AtomicBool;
use atomic_refcell::AtomicRefCell;
use common::counter::hardware_counter::HardwareCounterCell;
use criterion::{Criterion, criterion_group, criterion_main};
use rand::rngs::StdRng;
use rand::{Rng, SeedableRng};
use segment::fixtures::payload_context_fixture::{
... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/benches/hnsw_build_graph.rs | lib/segment/benches/hnsw_build_graph.rs | #[cfg(not(target_os = "windows"))]
mod prof;
use common::types::PointOffsetType;
use criterion::{Criterion, criterion_group, criterion_main};
use rand::SeedableRng;
use rand::rngs::StdRng;
use segment::fixtures::index_fixtures::TestRawScorerProducer;
use segment::index::hnsw_index::HnswM;
use segment::index::hnsw_inde... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/segment/benches/numeric_index_check_values.rs | lib/segment/benches/numeric_index_check_values.rs | use common::counter::hardware_counter::HardwareCounterCell;
use common::types::PointOffsetType;
use criterion::{Criterion, criterion_group, criterion_main};
use rand::prelude::StdRng;
use rand::{Rng, SeedableRng};
use segment::common::operation_error::OperationResult;
use segment::index::field_index::numeric_index::mma... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/gridstore/src/config.rs | lib/gridstore/src/config.rs | use serde::{Deserialize, Serialize};
/// Expect JSON values to have roughly 3–5 fields with mostly small values.
/// For 1M values, this would require 128MB of memory.
pub const DEFAULT_BLOCK_SIZE_BYTES: usize = 128;
/// Default page size used when not specified
pub const DEFAULT_PAGE_SIZE_BYTES: usize = 32 * 1024 * ... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/gridstore/src/page.rs | lib/gridstore/src/page.rs | use std::path::{Path, PathBuf};
use fs_err as fs;
use memmap2::{Mmap, MmapMut};
use memory::fadvise::clear_disk_cache;
use memory::madvise::{Advice, AdviceSetting, Madviseable};
use memory::mmap_ops::{
MULTI_MMAP_IS_SUPPORTED, create_and_ensure_length, open_read_mmap, open_write_mmap,
};
use crate::Result;
use cr... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/gridstore/src/lib.rs | lib/gridstore/src/lib.rs | pub mod bitmask;
pub mod blob;
pub mod config;
pub mod error;
pub mod fixtures;
mod gridstore;
mod page;
mod tracker;
pub use blob::Blob;
pub use gridstore::Gridstore;
use crate::error::GridstoreError;
pub(crate) type Result<T> = std::result::Result<T, GridstoreError>;
| rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/gridstore/src/tracker.rs | lib/gridstore/src/tracker.rs | use std::path::{Path, PathBuf};
use ahash::{AHashMap, AHashSet};
use memmap2::MmapMut;
use memory::madvise::{Advice, AdviceSetting, Madviseable};
use memory::mmap_ops::{
create_and_ensure_length, open_write_mmap, transmute_from_u8, transmute_to_u8,
};
use smallvec::SmallVec;
use crate::Result;
use crate::error::G... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/gridstore/src/error.rs | lib/gridstore/src/error.rs | use memory::mmap_type;
#[derive(thiserror::Error, Debug)]
pub enum GridstoreError {
#[error("{0}")]
Mmap(#[from] mmap_type::Error),
#[error("{0}")]
Io(#[from] std::io::Error),
#[error("{0}")]
SerdeJson(#[from] serde_json::error::Error),
#[error("Service error: {description}")]
ServiceEr... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/gridstore/src/fixtures.rs | lib/gridstore/src/fixtures.rs | use rand::Rng;
use rand::distr::{Distribution, Uniform};
use serde::{Deserialize, Serialize};
use serde_json::Map;
use tempfile::{Builder, TempDir};
use crate::config::{Compression, StorageOptions};
use crate::{Blob, Gridstore};
#[derive(Clone, Debug, Eq, PartialEq, Deserialize, Serialize)]
pub struct Payload(pub Map... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/gridstore/src/blob.rs | lib/gridstore/src/blob.rs | use zerocopy::{FromBytes, Immutable, IntoBytes};
pub trait Blob {
fn to_bytes(&self) -> Vec<u8>;
fn from_bytes(bytes: &[u8]) -> Self;
}
impl Blob for Vec<u8> {
fn to_bytes(&self) -> Vec<u8> {
self.clone()
}
fn from_bytes(bytes: &[u8]) -> Self {
bytes.to_vec()
}
}
impl Blob f... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/gridstore/src/gridstore.rs | lib/gridstore/src/gridstore.rs | use std::io::BufReader;
use std::path::PathBuf;
use std::sync::Arc;
use common::counter::hardware_counter::HardwareCounterCell;
use common::counter::referenced_counter::HwMetricRefCounter;
use common::is_alive_lock::IsAliveLock;
use fs_err as fs;
use fs_err::File;
use io::file_operations::atomic_save_json;
use itertoo... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | true |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/gridstore/src/bitmask/gaps.rs | lib/gridstore/src/bitmask/gaps.rs | use std::ops::Range;
use std::path::{Path, PathBuf};
use itertools::Itertools;
use memory::fadvise::clear_disk_cache;
use memory::madvise::{Advice, AdviceSetting};
use memory::mmap_ops::{create_and_ensure_length, open_write_mmap};
use memory::mmap_type::MmapSlice;
use super::{RegionId, StorageConfig};
use crate::Resu... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/gridstore/src/bitmask/mod.rs | lib/gridstore/src/bitmask/mod.rs | mod gaps;
use std::ops::Range;
use std::path::{Path, PathBuf};
use ahash::AHashSet;
use bitvec::slice::BitSlice;
use gaps::{BitmaskGaps, RegionGaps};
use itertools::Itertools;
use memory::fadvise::clear_disk_cache;
use memory::madvise::{Advice, AdviceSetting};
use memory::mmap_ops::{create_and_ensure_length, open_wri... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/gridstore/benches/real_data_bench.rs | lib/gridstore/benches/real_data_bench.rs | use std::hint::black_box;
use std::io::BufReader;
use std::path::Path;
use common::counter::hardware_counter::HardwareCounterCell;
use criterion::{Criterion, criterion_group, criterion_main};
use fs_err as fs;
use fs_err::File;
use gridstore::fixtures::{HM_FIELDS, Payload, empty_storage};
use rand::Rng;
use serde_json... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/gridstore/benches/random_data_bench.rs | lib/gridstore/benches/random_data_bench.rs | use common::counter::hardware_counter::HardwareCounterCell;
use criterion::{BatchSize, Criterion, criterion_group, criterion_main};
use gridstore::fixtures::{empty_storage, random_payload};
/// sized similarly to the real dataset for a fair comparison
const PAYLOAD_COUNT: u32 = 100_000;
pub fn random_data_bench(c: &m... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/gridstore/benches/flush_bench.rs | lib/gridstore/benches/flush_bench.rs | use std::time::{Duration, Instant};
use common::counter::hardware_counter::HardwareCounterCell;
use criterion::{Criterion, criterion_group, criterion_main};
use gridstore::fixtures::{empty_storage, random_payload};
use rand::Rng;
pub fn flush_bench(c: &mut Criterion) {
let prepopulation_size = 10_000;
// Tes... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/gridstore/benches/bitmask_bench.rs | lib/gridstore/benches/bitmask_bench.rs | use std::hint::black_box;
use bitvec::vec::BitVec;
use criterion::{Criterion, criterion_group, criterion_main};
use gridstore::bitmask::Bitmask;
use gridstore::config::DEFAULT_REGION_SIZE_BLOCKS;
use rand::Rng;
pub fn bench_bitmask_ops(c: &mut Criterion) {
let distr = rand::distr::StandardUniform;
let rng = r... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/gridstore/benches/bustle_bench/payload_storage.rs | lib/gridstore/benches/bustle_bench/payload_storage.rs | use std::sync::Arc;
use bustle::Collection;
use common::counter::hardware_counter::HardwareCounterCell;
use gridstore::fixtures::{Payload, empty_storage};
use parking_lot::RwLock;
use crate::PayloadStorage;
use crate::fixture::{ArcStorage, SequentialCollectionHandle, StorageProxy};
impl Collection for ArcStorage<Pay... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/gridstore/benches/bustle_bench/fixture.rs | lib/gridstore/benches/bustle_bench/fixture.rs | use std::collections::HashMap;
use std::sync::{Arc, OnceLock};
use bustle::CollectionHandle;
use gridstore::fixtures::Payload;
use parking_lot::RwLock;
use serde_json::json;
use tempfile::TempDir;
#[derive(Clone)]
pub struct ArcStorage<S> {
pub proxy: Arc<RwLock<StorageProxy<S>>>,
pub dir: Arc<TempDir>,
}
//... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/gridstore/benches/bustle_bench/rocksdb.rs | lib/gridstore/benches/bustle_bench/rocksdb.rs | use std::sync::Arc;
use bustle::Collection;
use gridstore::Blob;
use gridstore::fixtures::Payload;
use parking_lot::RwLock;
use rocksdb::{DB, DBRecoveryMode, LogLevel, Options, WriteOptions};
use crate::fixture::{ArcStorage, SequentialCollectionHandle, StorageProxy};
const DB_CACHE_SIZE: usize = 10 * 1024 * 1024; //... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/gridstore/benches/bustle_bench/main.rs | lib/gridstore/benches/bustle_bench/main.rs | //! Implements Bustle traits for comparing performance against other kv stores.
#[cfg(feature = "rocksdb")]
use ::rocksdb::DB;
use bustle::{Mix, Workload};
use fixture::ArcStorage;
use gridstore::Gridstore;
use gridstore::fixtures::Payload;
mod fixture;
mod payload_storage;
#[cfg(feature = "rocksdb")]
mod rocksdb;
ty... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/sparse/src/lib.rs | lib/sparse/src/lib.rs | pub mod common;
pub mod index;
| rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/sparse/src/index/search_context.rs | lib/sparse/src/index/search_context.rs | use std::cmp::{Ordering, max, min};
use std::sync::atomic::AtomicBool;
use std::sync::atomic::Ordering::Relaxed;
use common::counter::hardware_counter::HardwareCounterCell;
use common::top_k::TopK;
use common::types::{PointOffsetType, ScoredPointOffset};
use super::posting_list_common::PostingListIter;
use crate::com... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/sparse/src/index/compressed_posting_list.rs | lib/sparse/src/index/compressed_posting_list.rs | use std::cmp::Ordering;
use std::fmt::Debug;
use std::mem::size_of;
use bitpacking::BitPacker as _;
use common::counter::hardware_counter::HardwareCounterCell;
use common::counter::iterator_hw_measurement::HwMeasurementIteratorExt;
use common::types::PointOffsetType;
#[cfg(debug_assertions)]
use itertools::Itertools a... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/sparse/src/index/posting_list.rs | lib/sparse/src/index/posting_list.rs | use std::cmp::max;
use common::types::PointOffsetType;
use ordered_float::OrderedFloat;
use super::posting_list_common::{
DEFAULT_MAX_NEXT_WEIGHT, PostingElement, PostingElementEx, PostingListIter,
};
use crate::common::types::DimWeight;
#[derive(Debug, Default, Clone, PartialEq)]
pub struct PostingList {
//... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/sparse/src/index/mod.rs | lib/sparse/src/index/mod.rs | pub mod compressed_posting_list;
pub mod inverted_index;
pub mod loaders;
pub mod posting_list;
pub mod posting_list_common;
pub mod search_context;
#[cfg(test)]
mod tests;
| rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/sparse/src/index/posting_list_common.rs | lib/sparse/src/index/posting_list_common.rs | use common::types::PointOffsetType;
use crate::common::types::DimWeight;
pub const DEFAULT_MAX_NEXT_WEIGHT: DimWeight = f32::NEG_INFINITY;
#[derive(Debug, Clone, PartialEq)]
pub struct GenericPostingElement<W> {
/// Record ID
pub record_id: PointOffsetType,
/// Weight of the record in the dimension
p... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/sparse/src/index/loaders.rs | lib/sparse/src/index/loaders.rs | use std::collections::HashMap;
use std::io::{self, BufRead as _, BufReader, Lines};
use std::mem::size_of;
use std::path::Path;
use fs_err::File;
use memmap2::Mmap;
use memory::madvise::{Advice, AdviceSetting};
use memory::mmap_ops::{open_read_mmap, transmute_from_u8, transmute_from_u8_to_slice};
use validator::Valida... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/sparse/src/index/inverted_index/inverted_index_compressed_mmap.rs | lib/sparse/src/index/inverted_index/inverted_index_compressed_mmap.rs | use std::borrow::Cow;
use std::io::{BufWriter, Write as _};
use std::marker::PhantomData;
use std::mem::size_of;
use std::path::{Path, PathBuf};
use std::sync::Arc;
use common::counter::hardware_counter::HardwareCounterCell;
use common::types::PointOffsetType;
use io::file_operations::{atomic_save_json, read_json};
us... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/sparse/src/index/inverted_index/inverted_index_ram.rs | lib/sparse/src/index/inverted_index/inverted_index_ram.rs | use std::borrow::Cow;
use std::path::{Path, PathBuf};
use common::counter::hardware_counter::HardwareCounterCell;
use common::types::PointOffsetType;
use io::storage_version::StorageVersion;
use crate::common::sparse_vector::RemappedSparseVector;
use crate::common::types::{DimId, DimOffset};
use crate::index::inverte... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/sparse/src/index/inverted_index/inverted_index_immutable_ram.rs | lib/sparse/src/index/inverted_index/inverted_index_immutable_ram.rs | use std::borrow::Cow;
use std::path::Path;
use common::counter::hardware_counter::HardwareCounterCell;
use common::types::PointOffsetType;
use super::InvertedIndex;
use super::inverted_index_mmap::InvertedIndexMmap;
use super::inverted_index_ram::InvertedIndexRam;
use crate::common::sparse_vector::RemappedSparseVecto... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/sparse/src/index/inverted_index/inverted_index_compressed_immutable_ram.rs | lib/sparse/src/index/inverted_index/inverted_index_compressed_immutable_ram.rs | use std::borrow::Cow;
use std::path::Path;
use common::counter::hardware_counter::HardwareCounterCell;
use common::types::PointOffsetType;
use super::InvertedIndex;
use super::inverted_index_compressed_mmap::InvertedIndexCompressedMmap;
use super::inverted_index_ram::InvertedIndexRam;
use crate::common::sparse_vector... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/sparse/src/index/inverted_index/inverted_index_mmap.rs | lib/sparse/src/index/inverted_index/inverted_index_mmap.rs | use std::borrow::Cow;
use std::mem::size_of;
use std::path::{Path, PathBuf};
use std::sync::Arc;
use common::counter::hardware_counter::HardwareCounterCell;
use common::types::PointOffsetType;
use io::file_operations::{atomic_save_json, read_json};
use io::storage_version::StorageVersion;
use memmap2::{Mmap, MmapMut};... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/sparse/src/index/inverted_index/inverted_index_ram_builder.rs | lib/sparse/src/index/inverted_index/inverted_index_ram_builder.rs | use std::cmp::max;
use common::types::PointOffsetType;
use log::debug;
use crate::common::sparse_vector::RemappedSparseVector;
use crate::index::inverted_index::inverted_index_ram::InvertedIndexRam;
use crate::index::posting_list::PostingBuilder;
use crate::index::posting_list_common::PostingElementEx;
/// Builder f... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/sparse/src/index/inverted_index/mod.rs | lib/sparse/src/index/inverted_index/mod.rs | use std::borrow::Cow;
use std::fmt::Debug;
use std::path::{Path, PathBuf};
use common::counter::hardware_counter::HardwareCounterCell;
use common::types::PointOffsetType;
use io::storage_version::StorageVersion;
use super::posting_list_common::PostingListIter;
use crate::common::sparse_vector::RemappedSparseVector;
u... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/sparse/src/index/tests/search_context_tests.rs | lib/sparse/src/index/tests/search_context_tests.rs | #[cfg(test)]
#[generic_tests::define]
mod tests {
use std::any::TypeId;
use std::borrow::Cow;
use std::sync::OnceLock;
use std::sync::atomic::AtomicBool;
use common::counter::hardware_accumulator::HwMeasurementAcc;
use common::counter::hardware_counter::HardwareCounterCell;
use common::type... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/sparse/src/index/tests/mod.rs | lib/sparse/src/index/tests/mod.rs | mod common;
mod hw_counter_test;
mod indexed_vs_plain_test;
mod search_context_tests;
| rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/sparse/src/index/tests/indexed_vs_plain_test.rs | lib/sparse/src/index/tests/indexed_vs_plain_test.rs | use std::sync::atomic::AtomicBool;
use common::counter::hardware_accumulator::HwMeasurementAcc;
use crate::common::sparse_vector::RemappedSparseVector;
use crate::index::inverted_index::InvertedIndex;
use crate::index::search_context::SearchContext;
use crate::index::tests::common::{build_index, get_pooled_scores, ma... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/sparse/src/index/tests/common.rs | lib/sparse/src/index/tests/common.rs | use std::borrow::Cow;
use std::sync::OnceLock;
use common::types::PointOffsetType;
use rand::SeedableRng;
use tempfile::TempDir;
use crate::common::scores_memory_pool::{PooledScoresHandle, ScoresMemoryPool};
use crate::common::sparse_vector::RemappedSparseVector;
use crate::common::types::{DimOffset, Weight};
use cra... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/sparse/src/index/tests/hw_counter_test.rs | lib/sparse/src/index/tests/hw_counter_test.rs | use std::sync::atomic::AtomicBool;
use common::counter::hardware_accumulator::HwMeasurementAcc;
use common::types::PointOffsetType;
use itertools::Itertools;
use crate::common::sparse_vector::RemappedSparseVector;
use crate::index::inverted_index::InvertedIndex;
use crate::index::search_context::SearchContext;
use cr... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/sparse/src/common/scores_memory_pool.rs | lib/sparse/src/common/scores_memory_pool.rs | use common::defaults::POOL_KEEP_LIMIT;
use common::types::ScoreType;
use parking_lot::Mutex;
type PooledScores = Vec<ScoreType>;
#[derive(Debug)]
pub struct PooledScoresHandle<'a> {
pool: &'a ScoresMemoryPool,
pub scores: PooledScores,
}
impl<'a> PooledScoresHandle<'a> {
fn new(pool: &'a ScoresMemoryPool... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/sparse/src/common/types.rs | lib/sparse/src/common/types.rs | use std::fmt::Debug;
use half::slice::HalfFloatSliceExt;
use itertools::{Itertools, MinMaxResult};
pub type DimOffset = u32;
pub type DimId = u32;
pub type DimId64 = u64;
pub type DimWeight = f32;
pub trait Weight: PartialEq + Copy + Debug + 'static {
type QuantizationParams: Copy + PartialEq + Debug;
fn qu... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/sparse/src/common/mod.rs | lib/sparse/src/common/mod.rs | pub mod scores_memory_pool;
pub mod sparse_vector;
#[cfg(feature = "testing")]
pub mod sparse_vector_fixture;
pub mod types;
| rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/sparse/src/common/sparse_vector_fixture.rs | lib/sparse/src/common/sparse_vector_fixture.rs | use std::ops::Range;
use rand::Rng;
use crate::common::sparse_vector::SparseVector;
const VALUE_RANGE: Range<f64> = -100.0..100.0;
// Realistic sizing based on experiences with SPLADE
const MAX_VALUES_PER_VECTOR: usize = 300;
/// Generates a non empty sparse vector
pub fn random_sparse_vector<R: Rng + ?Sized>(rnd_g... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/sparse/src/common/sparse_vector.rs | lib/sparse/src/common/sparse_vector.rs | use std::borrow::Cow;
use std::hash::Hash;
use common::types::ScoreType;
use gridstore::Blob;
use itertools::Itertools;
use ordered_float::OrderedFloat;
use schemars::JsonSchema;
use serde::{Deserialize, Serialize};
use validator::{Validate, ValidationError, ValidationErrors};
use crate::common::types::{DimId, DimOff... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/sparse/benches/prof.rs | lib/sparse/benches/prof.rs | use std::io::Write;
use std::os::raw::c_int;
use std::path::Path;
use criterion::profiler::Profiler;
use fs_err as fs;
use fs_err::File;
use pprof::ProfilerGuard;
use pprof::flamegraph::TextTruncateDirection;
use pprof::protos::Message;
/// Small custom profiler that can be used with Criterion to create a flamegraph ... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/sparse/benches/search.rs | lib/sparse/benches/search.rs | use std::borrow::Cow;
use std::io;
use std::path::Path;
use std::sync::atomic::AtomicBool;
use common::counter::hardware_counter::HardwareCounterCell;
use common::types::PointOffsetType;
use criterion::measurement::Measurement;
use criterion::{Criterion, criterion_group, criterion_main};
use dataset::Dataset;
use indi... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/config.rs | lib/collection/src/config.rs | use std::collections::{BTreeMap, HashMap, HashSet};
use std::io::{Read, Write as _};
use std::num::{NonZeroU32, NonZeroUsize};
use std::path::Path;
use atomicwrites::AtomicFile;
use atomicwrites::OverwriteBehavior::AllowOverwrite;
use fs_err::File;
use schemars::JsonSchema;
use segment::common::anonymize::Anonymize;
u... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/discovery.rs | lib/collection/src/discovery.rs | use std::time::Duration;
use common::counter::hardware_accumulator::HwMeasurementAcc;
use futures::Future;
use itertools::Itertools;
use segment::data_types::vectors::NamedQuery;
use segment::types::{Condition, Filter, HasIdCondition, ScoredPoint};
use segment::vector_storage::query::{ContextPair, ContextQuery, Discov... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/lib.rs | lib/collection/src/lib.rs | pub mod collection;
pub mod collection_manager;
pub mod collection_state;
pub mod common;
pub mod config;
pub mod discovery;
pub mod grouping;
pub mod hash_ring;
pub mod lookup;
pub mod operations;
pub mod optimizers_builder;
pub mod problems;
pub mod recommendations;
pub mod shards;
pub mod telemetry;
mod update_handl... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/optimizers_builder.rs | lib/collection/src/optimizers_builder.rs | use std::path::Path;
use std::sync::Arc;
use fs_err as fs;
use schemars::JsonSchema;
use segment::common::anonymize::Anonymize;
use segment::index::hnsw_index::num_rayon_threads;
use segment::types::{HnswConfig, HnswGlobalConfig, QuantizationConfig};
use serde::{Deserialize, Serialize};
use validator::Validate;
use c... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/update_handler.rs | lib/collection/src/update_handler.rs | use std::collections::HashSet;
use std::path::PathBuf;
use std::sync::Arc;
use std::sync::atomic::{AtomicBool, AtomicU64, AtomicUsize, Ordering};
use common::budget::ResourceBudget;
use common::counter::hardware_accumulator::HwMeasurementAcc;
use common::save_on_disk::SaveOnDisk;
use parking_lot::Mutex;
use segment::t... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/telemetry.rs | lib/collection/src/telemetry.rs | use std::collections::HashMap;
use schemars::JsonSchema;
use segment::common::anonymize::Anonymize;
use segment::data_types::tiny_map::TinyMap;
use segment::types::{
HnswConfig, Payload, QuantizationConfig, StrictModeConfigOutput, VectorNameBuf,
};
use serde::Serialize;
use uuid::Uuid;
use crate::collection_manag... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/hash_ring.rs | lib/collection/src/hash_ring.rs | use std::collections::HashSet;
use std::fmt;
use std::hash::{BuildHasherDefault, Hash};
use bytemuck::TransparentWrapper as _;
use common::stable_hash::{StableHash, StableHashed};
use itertools::Itertools as _;
use segment::index::field_index::CardinalityEstimation;
use segment::types::{CustomIdCheckerCondition, Point... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/recommendations.rs | lib/collection/src/recommendations.rs | use std::future::Future;
use std::iter::Peekable;
use std::time::Duration;
use api::rest::RecommendStrategy;
use common::counter::hardware_accumulator::HwMeasurementAcc;
use itertools::Itertools;
use segment::data_types::vectors::{
DenseVector, NamedQuery, TypedMultiDenseVector, VectorElementType, VectorInternal, ... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/events.rs | lib/collection/src/events.rs | use std::collections::HashMap;
use segment::json_path::JsonPath;
use segment::types::{Filter, PayloadFieldSchema};
use crate::shards::CollectionId;
pub struct CollectionDeletedEvent {
pub collection_id: CollectionId,
}
pub struct SlowQueryEvent {
pub collection_id: CollectionId,
pub filters: Vec<Filter>... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/wal_delta.rs | lib/collection/src/wal_delta.rs | use std::fmt::Debug;
use std::sync::Arc;
use shard::wal::SerdeWal;
use thiserror::Error;
use tokio::sync::{Mutex, OwnedMutexGuard};
use crate::operations::{ClockTag, OperationWithClockTag};
use crate::shards::local_shard::clock_map::{ClockMap, RecoveryPoint};
pub(crate) type LockedWal = Arc<Mutex<SerdeWal<OperationW... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | true |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/collection_state.rs | lib/collection/src/collection_state.rs | use std::collections::{HashMap, HashSet};
use ahash::AHashMap;
use serde::{Deserialize, Serialize};
use crate::collection::payload_index_schema::PayloadIndexSchema;
use crate::config::CollectionConfigInternal;
use crate::shards::replica_set::replica_set_state::ReplicaState;
use crate::shards::resharding::ReshardState... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/collection_manager/holders.rs | lib/collection/src/collection_manager/holders.rs | pub mod proxy_segment {
pub use shard::proxy_segment::*;
}
pub mod segment_holder {
pub use shard::locked_segment::*;
pub use shard::segment_holder::*;
}
| rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/collection_manager/probabilistic_search_sampling.rs | lib/collection/src/collection_manager/probabilistic_search_sampling.rs | /// Precomputed sampling table for the probabilistic segment search algorithm.
///
/// Associate a lambda factor from the [Poisson distribution](https://en.wikipedia.org/wiki/Poisson_distribution) to a sampling size.
///
/// The table is precomputed for a range of segments and a range of `top` params.
///
/// TODO atta... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/collection_manager/fixtures.rs | lib/collection/src/collection_manager/fixtures.rs | use std::collections::HashSet;
use std::path::Path;
use std::time::Duration;
use common::counter::hardware_counter::HardwareCounterCell;
use parking_lot::RwLock;
use rand::Rng;
use rand::rngs::ThreadRng;
use segment::data_types::named_vectors::NamedVectors;
use segment::data_types::vectors::only_default_vector;
use se... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/collection_manager/mod.rs | lib/collection/src/collection_manager/mod.rs | pub mod collection_updater;
pub mod holders;
pub mod optimizers;
pub mod segments_searcher;
pub mod probabilistic_search_sampling;
#[cfg(test)]
pub(crate) mod fixtures;
#[cfg(test)]
mod tests;
| rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/collection_manager/collection_updater.rs | lib/collection/src/collection_manager/collection_updater.rs | use std::sync::Arc;
use common::counter::hardware_counter::HardwareCounterCell;
use parking_lot::RwLock;
use segment::types::SeqNumberType;
use shard::update::*;
use crate::collection_manager::holders::segment_holder::SegmentHolder;
use crate::operations::CollectionUpdateOperations;
use crate::operations::types::{Col... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/collection_manager/segments_searcher.rs | lib/collection/src/collection_manager/segments_searcher.rs | use std::collections::BTreeSet;
use std::sync::Arc;
use std::time::{Duration, Instant};
use ahash::AHashMap;
use common::counter::hardware_accumulator::HwMeasurementAcc;
use common::types::ScoreType;
use futures::stream::FuturesUnordered;
use futures::{FutureExt, TryStreamExt};
use itertools::Itertools;
use ordered_fl... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | true |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/collection_manager/optimizers/merge_optimizer.rs | lib/collection/src/collection_manager/optimizers/merge_optimizer.rs | use std::collections::HashSet;
use std::path::{Path, PathBuf};
use std::sync::Arc;
use itertools::Itertools;
use parking_lot::Mutex;
use segment::common::operation_time_statistics::OperationDurationsAggregator;
use segment::types::{HnswConfig, HnswGlobalConfig, QuantizationConfig, SegmentType};
use crate::collection_... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/collection_manager/optimizers/config_mismatch_optimizer.rs | lib/collection/src/collection_manager/optimizers/config_mismatch_optimizer.rs | use std::collections::HashSet;
use std::path::{Path, PathBuf};
use std::sync::Arc;
use parking_lot::Mutex;
use segment::common::operation_time_statistics::OperationDurationsAggregator;
use segment::index::sparse_index::sparse_index_config::SparseIndexType;
use segment::types::{
HnswConfig, HnswGlobalConfig, Indexe... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/collection_manager/optimizers/indexing_optimizer.rs | lib/collection/src/collection_manager/optimizers/indexing_optimizer.rs | use std::collections::HashSet;
use std::path::{Path, PathBuf};
use std::sync::Arc;
use parking_lot::Mutex;
use segment::common::operation_time_statistics::OperationDurationsAggregator;
use segment::types::{HnswConfig, HnswGlobalConfig, QuantizationConfig, SegmentType};
use crate::collection_manager::holders::segment_... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | true |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/collection_manager/optimizers/segment_optimizer.rs | lib/collection/src/collection_manager/optimizers/segment_optimizer.rs | use std::collections::{HashMap, HashSet};
use std::ops::Deref;
use std::path::Path;
use std::sync::atomic::AtomicBool;
use common::budget::{ResourceBudget, ResourcePermit};
use common::bytes::bytes_to_human;
use common::counter::hardware_counter::HardwareCounterCell;
use common::disk::dir_disk_size;
use common::progre... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | true |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/collection_manager/optimizers/mod.rs | lib/collection/src/collection_manager/optimizers/mod.rs | use std::collections::VecDeque;
use std::sync::Arc;
use chrono::{DateTime, Utc};
use common::progress_tracker::{ProgressTracker, ProgressView, new_progress_tracker};
use parking_lot::Mutex;
use schemars::JsonSchema;
use segment::common::anonymize::Anonymize;
use serde::{Deserialize, Serialize};
use super::holders::se... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/collection_manager/optimizers/vacuum_optimizer.rs | lib/collection/src/collection_manager/optimizers/vacuum_optimizer.rs | use std::collections::HashSet;
use std::path::{Path, PathBuf};
use std::sync::Arc;
use ordered_float::OrderedFloat;
use parking_lot::Mutex;
use segment::common::operation_time_statistics::OperationDurationsAggregator;
use segment::entry::entry_point::SegmentEntry;
use segment::index::VectorIndex;
use segment::types::{... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/collection_manager/tests/test_search_aggregation.rs | lib/collection/src/collection_manager/tests/test_search_aggregation.rs | use common::types::ScoreType;
use segment::types::{PointIdType, ScoredPoint, SeqNumberType};
use crate::collection_manager::segments_searcher::SegmentsSearcher;
fn score_point(id: usize, score: ScoreType, version: SeqNumberType) -> ScoredPoint {
ScoredPoint {
id: PointIdType::NumId(id as u64),
ver... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/collection_manager/tests/mod.rs | lib/collection/src/collection_manager/tests/mod.rs | use std::collections::HashSet;
use std::sync::Arc;
use std::sync::atomic::AtomicBool;
use ahash::AHashMap;
use common::counter::hardware_accumulator::HwMeasurementAcc;
use common::counter::hardware_counter::HardwareCounterCell;
use itertools::Itertools;
use parking_lot::RwLock;
use segment::data_types::vectors::{Vecto... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/tests/hw_metrics.rs | lib/collection/src/tests/hw_metrics.rs | use std::sync::Arc;
use std::time::Duration;
use common::budget::ResourceBudget;
use common::counter::hardware_accumulator::{HwMeasurementAcc, HwSharedDrain};
use common::save_on_disk::SaveOnDisk;
use rand::rngs::ThreadRng;
use rand::{RngCore, rng};
use segment::data_types::vectors::{NamedQuery, VectorInternal, Vector... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/tests/fix_payload_indices.rs | lib/collection/src/tests/fix_payload_indices.rs | use std::sync::Arc;
use common::budget::ResourceBudget;
use common::counter::hardware_accumulator::HwMeasurementAcc;
use common::save_on_disk::SaveOnDisk;
use segment::types::{PayloadFieldSchema, PayloadSchemaType};
use tempfile::Builder;
use tokio::runtime::Handle;
use tokio::sync::RwLock;
use crate::shards::local_s... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/tests/shard_telemetry.rs | lib/collection/src/tests/shard_telemetry.rs | use std::sync::Arc;
use std::time::Duration;
use common::budget::ResourceBudget;
use common::save_on_disk::SaveOnDisk;
use common::types::{DetailsLevel, TelemetryDetail};
use strum::IntoEnumIterator;
use tempfile::Builder;
use tokio::runtime::Handle;
use tokio::sync::RwLock;
use crate::operations::types::CollectionEr... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/tests/sparse_vectors_validation_tests.rs | lib/collection/src/tests/sparse_vectors_validation_tests.rs | use std::collections::HashMap;
use api::rest::{
BaseGroupRequest, Batch, BatchVectorStruct, PointStruct, PointVectors, PointsList,
SearchGroupsRequestInternal, SearchRequestInternal, Vector, VectorStruct,
};
use segment::types::VectorNameBuf;
use sparse::common::sparse_vector::SparseVector;
use validator::Vali... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/tests/snapshot_test.rs | lib/collection/src/tests/snapshot_test.rs | use std::collections::HashSet;
use std::num::NonZeroU32;
use std::sync::Arc;
use ahash::AHashMap;
use common::budget::ResourceBudget;
use segment::types::Distance;
use tempfile::Builder;
use crate::collection::{Collection, RequestShardTransfer};
use crate::config::{CollectionConfigInternal, CollectionParams, WalConfi... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/tests/fixtures.rs | lib/collection/src/tests/fixtures.rs | use ahash::AHashSet;
use segment::data_types::vectors::VectorStructInternal;
use segment::types::{
Condition, Distance, Filter, PayloadFieldSchema, PayloadSchemaType, PointIdType,
};
use crate::config::{CollectionConfigInternal, CollectionParams, WalConfig};
use crate::operations::point_ops::{
PointInsertOpera... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/tests/mod.rs | lib/collection/src/tests/mod.rs | mod fix_payload_indices;
pub mod fixtures;
mod hw_metrics;
mod payload;
mod points_dedup;
mod query_prefetch_offset_limit;
mod sha_256_test;
mod shard_query;
mod shard_telemetry;
mod snapshot_test;
mod sparse_vectors_validation_tests;
mod wal_recovery_test;
use std::sync::Arc;
use std::sync::atomic::{AtomicUsize, Orde... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/tests/payload.rs | lib/collection/src/tests/payload.rs | use std::str::FromStr;
use std::sync::Arc;
use common::budget::ResourceBudget;
use common::counter::hardware_accumulator::HwMeasurementAcc;
use common::save_on_disk::SaveOnDisk;
use ordered_float::OrderedFloat;
use segment::json_path::JsonPath;
use segment::types::{
Condition, FieldCondition, Filter, GeoPoint, Geo... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/tests/points_dedup.rs | lib/collection/src/tests/points_dedup.rs | use std::collections::HashSet;
use std::num::NonZeroU32;
use std::sync::Arc;
use ahash::AHashMap;
use api::rest::OrderByInterface;
use common::budget::ResourceBudget;
use common::counter::hardware_accumulator::HwMeasurementAcc;
use rand::{Rng, rng};
use segment::data_types::vectors::NamedQuery;
use segment::types::{
... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/tests/shard_query.rs | lib/collection/src/tests/shard_query.rs | use std::sync::Arc;
use common::budget::ResourceBudget;
use common::counter::hardware_accumulator::HwMeasurementAcc;
use common::save_on_disk::SaveOnDisk;
use segment::common::reciprocal_rank_fusion::DEFAULT_RRF_K;
use segment::data_types::vectors::{DEFAULT_VECTOR_NAME, NamedQuery, VectorInternal};
use segment::types:... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/tests/query_prefetch_offset_limit.rs | lib/collection/src/tests/query_prefetch_offset_limit.rs | use std::collections::HashSet;
use std::num::NonZeroU32;
use std::sync::Arc;
use ahash::AHashMap;
use common::budget::ResourceBudget;
use common::counter::hardware_accumulator::HwMeasurementAcc;
use rand::{Rng, rng};
use segment::data_types::vectors::NamedQuery;
use segment::types::{Distance, ExtendedPointId, WithPayl... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/tests/sha_256_test.rs | lib/collection/src/tests/sha_256_test.rs | use std::io::Write;
use tempfile::NamedTempFile;
use crate::common::sha_256::hash_file;
#[tokio::test]
async fn test_sha_256_digest() -> std::io::Result<()> {
let mut file = NamedTempFile::new()?;
write!(file, "This tests if the hashing a file works correctly.")?;
let result_hash = hash_file(file.path())... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/tests/wal_recovery_test.rs | lib/collection/src/tests/wal_recovery_test.rs | use std::sync::Arc;
use common::budget::ResourceBudget;
use common::counter::hardware_accumulator::HwMeasurementAcc;
use common::save_on_disk::SaveOnDisk;
use segment::types::{PayloadFieldSchema, PayloadSchemaType};
use tempfile::Builder;
use tokio::runtime::Handle;
use tokio::sync::RwLock;
use crate::shards::local_s... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/lookup/types.rs | lib/collection/src/lookup/types.rs | use std::fmt::Display;
use segment::data_types::groups::GroupId;
use segment::types::PointIdType;
use uuid::Uuid;
use super::WithLookup;
#[derive(Debug, Clone, PartialEq)]
pub enum WithLookupInterface {
Collection(String),
WithLookup(WithLookup),
}
impl From<api::rest::WithLookupInterface> for WithLookupInt... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/lookup/mod.rs | lib/collection/src/lookup/mod.rs | pub mod types;
use std::collections::HashMap;
use std::time::Duration;
use common::counter::hardware_accumulator::HwMeasurementAcc;
use futures::Future;
use itertools::Itertools;
use segment::types::{PointIdType, WithPayloadInterface, WithVector};
use serde::Serialize;
use shard::retrieve::record_internal::RecordInte... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/collection/state_management.rs | lib/collection/src/collection/state_management.rs | use std::collections::HashSet;
use ahash::AHashMap;
use common::counter::hardware_accumulator::HwMeasurementAcc;
use crate::collection::Collection;
use crate::collection::payload_index_schema::PayloadIndexSchema;
use crate::collection_state::{ShardInfo, State};
use crate::config::CollectionConfigInternal;
use crate::... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/collection/distance_matrix.rs | lib/collection/src/collection/distance_matrix.rs | use std::time::Duration;
use ahash::AHashSet;
use api::rest::{
SearchMatrixOffsetsResponse, SearchMatrixPair, SearchMatrixPairsResponse,
SearchMatrixRequestInternal,
};
use common::counter::hardware_accumulator::HwMeasurementAcc;
use segment::data_types::vectors::DEFAULT_VECTOR_NAME;
use segment::types::{
... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/collection/mmr.rs | lib/collection/src/collection/mmr.rs | use std::time::Duration;
use common::counter::hardware_accumulator::HwMeasurementAcc;
use segment::types::ScoredPoint;
use shard::query::MmrInternal;
use shard::query::mmr::mmr_from_points_with_vector as mmr_from_points_with_vector_impl;
use tokio::runtime::Handle;
use tokio_util::task::AbortOnDropHandle;
use crate::... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/collection/telemetry.rs | lib/collection/src/collection/telemetry.rs | use std::time::Duration;
use common::types::{DetailsLevel, TelemetryDetail};
use crate::collection::Collection;
use crate::operations::types::CollectionResult;
use crate::telemetry::{CollectionConfigTelemetry, CollectionTelemetry};
impl Collection {
pub async fn get_telemetry_data(
&self,
detail:... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/collection/search.rs | lib/collection/src/collection/search.rs | use std::mem;
use std::sync::Arc;
use std::time::Duration;
use ahash::{AHashMap, AHashSet};
use common::counter::hardware_accumulator::HwMeasurementAcc;
use futures::{TryFutureExt, future};
use itertools::{Either, Itertools};
use segment::types::{
ExtendedPointId, Filter, Order, ScoredPoint, WithPayloadInterface, ... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/collection/facet.rs | lib/collection/src/collection/facet.rs | use std::collections::HashMap;
use std::sync::Arc;
use std::time::Duration;
use common::counter::hardware_accumulator::HwMeasurementAcc;
use futures::TryStreamExt;
use futures::stream::FuturesUnordered;
use itertools::Itertools;
use segment::data_types::facets::{FacetParams, FacetResponse, FacetValueHit};
use super::... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/collection/mod.rs | lib/collection/src/collection/mod.rs | mod clean;
mod collection_ops;
pub mod distance_matrix;
mod facet;
pub mod mmr;
pub mod payload_index_schema;
mod point_ops;
pub mod query;
mod resharding;
mod search;
mod shard_transfer;
mod sharding_keys;
mod snapshots;
mod state_management;
mod telemetry;
use std::collections::HashMap;
use std::ops::Deref;
use std:... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | true |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/collection/snapshots.rs | lib/collection/src/collection/snapshots.rs | use std::collections::HashSet;
use std::path::Path;
use std::sync::Arc;
use common::tar_ext::BuilderExt;
use common::tempfile_ext::MaybeTempPath;
use fs_err::File;
use io::file_operations::read_json;
use io::storage_version::StorageVersion as _;
use segment::common::validate_snapshot_archive::open_snapshot_archive_wit... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
qdrant/qdrant | https://github.com/qdrant/qdrant/blob/f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd/lib/collection/src/collection/sharding_keys.rs | lib/collection/src/collection/sharding_keys.rs | use std::collections::HashSet;
use common::counter::hardware_accumulator::HwMeasurementAcc;
use segment::types::ShardKey;
use crate::collection::Collection;
use crate::config::ShardingMethod;
use crate::operations::types::{CollectionError, CollectionResult};
use crate::operations::{
CollectionUpdateOperations, Cr... | rust | Apache-2.0 | f937d0260ffd7705c6f34d9c25da1e27ebf5ddfd | 2026-01-04T15:34:51.524868Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.