Skip to content

[Stable7] don't update identical values - #16969

Merged
MorrisJobke merged 2 commits into
stable7from
stable7-backport-15549
Jun 17, 2015
Merged

MorrisJobke merged 2 commits into
stable7from
stable7-backport-15549

Conversation

@MorrisJobke

Copy link
Copy Markdown
Contributor

The UPDATE oc_filecache statement blindly overwrites identical data.
Databases like Postgres that create a new row on an update
and mark the old one as dead will suffer from the previous
behaviour, as millions of "new" rows are created in the database.

This patch changes the WHERE clause to test for identical
values and not updating if the values in the DB are identical
to the ones being passed.
@MorrisJobke MorrisJobke added this to the 7.0.7-current-maintenance milestone Jun 16, 2015
@MorrisJobke

Copy link
Copy Markdown
Contributor Author

I did some smoke tests and all went fine.

@nickvergessen

Copy link
Copy Markdown
Contributor

👍

@scrutinizer-notifier

Copy link
Copy Markdown

The inspection completed: No new issues

@ghost

ghost commented Jun 16, 2015

Copy link
Copy Markdown

🚀 Test PASSed.🚀
chuck

@PVince81

Copy link
Copy Markdown
Contributor

👍

Backport confirmation is here: #15549 (comment)

MorrisJobke added a commit that referenced this pull request Jun 17, 2015
[Stable7] don't update identical values
@MorrisJobke
MorrisJobke merged commit 448ee4e into stable7 Jun 17, 2015
@MorrisJobke
MorrisJobke deleted the stable7-backport-15549 branch June 17, 2015 08:22
@lock lock Bot locked as resolved and limited conversation to collaborators Aug 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants