From e30cbf9fef8922abef4cc44ad8628d4eef5d28a9 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 23 Aug 2025 19:26:59 +0100 Subject: Track existing entities, don't attempt reinsert This is an ever growing set, but in theory should be finite, and is only 4bytes per entity. --- src/ingestor.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/ingestor.hpp') diff --git a/src/ingestor.hpp b/src/ingestor.hpp index 53ba81f..458b941 100644 --- a/src/ingestor.hpp +++ b/src/ingestor.hpp @@ -4,6 +4,7 @@ #include #include #include +#include #include namespace WebStat { @@ -39,6 +40,7 @@ namespace WebStat { private: template size_t storeEntities(const std::tuple &) const; + mutable std::flat_set existingEntities; uint32_t hostnameId; DB::ConnectionPtr dbconn; }; -- cgit v1.2.3