Revert "Store c_content in sogo_cache_folder as a BLOB"

This reverts commit b329513845. It was
causing issues and we'll need to do more testing on this optimisation.
This commit is contained in:
Juan Vallés
2015-10-16 12:08:50 +02:00
parent fb7e044bd3
commit 498cec767b
2 changed files with 7 additions and 7 deletions
+4 -4
View File
@@ -152,7 +152,7 @@ static EOAttribute *textColumn = nil;
- (void) setupFromRecord: (NSDictionary *) record
{
NSInteger intValue;
NSData *content;
NSString *propsValue;
NSDictionary *newValues;
objectType = [[record objectForKey: @"c_type"] intValue];
@@ -166,10 +166,10 @@ static EOAttribute *textColumn = nil;
dateWithTimeIntervalSince1970: (NSTimeInterval) intValue]);
deleted = ([[record objectForKey: @"c_deleted"] intValue] > 0);
version = [[record objectForKey: @"c_version"] intValue];
content = [record objectForKey: @"c_content"];
if ([content isNotNull])
propsValue = [record objectForKey: @"c_content"];
if ([propsValue isNotNull])
{
newValues = [[content dataByDecodingBase64] BSONValue];
newValues = [[propsValue dataByDecodingBase64] BSONValue];
[properties addEntriesFromDictionary: newValues];
}
else