data: optimize memory of sqlite database

* use sqlite "VACUUM" after analysis to reduce memory size
* only add filename to name of local symbol
This commit is contained in:
Eberhard Graether
2016-05-31 15:49:12 +02:00
parent da01855b68
commit ab43d309cb
7 changed files with 27 additions and 3 deletions
+5
View File
@@ -360,6 +360,11 @@ void PersistentStorage::finishParsing()
optimizeFTSTable();
}
void PersistentStorage::optimizeMemory()
{
m_sqliteStorage.optimizeMemory();
}
Id PersistentStorage::getIdForNodeWithNameHierarchy(const NameHierarchy& nameHierarchy) const
{
return m_sqliteStorage.getNodeBySerializedName(NameHierarchy::serialize(nameHierarchy)).id;