=== modified file 'src/com/goldencode/p2j/persist/FastFindCache.java'
--- old/src/com/goldencode/p2j/persist/FastFindCache.java
+++ new/src/com/goldencode/p2j/persist/FastFindCache.java
@@ -69,6 +69,8 @@
 ** 025 AS  20261103 Added putUniqueMiss() and isUniqueMiss(), a unique-key miss proving an index unique.
 **                  Misses are kept apart from query results; invalidateQueries() spares them. They honor
 **                  the disabled switch and the invalidation generation.
+** 026 SP  20261110 Temp-table instances size their L2/L3 maps from the TT-L2/TT-L3 cache sizes (default 10
+**                  and 100), not from the L2/L3 sizes of the permanent databases.
 */
 
 /*
@@ -161,9 +163,11 @@
  * lookup tables - it is used as a key leading to appropriate cache instance.
  * <p>
  * The first two levels of cache size are not limited. They are the table and indexes unique ids and are
- * stable, governed by database structure. Only the very last level is an actual {@code LRUCache} object
- * whose size will need to be configured based on how many records should be cached for each index of a
- * table. However, since the invalidation of the cache will occur quite often, the value can be kept small.
+ * stable, governed by database structure. The L3 maps are not limited either: the LRU cache of the reverse
+ * lookup (cache size discriminator {@code ReverseLookup}) bounds the number of results cached by an
+ * instance and removes the evicted results from their L3 maps. The cache sizes with the discriminators
+ * {@code L2} and {@code L3} (permanent databases) and {@code TT-L2} and {@code TT-L3} (temp-tables) are only
+ * the initial capacities of the L2 and L3 maps.
  * <p>
  * Cache Invalidation: the cache is individually invalidated for each affected index when a record is updated.
  * On insert and delete operations all indices are invalidated for respective table. On a rollback event all
@@ -235,7 +239,13 @@
 
    /** Invalidation generation: incremented by every invalidation (see {@link #put(Key, Record, long)}). */
    private final AtomicLong generation = new AtomicLong();
-   
+
+   /** Cache size discriminator of the initial capacity of the L2 maps (index id to L3 map). */
+   private final String l2Discriminator;
+
+   /** Cache size discriminator of the initial capacity of the L3 maps (key to cached result). */
+   private final String l3Discriminator;
+
    /**
     * Constructor for internal use.
     *
@@ -247,7 +257,13 @@
       this.isPermanent = isPermanent;
       this.database  = database;
       this.disabled  = isPermanent && !permanentEnabled;
-      
+
+      // A temp-table drops its L2/L3 maps whenever its multiplex scope closes, so sizing them like the
+      // long-lived maps of a permanent database allocates a large table for every scope. The "!" prefix
+      // stops CacheManager from falling back to a size configured for this class without a discriminator.
+      this.l2Discriminator = isPermanent ? "L2" : "!TT-L2";
+      this.l3Discriminator = isPermanent ? "L3" : "!TT-L3";
+
       if (disabled && disabledLogged.compareAndSet(false, true))
       {
          LOG.info("FastFindCache for permanent databases disabled (setting " + ENABLED_NODE + ")");
@@ -876,18 +892,16 @@
     */
    private void putImpl(Key k, Record value)
    {
-      // There are multiple configured sizes for the caches, the discriminator for the
-      // L2 and L3 caches should not be changes since it is must be the same one
-      // used in the directory configuration.
+      // The discriminators name the cache sizes in the directory configuration, so they must not change.
       Map<Integer, Map<L2Key, FastFindCacheEntry>> l2Cache =
          cache.computeIfAbsent(k.tableId, x -> CacheManager.createLinkedMapCache(FastFindCache.class,
-                                                                                 "L2",
+                                                                                 l2Discriminator,
                                                                                  10));
 
       Map<L2Key, FastFindCacheEntry> l3Cache =
          l2Cache.computeIfAbsent(k.indexId, x -> CacheManager.createResizableMapCache(FastFindCache.class,
-                                                                             "L3",
-                                                                             100));
+                                                                                      l3Discriminator,
+                                                                                      100));
 
       // for a positive result (i.e., a record was found), ensure we use the canonical instance of the
       // record identifier, so that if it is stored in the reverse lookup cache, the weak keys can be
