From 80c2ac8b750d0b6460cdeb0d114f5cd77fbca725 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Tue, 4 Oct 2016 11:54:19 +0200 Subject: Only call fetch once on the aggregate fetcher. Otherwise we end up executing the initial query multiple times. --- common/store.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/store.cpp b/common/store.cpp index f5a7774..a1b3c17 100644 --- a/common/store.cpp +++ b/common/store.cpp @@ -371,12 +371,12 @@ QList Store::read(const Sink::Query &q) SinkWarning() << "Null emitter for resource " << resourceInstanceIdentifier; } result.first.exec(); - aggregatingEmitter->fetch(typename DomainType::Ptr()); } else { SinkTrace() << "Couldn't find a facade for " << resourceInstanceIdentifier; // Ignore the error and carry on } } + aggregatingEmitter->fetch(typename DomainType::Ptr()); return list; } -- cgit v1.2.3