SlideShare una empresa de Scribd logo
1 de 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]

Más contenido relacionado

Destacado

Algo stars程式交易人網聚:前進中國期貨市場
Algo stars程式交易人網聚:前進中國期貨市場Algo stars程式交易人網聚:前進中國期貨市場
Algo stars程式交易人網聚:前進中國期貨市場algostars
 
有保護的賣方策略
有保護的賣方策略有保護的賣方策略
有保護的賣方策略eddiechuang
 
五分鐘認識實踐資管
五分鐘認識實踐資管五分鐘認識實踐資管
五分鐘認識實踐資管良政 張
 
詹姆士看天下 2016/03/14
詹姆士看天下 2016/03/14詹姆士看天下 2016/03/14
詹姆士看天下 2016/03/14ezfunds
 
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 PartnershipsAustralian Business Forum - ABF
 
程式交易優缺點
程式交易優缺點程式交易優缺點
程式交易優缺點良政 張
 
1 超交易 执行摘要
1 超交易 执行摘要1 超交易 执行摘要
1 超交易 执行摘要成 封
 
華人工作團隊內關係(Guanxi)與成員效能
華人工作團隊內關係(Guanxi)與成員效能華人工作團隊內關係(Guanxi)與成員效能
華人工作團隊內關係(Guanxi)與成員效能Joyce He
 
華南講座內湖分公司
華南講座內湖分公司華南講座內湖分公司
華南講座內湖分公司howda0605
 
老板與主管之經營哲學~企業經營大師黃聰亮教授演講投影片
老板與主管之經營哲學~企業經營大師黃聰亮教授演講投影片老板與主管之經營哲學~企業經營大師黃聰亮教授演講投影片
老板與主管之經營哲學~企業經營大師黃聰亮教授演講投影片vincent8899
 
Aacromio clavicular reconstruction
Aacromio clavicular  reconstructionAacromio clavicular  reconstruction
Aacromio clavicular reconstructiondarko1307
 
Algorithmic Trading
Algorithmic TradingAlgorithmic Trading
Algorithmic TradingAlice Chan
 
財富人生理財講座~企業經營大師黃聰亮教授演講投影片
財富人生理財講座~企業經營大師黃聰亮教授演講投影片財富人生理財講座~企業經營大師黃聰亮教授演講投影片
財富人生理財講座~企業經營大師黃聰亮教授演講投影片vincent8899
 
00.程式交易
00.程式交易00.程式交易
00.程式交易hohooh0320
 
Open Source, Open Data, Open Government
Open Source, Open Data, Open GovernmentOpen Source, Open Data, Open Government
Open Source, Open Data, Open Governmentclkao
 
201407 外匯投資,交易策略,程式交易經驗與成果分享
201407 外匯投資,交易策略,程式交易經驗與成果分享201407 外匯投資,交易策略,程式交易經驗與成果分享
201407 外匯投資,交易策略,程式交易經驗與成果分享neo911
 

Destacado (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 a Hibernate Cache

Jug Lugano - Scale over the limits
Jug Lugano - Scale over the limitsJug Lugano - Scale over the limits
Jug Lugano - Scale over the limitsDavide Carnevali
 
Ehcache Architecture, Features And Usage Patterns
Ehcache Architecture, Features And Usage PatternsEhcache Architecture, Features And Usage Patterns
Ehcache Architecture, Features And Usage PatternsEduardo Pelegri-Llopart
 
Advanced Hibernate Notes
Advanced Hibernate NotesAdvanced Hibernate Notes
Advanced Hibernate NotesKaniska Mandal
 
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 PRACTICESMichael Plöd
 
Scaling Your Cache
Scaling Your CacheScaling Your Cache
Scaling Your CacheAlex Miller
 
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...ColdFusionConference
 
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...Shailendra Prasad
 
10 Cache Implementation
10  Cache Implementation10  Cache Implementation
10 Cache ImplementationRanjan Kumar
 
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 Pittfallscruftex
 
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 PitfallsJens Wilke
 
Hibernate caching
Hibernate cachingHibernate caching
Hibernate cachingbsudy
 
App Grid Dev With Coherence
App Grid Dev With CoherenceApp Grid Dev With Coherence
App Grid Dev With CoherenceJames Bayer
 
Application Grid Dev with Coherence
Application Grid Dev with CoherenceApplication Grid Dev with Coherence
Application Grid Dev with CoherenceJames Bayer
 
App Grid Dev With Coherence
App Grid Dev With CoherenceApp Grid Dev With Coherence
App Grid Dev With CoherenceJames Bayer
 
Hazelcast Deep Dive (Paris JUG-2)
Hazelcast Deep Dive (Paris JUG-2)Hazelcast Deep Dive (Paris JUG-2)
Hazelcast Deep Dive (Paris JUG-2)Emrah Kocaman
 
idea: talk about the Active Cache
idea: talk about the Active Cacheidea: talk about the Active Cache
idea: talk about the Active CacheChing Yi Chan
 
My sql monitoring cu沙龙
My sql monitoring cu沙龙My sql monitoring cu沙龙
My sql monitoring cu沙龙colderboy17
 

Similar a 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沙龙
 

Más de Yenwen Feng

在 Kotlin/Android 使用 Ethereum Smart Contract
在 Kotlin/Android 使用 Ethereum Smart Contract在 Kotlin/Android 使用 Ethereum Smart Contract
在 Kotlin/Android 使用 Ethereum Smart ContractYenwen Feng
 
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 JavaYenwen Feng
 
Product Market Fit
Product Market FitProduct Market Fit
Product Market FitYenwen Feng
 
Introduction to Growth
Introduction to GrowthIntroduction to Growth
Introduction to GrowthYenwen Feng
 
消費性 APP 的募資經驗分享
消費性 APP 的募資經驗分享消費性 APP 的募資經驗分享
消費性 APP 的募資經驗分享Yenwen Feng
 
Thoughts behind Cubie Messenger
Thoughts behind Cubie MessengerThoughts behind Cubie Messenger
Thoughts behind Cubie MessengerYenwen 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 developmentYenwen Feng
 
Our experience to start a startup
Our experience to start a startupOur experience to start a startup
Our experience to start a startupYenwen Feng
 
GWT: Our Experiences
GWT: Our ExperiencesGWT: Our Experiences
GWT: Our ExperiencesYenwen Feng
 
Entrepreneurship3
Entrepreneurship3Entrepreneurship3
Entrepreneurship3Yenwen Feng
 
Intro to Google Gadgets
Intro to Google GadgetsIntro to Google Gadgets
Intro to Google GadgetsYenwen Feng
 
Suggestions for Building Websites
Suggestions for Building WebsitesSuggestions for Building Websites
Suggestions for Building WebsitesYenwen Feng
 
Ajax by Examples 2
Ajax by Examples 2Ajax by Examples 2
Ajax by Examples 2Yenwen Feng
 

Más de 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
 

Último

Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKJago de Vreede
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Zilliz
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfOverkill Security
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...apidays
 
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 educationjfdjdjcjdnsjd
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024The Digital Insurer
 
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 SavingEdi Saputra
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodJuan lago vázquez
 
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 Takeoffsammart93
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Cyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdfCyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdfOverkill Security
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
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...apidays
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024The Digital Insurer
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businesspanagenda
 
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 challengesrafiqahmad00786416
 
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...Jeffrey Haguewood
 

Último (20)

Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
+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 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
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
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
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
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
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
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Cyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdfCyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdf
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
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...
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
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
 
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...
 

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.