Issue Bug Closed

#107819GreedyDataBaseBackend RuntimeCache can grow very large

Nikita Hovratov 10/23/25, 16:07 updated 03/31/26, 09:00

Description

Scenario:

There are a lot of Records, which should be resolved by RecordFactory. Each of these Records has a Relation to one File.
Now, each time a File should be resolved, GreedyDataBaseBackend stores the result in the runtimeCache. And as the uid of the FileReferences are all different, a new entry in the cache is created.

So, for 1000 Records with 1000 File Relations, this results in a runtime cache with 1.000.000 database rows.

This leads to a memory limit fairly fast. Removing the runtime cache altogether reduces memory limit significantly. For example for 500 Records this will reduce memory peak from 800MB to 75MB.

Reviews 2

History 412

  1. Nikita Hovratov commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2026-03-11T19:10:09+00:00" > 03/11/26, 19:10 </span>

    Applied in changeset commit:a67be9c7af1d59ef19df7b853a1725018068408b.