From 5e6f5c0d4c2bd100554a31e82e0f371ce572a900 Mon Sep 17 00:00:00 2001 From: Guus der Kinderen Date: Tue, 10 Dec 2024 12:04:01 +0100 Subject: [PATCH] fixes #409: Prevent loading all archived messages in memory when indexing When iterating over all rows of a potentially large table, ensure that the database result set is configured to be 'linear' (forward-only and read-only). This gives a better chance of the database driver to release all rows that have been iterated over, which prevents the fetch buffer to eventually include all rows (and potentially cause out-of-memory issues). --- changelog.html | 1 + .../reucon/openfire/plugin/archive/impl/MucIndexer.java | 9 +++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/changelog.html b/changelog.html index 7943f6f41..90c29a2e1 100644 --- a/changelog.html +++ b/changelog.html @@ -48,6 +48,7 @@