This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Store state groups separately from events #2784
Merged
Merged
Changes from 1 commit
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
cb222e2
Split state group persist into seperate storage func
erikjohnston 0f18d58
Add per database engine code for state group id gen
erikjohnston c8c8f53
Move store_state_group to StateReadStore
erikjohnston 1b2af72
Hook up store_state_group
erikjohnston 2fdf245
Fix tests
erikjohnston e66f2c3
Rename _store_mult_state_groups_txn
erikjohnston 693ea27
Rename StateGroupReadStore
erikjohnston a742398
Remove redundant _have_persisted_state_group_txn
erikjohnston 90cd2e6
Update comments
erikjohnston c695725
Comment compute_event_context
erikjohnston 22be520
Set start val for state_group_id_seq
richvdh 2694524
Update comments
erikjohnston 7018b68
Don't store state for outliers
erikjohnston a6b415c
Update comment
erikjohnston 4a72132
Update docstring as state groups are ints
erikjohnston File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -744,7 +744,7 @@ def _persist_events_txn(self, txn, events_and_contexts, backfilled, | |
|
||
# Insert into the state_groups, state_groups_state, and | ||
# event_to_state_groups tables. | ||
self._store_mult_state_groups_txn(txn, events_and_contexts) | ||
self._store_event_state_mappings_txn(txn, events_and_contexts) | ||
|
||
# _store_rejected_events_txn filters out any events which were | ||
# rejected, and returns the filtered list. | ||
|
@@ -982,7 +982,7 @@ def _update_outliers_txn(self, txn, events_and_contexts): | |
# insert into the state_group, state_groups_state and | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ditto |
||
# event_to_state_groups tables. | ||
try: | ||
self._store_mult_state_groups_txn(txn, ((event, context),)) | ||
self._store_event_state_mappings_txn(txn, ((event, context),)) | ||
except Exception: | ||
logger.exception("") | ||
raise | ||
|
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this comment is misleading now