Thanks to visit codestin.com
Credit goes to github.com

Skip to content

package update performance fix with resource purge (backport)#7219

Merged
smotornyuk merged 2 commits into
dev-v2.9from
7119-package_update-perf-purge-backport
Dec 8, 2022
Merged

package update performance fix with resource purge (backport)#7219
smotornyuk merged 2 commits into
dev-v2.9from
7119-package_update-perf-purge-backport

Conversation

@wardi
Copy link
Copy Markdown
Contributor

@wardi wardi commented Nov 17, 2022

Fixes #7119

Proposed fixes:

same as #7122

Original approach of #7121 triggers errors after updating a dataset 3 times because some resource rows no longer have a value for required FK package_id.

As discussed on last dev call @smotornyuk might have a less invasive approach than this one for backporting. If an alternate approach isn't chosen I think this is an important enough issue to consider the same change proposed for master in #7122

@smotornyuk
Copy link
Copy Markdown
Member

smotornyuk commented Dec 8, 2022

I tried to use primaryjoin parameter of the relationship in order to avoid purging deleted datasets, but hasn't succeeded. It can be achieved only by introducing two separate properties for active and for all resources, which won't be backward compatible as well. And, when choosing between two a bit breaking options, I prefer the one that is much simpler:)
So, let's go with your approach, @wardi.

@smotornyuk smotornyuk merged commit 1420fec into dev-v2.9 Dec 8, 2022
@smotornyuk smotornyuk deleted the 7119-package_update-perf-purge-backport branch December 8, 2022 05:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants