logic: Improved performance of depending file path retrieval for refresh

This commit is contained in:
Eberhard Graether
2016-12-02 11:01:48 +01:00
parent 163f3238ce
commit 32c2906bf0
4 changed files with 49 additions and 25 deletions
+5
View File
@@ -514,6 +514,11 @@ std::vector<StorageEdge> SqliteStorage::getEdgesByTargetType(Id targetId, int ty
return getAll<StorageEdge>("WHERE target_node_id == " + std::to_string(targetId) + " AND type == " + std::to_string(type));
}
std::vector<StorageEdge> SqliteStorage::getEdgesByTargetType(const std::vector<Id>& targetIds, int type) const
{
return getAll<StorageEdge>("WHERE target_node_id IN (" + utility::join(utility::toStrings(targetIds), ',') + ") AND type == " + std::to_string(type));
}
StorageNode SqliteStorage::getNodeById(Id id) const
{
if (id != 0)