Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
prependChanges can result in multiple revisions for a doc in channel cache #3475
When issuing a view query to backfill the channel cache, any results are prepended to the channel cache when the channel cache has room available.
However, the channel cache is not locked between the original query that triggered the view query, and the subsequent prepend. This leaves the possibility of the following:
This won't cause any correctness issues, but can result in additional replication overhead, and sub-optimal cache utilization (other docs could be ejected from the cache in favour of the duplicates).