Skip to content

Commit

Permalink
feature: add order_by key for getting all chunks in a group, make the
Browse files Browse the repository at this point in the history
route faster
  • Loading branch information
cdxker committed Dec 13, 2024
1 parent 598b134 commit c0b3c3b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/src/operators/group_operator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1078,6 +1078,7 @@ pub async fn get_chunk_point_ids_in_chunk_group_query(
.filter(chunk_metadata_columns::dataset_id.eq(dataset_id))
.select(chunk_metadata_columns::qdrant_point_id)
.offset(((page - 1) * limit).try_into().unwrap_or(0))
.order(chunk_metadata_columns::id)
.limit(limit.try_into().unwrap_or(10))
.load::<uuid::Uuid>(&mut conn)
.await
Expand Down

0 comments on commit c0b3c3b

Please sign in to comment.