logic: improved performance of storing index to database
* add compiled statement for batch inserting 100 occurrences at once * removed unnecessary primary key from component_access to get rid of additional index table * changed explicit check for existing symbols when injecting to implicit check in insert statement (insert or ignore) * improved performance of adding edges by replacing edge multi part index with in-memory-index * added in-memory-index for node table * added in-memory-index for local_symbol table * added in-memory-index for lource_location table * moved setting storage mode to SqliteIndexStorage, because storage modes are not used anywhere else. * don't store current mode as member because re-creating an existing index takes no time. * add getter for name of SqliteDatabaseIndex * removed unused method from persistent storage
This commit is contained in:
@@ -194,7 +194,7 @@ void Project::load(std::shared_ptr<DialogView> dialogView)
|
||||
|
||||
if (canLoad)
|
||||
{
|
||||
m_storage->setMode(SqliteStorage::STORAGE_MODE_READ);
|
||||
m_storage->setMode(SqliteIndexStorage::STORAGE_MODE_READ);
|
||||
m_storage->buildCaches();
|
||||
m_storageCache->setSubject(m_storage);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user