-
Notifications
You must be signed in to change notification settings - Fork 53
Persistence efficiency do less: don't persist policies/enrichers with entity #964
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
Conversation
geomacy
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good; just had a couple of minor thoughts
| addReferencedObjects(prevDeltaCollector); | ||
| } | ||
|
|
||
| if (LOG.isTraceEnabled()) LOG.trace("Checkpointing delta of memento with references: " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's move this LOG into the if above
| this.persistPoliciesEnabled = BrooklynFeatureEnablement.isEnabled(BrooklynFeatureEnablement.FEATURE_POLICY_PERSISTENCE_PROPERTY); | ||
| this.persistEnrichersEnabled = BrooklynFeatureEnablement.isEnabled(BrooklynFeatureEnablement.FEATURE_ENRICHER_PERSISTENCE_PROPERTY); | ||
| this.persistFeedsEnabled = BrooklynFeatureEnablement.isEnabled(BrooklynFeatureEnablement.FEATURE_FEED_PERSISTENCE_PROPERTY); | ||
| this.persistReferencedObjectsEnabled = BrooklynFeatureEnablement.isEnabled(BrooklynFeatureEnablement.FEATURE_REFERENCED_OBJECTS_PERSISTENCE_PROPERTY); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
might be worth naming this rePersistReferencedObjectsEnabled as its behaviour is different from the flags above, isn't it - they disable persistence of feeds etc. entirely, whereas this just disables the periodic re-persistence. See comment on 542 below.
| addReferencedObjects(instance); | ||
| } | ||
|
|
||
| private void addReferencedObjects(BrooklynObject instance) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could this be called something different to distinguish it from the addReferencedObjects at 365, to highlight the different use? What do you think - addReferencedObjectsForInitialPersist or something?
|
Thanks @geomacy - good comments; all changes incorporated in an additional commit. |
tbouron
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No description provided.