logic: improved performance of storing index to the database
* batch inject occurrences * removed unnecessary destructor and keywords from storages
This commit is contained in:
@@ -46,10 +46,6 @@ PersistentStorage::PersistentStorage(const FilePath& dbPath, const FilePath& boo
|
||||
m_commandIndex.finishSetup();
|
||||
}
|
||||
|
||||
PersistentStorage::~PersistentStorage()
|
||||
{
|
||||
}
|
||||
|
||||
Id PersistentStorage::addNode(const StorageNodeData& data)
|
||||
{
|
||||
const StorageNode storedNode = m_sqliteIndexStorage.getNodeBySerializedName(data.serializedName);
|
||||
@@ -128,6 +124,11 @@ void PersistentStorage::addOccurrence(const StorageOccurrence& data)
|
||||
m_sqliteIndexStorage.addOccurrence(data);
|
||||
}
|
||||
|
||||
void PersistentStorage::addOccurrences(const std::vector<StorageOccurrence>& occurrences)
|
||||
{
|
||||
m_sqliteIndexStorage.addOccurrences(occurrences);
|
||||
}
|
||||
|
||||
void PersistentStorage::addComponentAccess(const StorageComponentAccessData& data)
|
||||
{
|
||||
m_sqliteIndexStorage.addComponentAccess(data);
|
||||
|
||||
Reference in New Issue
Block a user