Merge pull request #139 from gbw/database_level_filtering

Optimize search service with database-level pagination and improve cache handling
This commit is contained in:
Dionisio Pozo
2026-02-22 09:47:09 +01:00
committed by GitHub
6 changed files with 505 additions and 28 deletions
+18
View File
@@ -137,6 +137,24 @@ impl FileReadPort for StubFileReadPort {
async fn get_blob_hash(&self, _file_id: &str) -> Result<String, DomainError> {
Ok(String::new())
}
async fn search_files_paginated(
&self,
_folder_id: Option<&str>,
_criteria: &SearchCriteriaDto,
_user_id: &str,
) -> Result<(Vec<File>, usize), DomainError> {
Ok((Vec::new(), 0))
}
async fn count_files(
&self,
_folder_id: Option<&str>,
_criteria: &SearchCriteriaDto,
_user_id: &str,
) -> Result<usize, DomainError> {
Ok(0)
}
}
// ---------------------------------------------------------------------------