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

Fix to #28595 - Use partial updates for JSON #28844

Merged
merged 1 commit into from
Aug 24, 2022

Commits on Aug 24, 2022

  1. Fix to #28595 - Use partial updates for JSON

    Currently, whenever we update/add/delete part of aggregate mapped to JSON column, we were replacing the entire structure.
    Improvement is to use JSON_MODIFY which can alter just a portion of JSON structure, give a JSON path.
    We analyze the entries that are being edited and for each JSON column we find the common denominator that needs to be replaced to accommodate all the requested changes
    
    Note: Whenever we add/remove element from a collection we need to replace the entire collection in order to populate ordinal key values properly.
    Also, modifying a single property is not yet supported - the smallest fragment that will be replaced is one that represents an entity.
    
    Fixes #28595
    maumar committed Aug 24, 2022
    Configuration menu
    Copy the full SHA
    7ee6e83 View commit details
    Browse the repository at this point in the history