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
After deploying to dev-blue, Splunk showed that the init_table log time (which approximates the full reload) dropped 27% against dev-green, the baseline:
measure
dev-green
dev-blue
𝚫
5th percentile
6,442ms
5,952ms
-8%
median
13,347ms
9,695ms
-27%
95th percentile
16,336ms
14,589ms
-10%
This change won't eliminate the issue entirely—9.6s is still much longer than it takes to reload Prediction—so I'm working on more PRs to address the issue.
Interesting! So were there a lot of StopEvents with the same key? That would explain the poor performance with a :bag table type, but then wouldn't that imply that there will be a problem with the :set table type due to :set only allowing one value per key?
Interesting! So were there a lot of StopEvents with the same key? That would explain the poor performance with a :bag table type, but then wouldn't that imply that there will be a problem with the :set table type due to :set only allowing one value per key?
No, the id is unique and enforced in lamp. I think the insert performance is not only proportional to the number of objects with the same key but, by implication, the number of objects. Also, perhaps other performance is also affected by table type?
The reason will be displayed to describe this comment to others. Learn more.
Okay, makes sense. I wish we had a slightly more certain story about what's improving the performance, but since this is a very targeted change that only applies to StopEvents I'm okay with merging it.
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary of changes
🐞 State.StopEvent times out on refresh
This PR adds the option of making a
:settable instead of a:bag. For conservatism, I opted for only allowing:setand:bag.After deploying to
dev-blue, Splunk showed that theinit_tablelog time (which approximates the full reload) dropped 27% againstdev-green, the baseline:This change won't eliminate the issue entirely—9.6s is still much longer than it takes to reload
Prediction—so I'm working on more PRs to address the issue.