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

clear relationships during delete #7109

Merged
merged 1 commit into from
Apr 6, 2020
Merged

clear relationships during delete #7109

merged 1 commit into from
Apr 6, 2020

Conversation

pieter-v
Copy link
Contributor

@pieter-v pieter-v commented Apr 1, 2020

While investigating memory usage of our application, where we load a large amount of data and afterwards destroy/unload it again, I noticed that the recordData objects are not destroyed and kept consuming memory. I tracked it down to Relationships not being cleared during unload.

@pieter-v
Copy link
Contributor Author

pieter-v commented Apr 2, 2020

This also fixes the failing test defined in #6600

@runspired runspired added 🎯 beta PR should be backported to beta 🎯 lts The PR should be backported to the most recent LTS 🎯 release PR should be backported to release 🏷️ bug This PR primarily fixes a reported issue unload-apis labels Apr 6, 2020
@runspired runspired merged commit 213a755 into emberjs:master Apr 6, 2020
@runspired
Copy link
Contributor

@pieter-v thanks! could you work with @eodb to clean up #6600 a bit so that we can close that off too?

runspired pushed a commit that referenced this pull request Apr 24, 2020
@runspired runspired removed the 🎯 lts The PR should be backported to the most recent LTS label Apr 24, 2020
@runspired runspired mentioned this pull request Apr 24, 2020
runspired pushed a commit that referenced this pull request Apr 24, 2020
@runspired runspired removed the 🎯 release PR should be backported to release label Apr 25, 2020
runspired pushed a commit that referenced this pull request Apr 25, 2020
@runspired runspired mentioned this pull request Apr 25, 2020
runspired added a commit that referenced this pull request Apr 28, 2020
* [BUGFIX] dont use Ember.get on internals (#7103)

* chore: update lts tests (#7133)

* clear relationships during delete (#7109)

* clear initialState after construction (#7110)

* fix creation recursion with ember-data-model-fragments (#7123)

* fix: blueprint tests for classic (#7132)

* fix: blueprint tests for classic

* fix lint

* fix: skip tracked test for older ember versions

* fix lint

* cleanup yarn install

Co-authored-by: pieter-v <[email protected]>
Co-authored-by: Bryan <[email protected]>
runspired added a commit that referenced this pull request Apr 28, 2020
* [BUGFIX] dont use Ember.get on internals (#7103)

* chore: update lts tests (#7133)

* clear relationships during delete (#7109)

* clear initialState after construction (#7110)

* fix creation recursion with ember-data-model-fragments (#7123)

* fix: blueprint tests for classic (#7132)

* fix: blueprint tests for classic

* fix lint

* fix: skip tracked test for older ember versions

* fix lint

* cleanup yarn install

Co-authored-by: pieter-v <[email protected]>
Co-authored-by: Bryan <[email protected]>
runspired added a commit that referenced this pull request Apr 28, 2020
* [BUGFIX] dont use Ember.get on internals (#7103)

* chore: update lts tests (#7133)

* clear relationships during delete (#7109)

* clear initialState after construction (#7110)

* fix creation recursion with ember-data-model-fragments (#7123)

* fix: blueprint tests for classic (#7132)

* fix: blueprint tests for classic

* fix lint

* fix: skip tracked test for older ember versions

* fix lint

* cleanup yarn install

* fix lts

Co-authored-by: pieter-v <[email protected]>
Co-authored-by: Bryan <[email protected]>
@pieter-v pieter-v deleted the clear_relationships branch May 18, 2020 07:57
@igorT igorT removed the 🎯 beta PR should be backported to beta label Jul 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bug This PR primarily fixes a reported issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants