Skip to content
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

Performance optimizations for Multi-Assignments #858

Conversation

stefbehl
Copy link
Contributor

This pull request delivers a couple of performance improvements for the new Multi-Assignments feature. The improvements are mainly part of the repository layer and try to optimize the database access calls needed for Multi-Assignments (by reducing the DB calls and by using better queries).

Signed-off-by: Stefan Behl [email protected]

stefbehl and others added 7 commits May 22, 2019 16:18
Signed-off-by: Stefan Behl <[email protected]>
* simplified method
* Use @ExpectedEvents instead of EventHandlerStubs
* removed @param from 'existsByTargetControllerIdAndStatusAndActiveIsTrue'
* reverted metadata initialization

Signed-off-by: Ahmed Sayed <[email protected]>
Signed-off-by: Stefan Behl <[email protected]>
}

@Test
@Description("Multiple deployments or distribution set to target assignment test. Expected behaviour is that a new deployment "
+ "overides unfinished old one which are canceled as part of the operation.")
@ExpectEvents({ @Expect(type = TargetCreatedEvent.class, count = 5 + 4),
@ExpectEvents({@Expect(type = TargetCreatedEvent.class, count = 5 + 4),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Double-check if event stubs can really be removed

@schabdo schabdo added this to the 0.3.0M5 milestone Jul 1, 2019
@stefbehl stefbehl merged commit 4e9308a into eclipse-hawkbit:master Jul 19, 2019
@stefbehl stefbehl deleted the feature_multi_assignments_optimizations branch July 19, 2019 12:47
AmmarBikic pushed a commit to bosch-io/hawkbit that referenced this pull request Oct 2, 2020
* Add remote event test for the new MultiActionEvent
* Improve test descriptions
* Improve sendMultiActionRequestMessages
* Moved action filtering to the database query level (#12)
* Use @ExpectedEvents instead of EventHandlerStubs
* Removed @param from 'existsByTargetControllerIdAndStatusAndActiveIsTrue'
* Reverted metadata initialization
* Fix hawkBit bot findings

Signed-off-by: Stefan Behl <[email protected]>
Signed-off-by: Ahmed Sayed <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants