Store c_content in sogo_cache_folder as a BLOB

This reduces considerably the query time for that column, which can be
rather large.
This commit is contained in:
Juan Vallés
2015-09-25 12:14:32 +02:00
parent bea2415fad
commit b329513845
2 changed files with 7 additions and 7 deletions
@@ -57,7 +57,7 @@
@" c_lastmodified INT4 NOT NULL,"
@" c_version INT4 NOT NULL DEFAULT 0,"
@" c_deleted SMALLINT NOT NULL DEFAULT 0,"
@" c_content TEXT)");
@" c_content BYTEA)");
return [NSString stringWithFormat: sqlFolderFormat, tableName];
}
@@ -77,7 +77,7 @@
@" c_lastmodified INT NOT NULL,"
@" c_version INT NOT NULL DEFAULT 0,"
@" c_deleted TINYINT NOT NULL DEFAULT 0,"
@" c_content LONGTEXT)");
@" c_content BLOB)");
return [NSString stringWithFormat: sqlFolderFormat, tableName];
}
@@ -97,7 +97,7 @@
@" c_lastmodified INT4 NOT NULL,"
@" c_version INT4 NOT NULL DEFAULT 0,"
@" c_deleted SMALLINT NOT NULL DEFAULT 0,"
@" c_content CLOB)");
@" c_content BLOB)");
return [NSString stringWithFormat: sqlFolderFormat, tableName];
}