Toplink批量读取
他们有什么方法可以在 toplink 中设置像 hibernate 'hibernate.batch_size' 这样的属性。这将提高获取查询性能。
IS their any way to set property like hibernate 'hibernate.batch_size' in toplink. which will increase fetching query performance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
TopLink 支持批量读取,但我不确定 TopLink Essentials 是否支持。您可以通过访问ReadAllQuery并添加要批量读取的关系来完成。
您还可以升级到 EclipseLink,它支持使用查询提示“eclipselink.batch”进行批量获取,并且还支持使用联接、输入或子选择进行批量获取。
看,
http://wiki.eclipse.org/EclipseLink/Examples/JPA/QueryOptimization
http://java-persistence-performance .blogspot.com/2010/08/batch-fetching-optimizing-object-graph.html
Batch reading is supported in TopLink, but I'm not sure about TopLink Essentials. You can do it by accessing the ReadAllQuery and adding the relationship to be batch read.
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.
See,
http://wiki.eclipse.org/EclipseLink/Examples/JPA/QueryOptimization
http://java-persistence-performance.blogspot.com/2010/08/batch-fetching-optimizing-object-graph.html