Database schema optimization - part 3

This commit is contained in:
mdecimus
2025-11-01 19:19:36 +01:00
parent d5c5f12adf
commit 8e1316895b
41 changed files with 1979 additions and 1276 deletions

View File

@@ -26,7 +26,6 @@ use trc::AddContext;
use types::{
acl::AclGrant,
collection::{Collection, SyncCollection},
field::CalendarNotificationField,
};
use utils::map::bitmap::Bitmap;
@@ -128,7 +127,6 @@ pub(super) async fn build_calcard_resources(
}
}
let todo = "fix fdb range scan to support chunked reads";
let parent_range = cache.resources.len();
server
.archives(account_id, item_collection, &(), |document_id, archive| {

View File

@@ -339,7 +339,7 @@ impl ArchivedCalendarEvent {
pub fn index_document(&self) -> IndexDocument {
let mut document = IndexDocument::with_default_language(Language::Unknown);
document.index_number(CalendarSearchField::Start, self.data.event_range_start());
document.index_integer(CalendarSearchField::Start, self.data.event_range_start());
for component in self
.data

View File

@@ -245,7 +245,7 @@ impl ArchivedContactCard {
pub fn index_document(&self) -> IndexDocument {
let mut document = IndexDocument::with_default_language(Language::Unknown);
document.index_number(ContactSearchField::Created, self.created.to_native());
document.index_integer(ContactSearchField::Created, self.created.to_native());
for entry in self.card.entries.iter() {
let field = match entry.name {