Add database optimizations for photo search and pagination

Implement database-level sorting with composite indexes for efficient date and tag queries. Add pagination metadata support and optimize tag count queries using batch processing.
This commit is contained in:
Cameron committed 2026-01-18 19:17:10 -05:00
1 parent 5e646dfc19
commit be483c9c1a
7 files changed
+519 -96

No files matched your search

+3
View File
@@ -527,6 +527,9 @@ async fn favorites(
HttpResponse::Ok().json(PhotosResponse {
photos: favorites,
dirs: Vec::new(),
total_count: None,
has_more: None,
next_offset: None,
})
}
Ok(Err(e)) => {