data: increased project load and codeview performance

* rewrote searchnode to use map
* added local cache for parent node ids when creating the Hierarchy Cache.
* added indices to SqliteStorage to increase code view performance.
This commit is contained in:
malte_langkabel
2016-03-14 12:32:01 +01:00
parent 53d5fe6a06
commit f82da323b3
8 changed files with 85 additions and 32 deletions
+21
View File
@@ -0,0 +1,21 @@
#ifndef SQLITE_INDEX_H
#define SQLITE_INDEX_H
#include <string>
#include "sqlite/CppSQLite3.h"
class SqliteIndex
{
public:
SqliteIndex(const std::string& indexName, const std::string& indexTarget);
~SqliteIndex();
void createOnDatabase(CppSQLite3DB& database);
void removeFromDatabase(CppSQLite3DB& database);
private:
std::string m_indexName;
std::string m_indexTarget;
};
#endif // SQLITE_INDEX_H