简体   繁体   English

Toplink批量阅读

[英]Toplink batch reading

IS their any way to set property like hibernate 'hibernate.batch_size' in toplink. 他们可以通过任何方式在toplink中设置属性,例如休眠'hibernate.batch_size'。 which will increase fetching query performance. 这将提高获取查询的性能。

Batch reading is supported in TopLink, but I'm not sure about TopLink Essentials. TopLink支持批量读取,但是我不确定TopLink Essentials。 You can do it by accessing the ReadAllQuery and adding the relationship to be batch read. 您可以通过访问ReadAllQuery并添加要批量读取的关系来实现。

You could also upgrade to EclipseLink, which supports batch fetching using the query hint "eclipselink.batch", and also support batch fetch using joins, in, or sub-selects. 您还可以升级到EclipseLink,该EclipseLink支持使用查询提示“ eclipselink.batch”进行批量提取,并且还支持使用join,in或sub-selects进行批量提取。

See, http://wiki.eclipse.org/EclipseLink/Examples/JPA/QueryOptimization 参见http://wiki.eclipse.org/EclipseLink/Examples/JPA/QueryOptimization

http://java-persistence-performance.blogspot.com/2010/08/batch-fetching-optimizing-object-graph.html http://java-persistence-performance.blogspot.com/2010/08/batch-fetching-optimizing-object-graph.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM