SlideShare a Scribd company logo
1 of 22
Hibernate cache 2007/03/16
abstract ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
快取的層次  (1/2) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
cache level (2/2) cluster transaction application transaction application transaction transaction
Hibernate cache transaction application cluster concept session session factory third party hibernate
Cache providers Cache  Cluster Safe  Query Cache  Hashtable yes EHcache yes OScache yes Swarmcache yes JBosscache yes yes
cache strategies ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
cache concurrency strategy support cache read-only nonstrict-read-write read-write transactional hashtable yes yes yes EHCache yes yes yes OSCache yes yes yes SwarmCache yes yes JBoss yes yes
entity cache ,[object Object],[object Object],[object Object],[object Object]
session.get step in session? DataBase No session.get Yes session
session.load step in session? session.get Yes session No in session factory? DataBase No session factory Yes
collection cache setting <hibernate mapping> <class name=“User”> ……… . <set name=“addresses” table=“t_addresses” …… > <cache usage=“read-only”> User.hbm.xml
collection cache ,[object Object],[object Object],<hibernate-mapping> <class name=“com…..Adress” table=“t_addresses” …… > <cache usage=“read-write”>
query cache ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
set ehcache.xml <defaultCache maxElementsInMemory=&quot;10000&quot; eternal=&quot;false&quot; timeToIdleSeconds=&quot;120&quot; timeToLiveSeconds=&quot;120&quot; overflowToDisk=&quot;false&quot; />
clear 2nd-level cache ,[object Object]
hibernate statistics ,[object Object],[object Object],[object Object],[object Object],[object Object]
Query Optimization ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Query Optimization ,[object Object],[object Object]
Query Optimization ,[object Object],[object Object],[object Object],[object Object],[object Object],Article category Category
Query Optimization ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Article Article_Category Category category article
session & transaction ,[object Object],[object Object],[object Object],[object Object]

More Related Content

Viewers also liked

Algo stars程式交易人網聚:前進中國期貨市場
Algo stars程式交易人網聚:前進中國期貨市場Algo stars程式交易人網聚:前進中國期貨市場
Algo stars程式交易人網聚:前進中國期貨市場
algostars
 
華人工作團隊內關係(Guanxi)與成員效能
華人工作團隊內關係(Guanxi)與成員效能華人工作團隊內關係(Guanxi)與成員效能
華人工作團隊內關係(Guanxi)與成員效能
Joyce He
 
老板與主管之經營哲學~企業經營大師黃聰亮教授演講投影片
老板與主管之經營哲學~企業經營大師黃聰亮教授演講投影片老板與主管之經營哲學~企業經營大師黃聰亮教授演講投影片
老板與主管之經營哲學~企業經營大師黃聰亮教授演講投影片
vincent8899
 
Aacromio clavicular reconstruction
Aacromio clavicular  reconstructionAacromio clavicular  reconstruction
Aacromio clavicular reconstruction
darko1307
 
財富人生理財講座~企業經營大師黃聰亮教授演講投影片
財富人生理財講座~企業經營大師黃聰亮教授演講投影片財富人生理財講座~企業經營大師黃聰亮教授演講投影片
財富人生理財講座~企業經營大師黃聰亮教授演講投影片
vincent8899
 
00.程式交易
00.程式交易00.程式交易
00.程式交易
hohooh0320
 

Viewers also liked (20)

風險管理之預警機制
風險管理之預警機制風險管理之預警機制
風險管理之預警機制
 
Algo stars程式交易人網聚:前進中國期貨市場
Algo stars程式交易人網聚:前進中國期貨市場Algo stars程式交易人網聚:前進中國期貨市場
Algo stars程式交易人網聚:前進中國期貨市場
 
有保護的賣方策略
有保護的賣方策略有保護的賣方策略
有保護的賣方策略
 
五分鐘認識實踐資管
五分鐘認識實踐資管五分鐘認識實踐資管
五分鐘認識實踐資管
 
詹姆士看天下 2016/03/14
詹姆士看天下 2016/03/14詹姆士看天下 2016/03/14
詹姆士看天下 2016/03/14
 
Opportunities and Prospects of Sino-Australian Business Partnerships
Opportunities and Prospects of Sino-Australian Business PartnershipsOpportunities and Prospects of Sino-Australian Business Partnerships
Opportunities and Prospects of Sino-Australian Business Partnerships
 
123mc
123mc123mc
123mc
 
程式交易優缺點
程式交易優缺點程式交易優缺點
程式交易優缺點
 
1 超交易 执行摘要
1 超交易 执行摘要1 超交易 执行摘要
1 超交易 执行摘要
 
Portfolio 2015
Portfolio 2015Portfolio 2015
Portfolio 2015
 
華人工作團隊內關係(Guanxi)與成員效能
華人工作團隊內關係(Guanxi)與成員效能華人工作團隊內關係(Guanxi)與成員效能
華人工作團隊內關係(Guanxi)與成員效能
 
華南講座內湖分公司
華南講座內湖分公司華南講座內湖分公司
華南講座內湖分公司
 
老板與主管之經營哲學~企業經營大師黃聰亮教授演講投影片
老板與主管之經營哲學~企業經營大師黃聰亮教授演講投影片老板與主管之經營哲學~企業經營大師黃聰亮教授演講投影片
老板與主管之經營哲學~企業經營大師黃聰亮教授演講投影片
 
Carbon Trading Market
Carbon Trading MarketCarbon Trading Market
Carbon Trading Market
 
Aacromio clavicular reconstruction
Aacromio clavicular  reconstructionAacromio clavicular  reconstruction
Aacromio clavicular reconstruction
 
Algorithmic Trading
Algorithmic TradingAlgorithmic Trading
Algorithmic Trading
 
財富人生理財講座~企業經營大師黃聰亮教授演講投影片
財富人生理財講座~企業經營大師黃聰亮教授演講投影片財富人生理財講座~企業經營大師黃聰亮教授演講投影片
財富人生理財講座~企業經營大師黃聰亮教授演講投影片
 
00.程式交易
00.程式交易00.程式交易
00.程式交易
 
Open Source, Open Data, Open Government
Open Source, Open Data, Open GovernmentOpen Source, Open Data, Open Government
Open Source, Open Data, Open Government
 
201407 外匯投資,交易策略,程式交易經驗與成果分享
201407 外匯投資,交易策略,程式交易經驗與成果分享201407 外匯投資,交易策略,程式交易經驗與成果分享
201407 外匯投資,交易策略,程式交易經驗與成果分享
 

Similar to Hibernate Cache

Jug Lugano - Scale over the limits
Jug Lugano - Scale over the limitsJug Lugano - Scale over the limits
Jug Lugano - Scale over the limits
Davide Carnevali
 
Advanced Hibernate Notes
Advanced Hibernate NotesAdvanced Hibernate Notes
Advanced Hibernate Notes
Kaniska Mandal
 
10 Cache Implementation
10  Cache Implementation10  Cache Implementation
10 Cache Implementation
Ranjan Kumar
 
Hibernate caching
Hibernate cachingHibernate caching
Hibernate caching
bsudy
 
App Grid Dev With Coherence
App Grid Dev With CoherenceApp Grid Dev With Coherence
App Grid Dev With Coherence
James Bayer
 
idea: talk about the Active Cache
idea: talk about the Active Cacheidea: talk about the Active Cache
idea: talk about the Active Cache
Ching Yi Chan
 
My sql monitoring cu沙龙
My sql monitoring cu沙龙My sql monitoring cu沙龙
My sql monitoring cu沙龙
colderboy17
 

Similar to Hibernate Cache (20)

Jug Lugano - Scale over the limits
Jug Lugano - Scale over the limitsJug Lugano - Scale over the limits
Jug Lugano - Scale over the limits
 
Ehcache Architecture, Features And Usage Patterns
Ehcache Architecture, Features And Usage PatternsEhcache Architecture, Features And Usage Patterns
Ehcache Architecture, Features And Usage Patterns
 
Advanced Hibernate Notes
Advanced Hibernate NotesAdvanced Hibernate Notes
Advanced Hibernate Notes
 
Spring One 2 GX 2014 - CACHING WITH SPRING: ADVANCED TOPICS AND BEST PRACTICES
Spring One 2 GX 2014 - CACHING WITH SPRING: ADVANCED TOPICS AND BEST PRACTICESSpring One 2 GX 2014 - CACHING WITH SPRING: ADVANCED TOPICS AND BEST PRACTICES
Spring One 2 GX 2014 - CACHING WITH SPRING: ADVANCED TOPICS AND BEST PRACTICES
 
Scaling Your Cache
Scaling Your CacheScaling Your Cache
Scaling Your Cache
 
Cache is King
Cache is KingCache is King
Cache is King
 
Developing High Performance and Scalable ColdFusion Application Using Terraco...
Developing High Performance and Scalable ColdFusion Application Using Terraco...Developing High Performance and Scalable ColdFusion Application Using Terraco...
Developing High Performance and Scalable ColdFusion Application Using Terraco...
 
Developing High Performance and Scalable ColdFusion Applications Using Terrac...
Developing High Performance and Scalable ColdFusion Applications Using Terrac...Developing High Performance and Scalable ColdFusion Applications Using Terrac...
Developing High Performance and Scalable ColdFusion Applications Using Terrac...
 
10 Cache Implementation
10  Cache Implementation10  Cache Implementation
10 Cache Implementation
 
Cache Tooling
Cache ToolingCache Tooling
Cache Tooling
 
Cache Tooling
Cache ToolingCache Tooling
Cache Tooling
 
Java In-Process Caching - Performance, Progress and Pittfalls
Java In-Process Caching - Performance, Progress and PittfallsJava In-Process Caching - Performance, Progress and Pittfalls
Java In-Process Caching - Performance, Progress and Pittfalls
 
Java In-Process Caching - Performance, Progress and Pitfalls
Java In-Process Caching - Performance, Progress and PitfallsJava In-Process Caching - Performance, Progress and Pitfalls
Java In-Process Caching - Performance, Progress and Pitfalls
 
Hibernate caching
Hibernate cachingHibernate caching
Hibernate caching
 
App Grid Dev With Coherence
App Grid Dev With CoherenceApp Grid Dev With Coherence
App Grid Dev With Coherence
 
Application Grid Dev with Coherence
Application Grid Dev with CoherenceApplication Grid Dev with Coherence
Application Grid Dev with Coherence
 
App Grid Dev With Coherence
App Grid Dev With CoherenceApp Grid Dev With Coherence
App Grid Dev With Coherence
 
Hazelcast Deep Dive (Paris JUG-2)
Hazelcast Deep Dive (Paris JUG-2)Hazelcast Deep Dive (Paris JUG-2)
Hazelcast Deep Dive (Paris JUG-2)
 
idea: talk about the Active Cache
idea: talk about the Active Cacheidea: talk about the Active Cache
idea: talk about the Active Cache
 
My sql monitoring cu沙龙
My sql monitoring cu沙龙My sql monitoring cu沙龙
My sql monitoring cu沙龙
 

More from Yenwen Feng

Thoughts behind Cubie Messenger
Thoughts behind Cubie MessengerThoughts behind Cubie Messenger
Thoughts behind Cubie Messenger
Yenwen Feng
 
Facebook flash api and social game development
Facebook flash api and social game developmentFacebook flash api and social game development
Facebook flash api and social game development
Yenwen Feng
 
Our experience to start a startup
Our experience to start a startupOur experience to start a startup
Our experience to start a startup
Yenwen Feng
 

More from Yenwen Feng (15)

在 Kotlin/Android 使用 Ethereum Smart Contract
在 Kotlin/Android 使用 Ethereum Smart Contract在 Kotlin/Android 使用 Ethereum Smart Contract
在 Kotlin/Android 使用 Ethereum Smart Contract
 
Lambda local - A local server for developing AWS Lambda function in Java
Lambda local - A local server for developing AWS Lambda function in JavaLambda local - A local server for developing AWS Lambda function in Java
Lambda local - A local server for developing AWS Lambda function in Java
 
Product Market Fit
Product Market FitProduct Market Fit
Product Market Fit
 
Introduction to Growth
Introduction to GrowthIntroduction to Growth
Introduction to Growth
 
Growth
GrowthGrowth
Growth
 
Growth
GrowthGrowth
Growth
 
消費性 APP 的募資經驗分享
消費性 APP 的募資經驗分享消費性 APP 的募資經驗分享
消費性 APP 的募資經驗分享
 
Thoughts behind Cubie Messenger
Thoughts behind Cubie MessengerThoughts behind Cubie Messenger
Thoughts behind Cubie Messenger
 
Facebook flash api and social game development
Facebook flash api and social game developmentFacebook flash api and social game development
Facebook flash api and social game development
 
Our experience to start a startup
Our experience to start a startupOur experience to start a startup
Our experience to start a startup
 
GWT: Our Experiences
GWT: Our ExperiencesGWT: Our Experiences
GWT: Our Experiences
 
Entrepreneurship3
Entrepreneurship3Entrepreneurship3
Entrepreneurship3
 
Intro to Google Gadgets
Intro to Google GadgetsIntro to Google Gadgets
Intro to Google Gadgets
 
Suggestions for Building Websites
Suggestions for Building WebsitesSuggestions for Building Websites
Suggestions for Building Websites
 
Ajax by Examples 2
Ajax by Examples 2Ajax by Examples 2
Ajax by Examples 2
 

Recently uploaded

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Recently uploaded (20)

Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 

Hibernate Cache

  • 2.
  • 3.
  • 4. cache level (2/2) cluster transaction application transaction application transaction transaction
  • 5. Hibernate cache transaction application cluster concept session session factory third party hibernate
  • 6. Cache providers Cache Cluster Safe Query Cache Hashtable yes EHcache yes OScache yes Swarmcache yes JBosscache yes yes
  • 7.
  • 8. cache concurrency strategy support cache read-only nonstrict-read-write read-write transactional hashtable yes yes yes EHCache yes yes yes OSCache yes yes yes SwarmCache yes yes JBoss yes yes
  • 9.
  • 10. session.get step in session? DataBase No session.get Yes session
  • 11. session.load step in session? session.get Yes session No in session factory? DataBase No session factory Yes
  • 12. collection cache setting <hibernate mapping> <class name=“User”> ……… . <set name=“addresses” table=“t_addresses” …… > <cache usage=“read-only”> User.hbm.xml
  • 13.
  • 14.
  • 15. set ehcache.xml <defaultCache maxElementsInMemory=&quot;10000&quot; eternal=&quot;false&quot; timeToIdleSeconds=&quot;120&quot; timeToLiveSeconds=&quot;120&quot; overflowToDisk=&quot;false&quot; />
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.
  • 22.