Database schema optimization - part 3
This commit is contained in:
2
crates/groupware/src/cache/calcard.rs
vendored
2
crates/groupware/src/cache/calcard.rs
vendored
@@ -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| {
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user