常驻内存框架下,通过作用域查询,会导致model中的query的model关联自身,导致内存无法释放。#804
Open
blackqing wants to merge 1 commit intotop-think:4.0from
Open
常驻内存框架下,通过作用域查询,会导致model中的query的model关联自身,导致内存无法释放。#804blackqing wants to merge 1 commit intotop-think:4.0from
blackqing wants to merge 1 commit intotop-think:4.0from
Conversation
常驻内存框架下,通过作用域查询,会导致model中的query的model关联自身,导致内存无法释放。
Member
|
这种当需要多次查询的时候 就会有问题了 可以调用 withoutScope 处理这个问题 |
Author
|
全局作用域查询也有这个问题存在。常驻内存这个内存得不到释放会一直占用内存最后会溢出吧! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
常驻内存框架下,通过作用域查询,会导致model中的query的model关联自身,导致内存无法释放。