You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by "nickva (via GitHub)" <gi...@apache.org> on 2026/03/07 06:20:06 UTC

[PR] Avoid creating purge checkpoints for invalid views [couchdb]

nickva opened a new pull request, #5913:
URL: https://github.com/apache/couchdb/pull/5913

   Previously, if we successfully parsed a design document into an #mrst{} record, we would create a purge checkpoint even if the view group didn't have any views, or used an invalid language. Normally, having extra unused checkpoints around would be just bit untidy, however, when we start purging, these checkpoints won't be advancing, and after a while prevent the compactor from compacting the purge sequences and advancing the minimum purge sequence forward.
   
   In other words, we need to differentiate between pars-able #mrst{} view groups and those that can actually build on a particular node. Ken (our background index builder) was already performing the same check, so simply move the check to the proc manager and the the indexing utility modules so it can be reused.
   
   In the proc manager, noticed that the repeated OS environment fetching and parsing was kind of time consuming (100s of microseconds) so used a persistent term.
   


-- 
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: notifications-unsubscribe@couchdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Avoid creating purge checkpoints for invalid views [couchdb]

Posted by "nickva (via GitHub)" <gi...@apache.org>.
nickva merged PR #5913:
URL: https://github.com/apache/couchdb/pull/5913


-- 
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: notifications-unsubscribe@couchdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org