-
Notifications
You must be signed in to change notification settings - Fork 8
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 Issues with draftActivate #30
Comments
Hello Nils, Best, |
Dear Nick (@nkaputnik ), |
Hi Nick (@nkaputnik ), almost a year has passed and unfortunately the issue still exists. Do you still consider this plugin as "not ready for productive use"? Thanks, |
Hello @Kkoile Best, |
Please see the pull request I opened yesterday for fixing the performance issues: #126 |
We encountered severe performance issues when activating a draft with sub entities, because of change-tracking plugin.
If a composite object with multiple sub entity instances is activated, each instance is read one by one from the database. See https://github.com/cap-js/change-tracking/blob/main/lib/entity-helper.js#L34
This leads to drastic performance issues in case there are a lot of sub entity instances. We encountered this, because a customer created 1000 sub entity instances and it took around a minute to activate the composite. Without having change-tracking plugin enabled it takes a fraction of a second.
I expect that db requests are reduced as much as possible and instances of one entity are read all together instead of a single instance basis.
The text was updated successfully, but these errors were encountered: