没有合适的资源?快使用搜索试试~ 我知道了~
首页high performance java persistence
high performance java persistence
需积分: 10 21 下载量 157 浏览量
更新于2023-05-22
评论 1
收藏 15.97MB PDF 举报
A high-performance data access layer must resonate with the underlying database system. Knowing the inner workings of a relational database and the data access frameworks in use can make the difference between a high-performance enterprise application and one that barely crawls.
资源详情
资源评论
资源推荐
High-Performance Java Persistence
Get the most out of your persistence layer
Vlad Mihalcea
© 2015 - 2016 Vlad Mihalcea
To my wife and kids
Contents
I Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1. Preface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.1 The database server and the connectivity layer . . . . . . . . . . . . . . . . . . . . 3
1.2 The application data access layer . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.2.1 The ORM framework . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.2.2 The native query builder framework . . . . . . . . . . . . . . . . . . . . . . 4
2. Performance and Scaling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
2.1 Response time and throughput . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
2.2 Database connections boundaries . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
2.3 Scaling up and scaling out . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
2.3.1 Master-Slave replication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
2.3.2 Multi-Master replication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.3.3 Sharding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
II JDBC and Database Essentials . . . . . . . . . . . . . . . . . 14
3. JDBC Connection Management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
3.1 DriverManager . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
3.2 DataSource . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
3.2.1 Why is pooling so much faster? . . . . . . . . . . . . . . . . . . . . . . . . . 21
3.3 Queuing theory capacity planning . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
3.4 Practical database connection provisioning . . . . . . . . . . . . . . . . . . . . . . 26
3.4.1 A real-life connection pool monitoring example . . . . . . . . . . . . . . . . 27
3.4.1.1 Concurrent connection request count metric . . . . . . . . . . . . . . 28
3.4.1.2 Concurrent connection count metric . . . . . . . . . . . . . . . . . . . 29
3.4.1.3 Maximum pool size metric . . . . . . . . . . . . . . . . . . . . . . . . 30
3.4.1.4 Connection acquisition time metric . . . . . . . . . . . . . . . . . . . 30
3.4.1.5 Retry attempts metric . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
3.4.1.6 Overall connection acquisition time metric . . . . . . . . . . . . . . . 31
3.4.1.7 Connection lease time metric . . . . . . . . . . . . . . . . . . . . . . . 32
4. Batch Updates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
剩余244页未读,继续阅读
salsa2010
- 粉丝: 0
- 资源: 4
上传资源 快速赚钱
- 我的内容管理 收起
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
会员权益专享
最新资源
- RTL8188FU-Linux-v5.7.4.2-36687.20200602.tar(20765).gz
- c++校园超市商品信息管理系统课程设计说明书(含源代码) (2).pdf
- 建筑供配电系统相关课件.pptx
- 企业管理规章制度及管理模式.doc
- vb打开摄像头.doc
- 云计算-可信计算中认证协议改进方案.pdf
- [详细完整版]单片机编程4.ppt
- c语言常用算法.pdf
- c++经典程序代码大全.pdf
- 单片机数字时钟资料.doc
- 11项目管理前沿1.0.pptx
- 基于ssm的“魅力”繁峙宣传网站的设计与实现论文.doc
- 智慧交通综合解决方案.pptx
- 建筑防潮设计-PowerPointPresentati.pptx
- SPC统计过程控制程序.pptx
- SPC统计方法基础知识.pptx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0