avoid frequantly syncing stats simultaneously
- Dominant language
- Go
- Stars
- 40.5k
- Forks
- 6.2k
- PR merge metrics
- PR metrics pending
Description
## Enhancement
Now, ```StatsCacheImpl.Update``` can sync stats by version from the storage. we have many scenarios to call it. such as ```domain.loadStatsWorker``` and ```Analyze```. When customers use lightning, lightning will trigger the multi-analyzed tasks simultaneously. so it also triggers multi ```
StatsCacheImpl.Update``` simultaneously. it is unnecessary.
Contributor guide
Research direction
Trace StatsCacheImpl.Update and its callers, especially domain.loadStatsWorker and Analyze, to understand how simultaneous stats synchronization is triggered during Lightning multi-analyzed tasks. Determine the intended coordination behavior and verify that concurrent callers no longer cause unnecessary repeated version-based syncs from storage.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- databases
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100