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

feat: static deep operations #414

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft

feat: static deep operations #414

wants to merge 4 commits into from

Conversation

BobdenOs
Copy link
Contributor

Currently all deep operations are calculated on the fly and rely on reading the current state of the database and calculating the difference. This PR targets to no longer calculate the deep operation every time and instead prepares all action based up on the metadata. Creating a js function for SQLite and a SQL procedure for HANA.

For the INSERT case it is only possible that all deep operations will with INSERT statements as well. As it is required that the root entry does not exist in the database and therefor all compositions cannot exist on the database either.

For the UPDATE and UPSERT case it is required to split it into the correct UPDATE. UPSERT and DELETE queries. As the entries might already exist on the database and require to be removed accordingly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant