-
Notifications
You must be signed in to change notification settings - Fork 129
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
分页查询totalCount过大造成OOM #62
Comments
totalCount 不会造成 OOM,每页查询条数太大才可能会。 |
3.6版分页查询初始化SearchResult并没有初始化dataList长度,升级到3.8.1初始化SearchResult会初始化dataList长度大小为totalCount,ArrayList内部初始化数组会占用16 + totalCount * 4 SearchResult result = new SearchResult<>(totalCount, summaries); public SearchResult(Number totalCount, Number[] summaries) { |
多谢反馈,马上修复 |
这是 |
感谢,前段时间适配到aliyun ots多元索引,大大提升了开发效率。最近打算参考cube.js,将beansearcher做成olap引擎与前端的粘粘层。很棒~ |
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at java.util.ArrayList.(ArrayList.java:153)
at com.ejlchina.searcher.SearchResult.(SearchResult.java:32)
at com.ejlchina.searcher.implement.DefaultBeanSearcher.search(DefaultBeanSearcher.java:69)
at com.ejlchina.searcher.implement.DefaultBeanSearcher.search(DefaultBeanSearcher.java:32)
The text was updated successfully, but these errors were encountered: