From 35270c57ad1c26c10155bce14b3358323318d245 Mon Sep 17 00:00:00 2001 From: Doug Hoyte Date: Mon, 14 Aug 2023 06:20:35 -0400 Subject: [PATCH] efficiency: not necessary to look up Event table in export --- src/apps/dbutils/cmd_export.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/apps/dbutils/cmd_export.cpp b/src/apps/dbutils/cmd_export.cpp index 0b86de2..f3cac44 100644 --- a/src/apps/dbutils/cmd_export.cpp +++ b/src/apps/dbutils/cmd_export.cpp @@ -41,9 +41,9 @@ void cmd_export(const std::vector &subArgs) { if (lmdb::from_sv(k) > until) return false; } - auto view = lookupEventByLevId(txn, lmdb::from_sv(v)); + auto levId = lmdb::from_sv(v); - std::cout << getEventJson(txn, decomp, view.primaryKeyId) << "\n"; + std::cout << getEventJson(txn, decomp, levId) << "\n"; return true; }, reverse);