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

trackedObjects grows unchecked with usage #183

Open
DaltonCaughell opened this issue Jan 12, 2016 · 0 comments
Open

trackedObjects grows unchecked with usage #183

DaltonCaughell opened this issue Jan 12, 2016 · 0 comments

Comments

@DaltonCaughell
Copy link

When loading/displaying large datasets I have noticed that something within the session, I assume trackedObjects, grows almost continuously. Even as objects are no longer needed and leave scope they remain in trackedObjects.

For large datasets this begins to cause serious performance issues, manipulating roughly 100MB of data uses almost 500MB of memory which to my knowledge can only be reclaimed by calling persistence.clean(). Calling persistence.clean() is an effective solution but it kills all tracking which could break other areas of the codebase that expect to be able to persists data normally.

From what I understand I am using persistencejs correctly and the growth of trackedObjects is a natural consequence of the mechanisms persistencejs uses to keep everything tracked and synchronized. If this is the case I am wondering if maybe there should be some sort of noTrack() or readOnly() filter so that large datasets can be loaded and displayed without permanently residing in memory?

Has anyone else encountered similar issues with 100MB plus datasets? It's possible I'm using the library wrong, but it's definitely something in the persistencejs session that's eating up memory.

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

No branches or pull requests

1 participant