-
Notifications
You must be signed in to change notification settings - Fork 142
[java] Add tips and tricks section #2369
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
base: main
Are you sure you want to change the base?
Conversation
java/change-tracking.md
Outdated
|
|
||
| ## Tips and Tricks | ||
|
|
||
| ### Entities from imported services |
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.
should this section rather focus on avoid expensive joins by providing the foreign key to associated entities instead of associated entity values (example with user name)? The name can be resolved when reading the logs on basis of the id.
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.
We never documented the runtime manipulation of changelog.
I could add a little explainer. Something like: if you need custom identifier, write an handler...
BraunMatthias
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.
I think the remote scenario is not valid - it's rather about how to deal with associated entities with best possible performance. User (as Remote) would be a nice example: the user.id FK can be resolved at READ time of the ChangeLog, but creation of logs would be much cheaper if no join is required to Users.
| @@ -440,9 +440,8 @@ You can query the change log entries via CQN statements, as usual. | |||
|
|
|||
| ### Entities from Remote Services | |||
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.
Optimize Changelogs for Associated Entities
Opens a FAQ section with one nasty corner-case that we discovered internally. Just so we can later reference to it.