feat(es): paginate past 10k documents via pit and search_after

This commit is contained in:
Lan-zk authored and GitHub committed 2026-08-30 03:57:03 +08:00
1 parent 1d71a5fc23
commit 73a7b3f2c7
35 files changed
+1622 -153

No files matched your search

+2
View File
@@ -59,6 +59,7 @@ pub async fn document_find_documents(
sort: Option<String>,
collation: Option<String>,
cursor: Option<String>,
cursor_pagination: Option<bool>,
execution_id: Option<String>,
) -> Result<DocumentQueryResult, String> {
let app = state.inner().clone();
@@ -77,6 +78,7 @@ pub async fn document_find_documents(
sort.as_deref(),
collation.as_deref(),
cursor.as_deref(),
cursor_pagination.unwrap_or(false),
),
)
.await
+1
View File
@@ -138,6 +138,7 @@ pub async fn mongo_find_documents(
sort,
collation,
None,
None,
execution_id,
)
.await