小编Luc*_*ron的帖子

中大结果集上的Hibernate,JDBC和Java性能

问题

我们正在尝试优化我们的dataserver应用程序.它通过mysql数据库存储股票和报价.我们对提取性能不满意.

上下文

- database
    - table stock : around 500 lines
    - table quote : 3 000 000 to 10 000 000 lines
    - one-to-many association : one stock owns n quotes
    - fetching around 1000 quotes per request
    - there is an index on (stockId,date) in the quote table
    - no cache, because in production, querys are always different
- Hibernate 3
- mysql 5.5
- Java 6
- JDBC mysql Connector 5.1.13
- c3p0 pooling
Run Code Online (Sandbox Code Playgroud)

测试和结果

协议 …

java mysql performance hibernate jdbc

19
推荐指数
1
解决办法
4880
查看次数

标签 统计

hibernate ×1

java ×1

jdbc ×1

mysql ×1

performance ×1