You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Evaluate and port the behaviour from Kpa-clawbot/CoreScope#2059: coalesce concurrent cache misses for GetChannels and GetEncryptedChannels so one cold/expired key causes one SQLite query rather than one query per request.
Why this is still relevant here
Current fork master still has no channel-query singleflight. GetChannels uses a 60-second cache, but concurrent callers can all miss before the first result is stored. GetEncryptedChannels follows a separate query path.
Upstream source
Evaluate and port the behaviour from Kpa-clawbot/CoreScope#2059: coalesce concurrent cache misses for
GetChannelsandGetEncryptedChannelsso one cold/expired key causes one SQLite query rather than one query per request.Why this is still relevant here
Current fork master still has no channel-query
singleflight.GetChannelsuses a 60-second cache, but concurrent callers can all miss before the first result is stored.GetEncryptedChannelsfollows a separate query path.This fork has diverged from upstream:
Do not cherry-pick blindly. Preserve those behaviours and adapt request coalescing to the current cache contract.
Acceptance criteria
GetChannelsquery.GetEncryptedChannelsquery.-raceand measure cold concurrent behaviour before and after.No deploy is part of this issue.