-
Notifications
You must be signed in to change notification settings - Fork 529
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Localized state management, and improved partition #1158
Merged
Merged
Conversation
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
Removing cloning of query and other Siddhi operations for partitioning and allow each Siddhi element to handle a collection of state based on partition and group id. This also allow each Siddhi element to clean it's state appropriately. Making Siddhi to snapshot the data having partition and group ids as the root elements, allowing easy data migration in the future. Node: Though this implementation improve memory management it can introduce performance degradation due to multiple hash map lookups.
Remove redundant state management in SingleStateHolder and remove redundant synchronizations. Improve length window and filter query performance to Siddhi 4.x level
Introduce synchronised and unsafe state holders.
Introduce synchronised and unsafe state holders.
Remove Stream and State Event Pools They are not used anymore
# Conflicts: # modules/siddhi-core/src/main/java/io/siddhi/core/util/collection/operator/IncrementalAggregateCompileCondition.java
Codecov Report
@@ Coverage Diff @@
## master #1158 +/- ##
===========================================
+ Coverage 60.13% 61.33% +1.2%
Complexity 35 35
===========================================
Files 612 617 +5
Lines 24937 24711 -226
Branches 3754 3841 +87
===========================================
+ Hits 14996 15157 +161
+ Misses 8709 8268 -441
- Partials 1232 1286 +54
Continue to review full report at Codecov.
|
with following syntax @purge(enable='true', interval='1 sec', retention.period='1 sec') partition with (symbol of streamA) begin @info(name = 'query1') from streamA#window.length(3) select symbol, avg(price) as total insert into StockQuote; end
Also improve readability of SnapshotService
Make it to output the first event as soon as it arrives.
Make it to output the first event as soon as it arrives.
This was referenced Apr 1, 2019
mohanvive
approved these changes
Apr 1, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Purpose
Goals
Approach
Release note
Documentation