rnewson commented on code in PR #5716:
URL: https://github.com/apache/couchdb/pull/5716#discussion_r2467089720


##########
src/couch/src/couch_auto_purge_plugin.erl:
##########
@@ -47,7 +47,7 @@ checkpoint(_St) ->
 db(St, DbName) ->
     case ttl(St, DbName) of
         TTL when is_integer(TTL) ->
-            {ok, St#{ttl => TTL}};
+            {ok, St#{ttl => TTL, db_name => DbName, db_n => mem3:n(DbName)}};

Review Comment:
   I get that, but mem3:shards reads cached data and we only flush when we 
reach or exceed min_batch_size. perhaps mem3:shards should move from ETS to 
persistent_term given how infrequently the shard map of a given database 
changes?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to