From f89a759c189148fa3f3396f6d6b558423f11ef41 Mon Sep 17 00:00:00 2001 From: Julian Mundhahs Date: Sun, 27 Oct 2024 19:33:52 +0100 Subject: [PATCH] expand comment --- src/engine/Server.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/engine/Server.cpp b/src/engine/Server.cpp index c82ac1555a..0e2443a0da 100644 --- a/src/engine/Server.cpp +++ b/src/engine/Server.cpp @@ -601,7 +601,9 @@ Awaitable Server::executeUpdate( }; std::vector> toInsert; std::vector> toDelete; - // Expected result size is size(query result) x num template rows. + // The maximum result size is size(query result) x num template rows. The + // actual result can be smaller if there are template rows with variables for + // which a result row does not have a value. toInsert.reserve(res->idTable().size() * toInsertTemplates.size()); toDelete.reserve(res->idTable().size() * toDeleteTemplates.size()); for (const auto& [pair, range] :