Skip to content

Conversation

@m4dcoder
Copy link
Contributor

To improve database performance, convert stormbase.EscapedDictField to mongoengine.DictField and stormbase.EscapedDynamicField to mongoengine.DynamicField in workflow and task execution DB models. An escaped field requires additional step to read from and write to the database.

@m4dcoder m4dcoder added this to the 3.2.0 milestone Jan 29, 2020
@pull-request-size pull-request-size bot added the size/S PR that changes 10-29 lines. Very easy to review. label Jan 29, 2020
@m4dcoder m4dcoder requested a review from Kami January 29, 2020 06:46
Copy link
Member

@arm4b arm4b left a comment

Choose a reason for hiding this comment

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

LGTM

Left one minor improvement comment.

before returning error to the end user. #4834
* Upgrade ``pymongo`` to the latest stable version (``3.10.0.``). #4835 (improvement)
* Remove `.scrutinizer.yml` config file. No longer used.
* Convert escaped dict and dynamic fields in workflow db models to normal dict and dynamic fields.
Copy link
Member

Choose a reason for hiding this comment

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

Please include a note that it's performance optimization, which is not clear from the current changelog description.
IMO it's important to communicate perf. enhancements explicitly as they're really "high valued" improvements our users will be happy to find.

To improve database performance, convert stormbase.EscapedDictField to mongoengine.DictField and stormbase.EscapedDynamicField to mongoengine.DynamicField in workflow and task execution DB models. An escaped field requires additional step to read from and write to the database.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement performance size/S PR that changes 10-29 lines. Very easy to review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants