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
Create indexed CompareCollectionExpression when left and right parts … #1089
Create indexed CompareCollectionExpression when left and right parts … #1089
Conversation
…are indexed attributes
Thanks for your contributions. |
Ok, it is not as simple as I thought :) I will close this PR and rework on the changes. |
I limited the use of an indexed CompareCollection expression to the EQUAL operator. Let's take test IndexTableTestCase.indexTableTest21(), with siddhi 4.4.0, the method ExhaustiveCollectionExecutor.contains() is called when the first event ( |
@debelyoo we are working on some improvements related to this. We'll look into this with that. If the above changes are work for your use cases then please go ahead. We'll come with an update soon. Thanks for ur contribution. |
@mohanvive thanks for your answer. Is there any branch or PR about the work you are doing on this subject ? I would be interested in following your work. |
Sorry for the late @debelyoo . Will update you within today... |
@debelyoo I have spent few hours to identify the root cause for the test failures that encountered with this PR. Then we have figured out issue #1134 is causing the problem/exception. I believe, the issue that you raised in #1088 should also get resolved with the fix that we made in the PR #1135. Can you please try out the test with the fix that we made? Please share the outcome. BTW, we are interested to get to know more about your work then we could help you through our dev mailing list (https://groups.google.com/forum/#!forum/siddhi-dev) as well. Shall we have a quick call to understand your use cases? That will also help us to improve the capabilities of the Siddhi and define the proper roadmap for the project. |
@debelyoo Have you got a chance to check this? |
@mohanvive Thanks for having looked at it. |
@debelyoo Actually we are doing some major improvements in the master (5.0.0-SNAPSHOT), it will take few weeks to complete that and do a release. We can do a release in 4.4.X with above fixes and some improvements on Tomorrow. Is that enough for you? Regarding the call, sure we can have it. I can also update on Siddhi roadmap and plans as well. I am in IST timezone. Can you please suggest a few possible time slots and email address then I could send a calendar invite. |
Yes, that would be fine for me. Thanks ! |
…are indexed attributes
Purpose
When using an indexed in-memory table, and updating records in it, the performance decreases as the table size increases.
The problem is related to the creation of the CompareCollectionExpression which is used by the update operation on the in-memory table.
The collection executor which is created by parsing the collection expression has an EXHAUSTIVE scope instead of an INDEXED_RESULT_SET scope. And thus, any ‘find’ operation, iterates over all elements of the table.
Goals
Fix #1088
Approach
All details are in Issue #1088
Release note
Use indexed CompareCollectionExpression when left and right parts are indexed attributes
Documentation
N/A
Automation tests
N/A
Security checks
N/A