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

MONGOID-5740 Fix performance regression on belongs_to validation (backport to 8.1-stable) #5793

Merged
merged 2 commits into from
Feb 27, 2024

Conversation

jamis
Copy link
Contributor

@jamis jamis commented Feb 27, 2024

  • MONGOID-5740 don't try to validate persisted, unchanged associations

  • we just need the attribute name

  • fix failing specs

  • tread very carefully so we don't trigger a load while validating

  • hopefully fix has-many behavior

  • documentation

  • simplify

  • make sure attributes getter is defined

  • Fix typo -- records are not loaded from the database


jamis and others added 2 commits February 27, 2024 10:00
…godb#5787)

* MONGOID-5704 don't try to validate persisted, unchanged associations

* we just need the attribute name

* fix failing specs

* tread very carefully so we don't trigger a load while validating

* hopefully fix has-many behavior

* documentation

* simplify

* make sure attributes getter is defined

* Fix typo -- records are not loaded *from the database*

Co-authored-by: Dmitry Rybakov <160598371+comandeo-mongo@users.noreply.github.com>

---------

Co-authored-by: Dmitry Rybakov <160598371+comandeo-mongo@users.noreply.github.com>
@jamis jamis merged commit d979cd5 into mongodb:8.1-stable Feb 27, 2024
63 of 67 checks passed
@jamis jamis deleted the 5740-backport-to-8.1 branch February 27, 2024 18:42
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