-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
115201: obsservice: create batches for insert insights r=maryliag a=maryliag Note to reviewers: The values for 100 Insights and the at least 1 minute are random for now. Later we can check if another value makes more sense. --- Previously, all insights were being inserted as soon as exported to obsservice. This commit introduces a cache to batch insights and do less inserts. When the caches reaches 100 entries or it has been at least a minute since last insert, we do an insert. Fixes CC-26215 Demo: https://www.loom.com/share/ecf706d41155484eb2fd532414a4f7b6 Release note: None Co-authored-by: maryliag <[email protected]>
- Loading branch information
Showing
3 changed files
with
128 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters