diff --git a/core/DataAccess/Model.php b/core/DataAccess/Model.php
index <HASH>..<HASH> 100644
--- a/core/DataAccess/Model.php
+++ b/core/DataAccess/Model.php
@@ -59,7 +59,7 @@ class Model
                   FROM `$archiveTable`
                  WHERE name LIKE 'done%'
                    AND `value` NOT IN (" . ArchiveWriter::DONE_ERROR . ")
-              GROUP BY idsite, date1, date2, period, name";
+              GROUP BY idsite, date1, date2, period, name HAVING count(*) > 1";
 
         $archiveIds = array();
Minor performance improvement when invalidating archives (#<I>)

Just debugging some memory issues around archiving and noticed here it returned in one case over <I>K rows. When adding the count > 1 it returned only <I> rows. This should make it a lot faster and consume bit less memory etc. It's only a minor tweak though.