Improved cache memory layout
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
use common::storage::index::{
|
||||
IndexItem, IndexValue, IndexableAndSerializableObject, IndexableObject,
|
||||
};
|
||||
use jmap_proto::types::{collection::Collection, value::AclGrant};
|
||||
use jmap_proto::types::value::AclGrant;
|
||||
use store::SerializeInfallible;
|
||||
|
||||
use crate::{IDX_CARD_UID, IDX_NAME};
|
||||
@@ -89,10 +89,6 @@ impl IndexableObject for ContactCard {
|
||||
+ self.size,
|
||||
},
|
||||
IndexValue::LogChild { prefix: None },
|
||||
IndexValue::LogParent {
|
||||
collection: Collection::AddressBook,
|
||||
ids: self.names.iter().map(|v| v.parent_id).collect::<Vec<_>>(),
|
||||
},
|
||||
]
|
||||
.into_iter()
|
||||
}
|
||||
@@ -120,14 +116,6 @@ impl IndexableObject for &ArchivedContactCard {
|
||||
+ self.size,
|
||||
},
|
||||
IndexValue::LogChild { prefix: None },
|
||||
IndexValue::LogParent {
|
||||
collection: Collection::AddressBook,
|
||||
ids: self
|
||||
.names
|
||||
.iter()
|
||||
.map(|v| v.parent_id.to_native())
|
||||
.collect::<Vec<_>>(),
|
||||
},
|
||||
]
|
||||
.into_iter()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user