SlideShare uma empresa Scribd logo
1 de 14
Baixar para ler offline
What’s new in Hibernate 6.4?
by Christian Beikov
Who am I?
Christian Beikov
Long time Hibernate community contributor
Full time Hibernate developer at Red Hat since 2020
Founder of Blazebit and creator of Blaze-Persistence
Living in Vienna/AT and Bonn/DE
Like to play tennis and go running
Noteworthy in 6.2
@Embeddableas @Structor JSON/XML
Java Record support
Unified value generation @ValueGenerationType
Table partitioning
SQL generation learned the MERGEstatement
https://in.relation.to/2023/03/30/orm-62-final/
Noteworthy in 6.3
DAO/Repository support in annotation processor
Simple querying with CriteriaDefinition
CriteriaQueryfrom HQL
Upsert (a.k.a. insert-or-update) with StatelessSession
Revamped documentation
https://in.relation.to/2023/08/31/orm-630/
Noteworthy in 6.4
Soft delete
Array functions
Count query derivation
JFR events
Vector similarity search
https://in.relation.to/2023/11/23/orm-640-final/
AI creates embedding (vector) out of unstructured data
Related data have vectors “near” each other
Nearest neighbour search allows to find similar/related data
What is vector similarity search?
AI
Data Vector Vector store
Query Vector Similarity search
Vector is a numeric array e.g. [1.0, 5.6, -0.38, 2.59, …]
Precision can be e.g. float64, float32, float16etc.
Speed up nearest neighbour search with index
● Flat (deterministic) e.g. IVFFlat (Inverted File Flat)
● Graph (approximate) e.g. HNSW (Hierarchical Navigable Small World)
What is vector similarity search?
Vector similarity search use cases?
Content filtering
Recommendation system
Fraud detection
Semantic search
Image search
etc.
Vector search supported databases
PostgreSQL pgvector extension
Oracle to provide implementation for Oracle DB
Ideas for supporting other databases or extensions?
Could support any database with array support, but slow without indexes
Vector search Pros and Cons
+ Improve search relevance “magically“
+ Efficiency
+ Easy to implement
- AI and embedding vectors are black boxes
- Trial and error for data preparation
- Additional infrastructure/cost
Demo source
https://github.com/beikov/quarkus-insights
ORM 6.5 outlook
Insert on conflictclause a.k.a. Upsert
Joins in DML (update, delete)
@FractionalSecondsfor temporal columns
Generated values retrieval through returning clause
Configure query cache layout
What’s next?
ORM 6.6
● Nested array support
● Ensure orm.xml can fully replace hbm.xml
ORM 7.0
● Boot abstraction for type discovery and reflection
● Jakarta Persistence 3.2
● Java 17 requirement
● Remove deprecated APIs
● Remove hbm.xml?
Q & A

Mais conteúdo relacionado

Semelhante a Deep dive into Hibernate ORM 6.4 features

NoSQL: Why, When, and How
NoSQL: Why, When, and HowNoSQL: Why, When, and How
NoSQL: Why, When, and How
BigBlueHat
 

Semelhante a Deep dive into Hibernate ORM 6.4 features (20)

Ingesting Over Four Million Rows Per Second With QuestDB Timeseries Database ...
Ingesting Over Four Million Rows Per Second With QuestDB Timeseries Database ...Ingesting Over Four Million Rows Per Second With QuestDB Timeseries Database ...
Ingesting Over Four Million Rows Per Second With QuestDB Timeseries Database ...
 
Strata NY 2018: The deconstructed database
Strata NY 2018: The deconstructed databaseStrata NY 2018: The deconstructed database
Strata NY 2018: The deconstructed database
 
Deep dive into the native multi model database ArangoDB
Deep dive into the native multi model database ArangoDBDeep dive into the native multi model database ArangoDB
Deep dive into the native multi model database ArangoDB
 
From flat files to deconstructed database
From flat files to deconstructed databaseFrom flat files to deconstructed database
From flat files to deconstructed database
 
Azure: Lessons From The Field
Azure: Lessons From The FieldAzure: Lessons From The Field
Azure: Lessons From The Field
 
Real time analytics at uber @ strata data 2019
Real time analytics at uber @ strata data 2019Real time analytics at uber @ strata data 2019
Real time analytics at uber @ strata data 2019
 
sudoers: Benchmarking Hadoop with ALOJA
sudoers: Benchmarking Hadoop with ALOJAsudoers: Benchmarking Hadoop with ALOJA
sudoers: Benchmarking Hadoop with ALOJA
 
An Engineer's Intro to Oracle Coherence
An Engineer's Intro to Oracle CoherenceAn Engineer's Intro to Oracle Coherence
An Engineer's Intro to Oracle Coherence
 
Neo4j Vision and Roadmap
Neo4j Vision and Roadmap Neo4j Vision and Roadmap
Neo4j Vision and Roadmap
 
MySQL And Search At Craigslist
MySQL And Search At CraigslistMySQL And Search At Craigslist
MySQL And Search At Craigslist
 
Scaling ArangoDB on Mesosphere DCOS
Scaling ArangoDB on Mesosphere DCOSScaling ArangoDB on Mesosphere DCOS
Scaling ArangoDB on Mesosphere DCOS
 
Rollin onj Rubyv3
Rollin onj Rubyv3Rollin onj Rubyv3
Rollin onj Rubyv3
 
Compass Framework
Compass FrameworkCompass Framework
Compass Framework
 
Microsoft Build 2023 Updates – Copilot Stack and Azure OpenAI Service (Machin...
Microsoft Build 2023 Updates – Copilot Stack and Azure OpenAI Service (Machin...Microsoft Build 2023 Updates – Copilot Stack and Azure OpenAI Service (Machin...
Microsoft Build 2023 Updates – Copilot Stack and Azure OpenAI Service (Machin...
 
Vb essentials
Vb essentialsVb essentials
Vb essentials
 
Cloud Architecture Patterns for Mere Mortals - Bill Wilder - Vermont Code Cam...
Cloud Architecture Patterns for Mere Mortals - Bill Wilder - Vermont Code Cam...Cloud Architecture Patterns for Mere Mortals - Bill Wilder - Vermont Code Cam...
Cloud Architecture Patterns for Mere Mortals - Bill Wilder - Vermont Code Cam...
 
Polyglot metadata for Hadoop
Polyglot metadata for HadoopPolyglot metadata for Hadoop
Polyglot metadata for Hadoop
 
Big Data Analytics from Azure Cloud to Power BI Mobile
Big Data Analytics from Azure Cloud to Power BI MobileBig Data Analytics from Azure Cloud to Power BI Mobile
Big Data Analytics from Azure Cloud to Power BI Mobile
 
NoSQL: Why, When, and How
NoSQL: Why, When, and HowNoSQL: Why, When, and How
NoSQL: Why, When, and How
 
CrateDB 101: Sensor data
CrateDB 101: Sensor dataCrateDB 101: Sensor data
CrateDB 101: Sensor data
 

Último

Structuring Teams and Portfolios for Success
Structuring Teams and Portfolios for SuccessStructuring Teams and Portfolios for Success
Structuring Teams and Portfolios for Success
UXDXConf
 
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo DiehlFuture Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Peter Udo Diehl
 

Último (20)

Designing for Hardware Accessibility at Comcast
Designing for Hardware Accessibility at ComcastDesigning for Hardware Accessibility at Comcast
Designing for Hardware Accessibility at Comcast
 
Top 10 Symfony Development Companies 2024
Top 10 Symfony Development Companies 2024Top 10 Symfony Development Companies 2024
Top 10 Symfony Development Companies 2024
 
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
 
Strategic AI Integration in Engineering Teams
Strategic AI Integration in Engineering TeamsStrategic AI Integration in Engineering Teams
Strategic AI Integration in Engineering Teams
 
The UX of Automation by AJ King, Senior UX Researcher, Ocado
The UX of Automation by AJ King, Senior UX Researcher, OcadoThe UX of Automation by AJ King, Senior UX Researcher, Ocado
The UX of Automation by AJ King, Senior UX Researcher, Ocado
 
How we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdfHow we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdf
 
Where to Learn More About FDO _ Richard at FIDO Alliance.pdf
Where to Learn More About FDO _ Richard at FIDO Alliance.pdfWhere to Learn More About FDO _ Richard at FIDO Alliance.pdf
Where to Learn More About FDO _ Richard at FIDO Alliance.pdf
 
IoT Analytics Company Presentation May 2024
IoT Analytics Company Presentation May 2024IoT Analytics Company Presentation May 2024
IoT Analytics Company Presentation May 2024
 
Structuring Teams and Portfolios for Success
Structuring Teams and Portfolios for SuccessStructuring Teams and Portfolios for Success
Structuring Teams and Portfolios for Success
 
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo DiehlFuture Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
 
IESVE for Early Stage Design and Planning
IESVE for Early Stage Design and PlanningIESVE for Early Stage Design and Planning
IESVE for Early Stage Design and Planning
 
WSO2CONMay2024OpenSourceConferenceDebrief.pptx
WSO2CONMay2024OpenSourceConferenceDebrief.pptxWSO2CONMay2024OpenSourceConferenceDebrief.pptx
WSO2CONMay2024OpenSourceConferenceDebrief.pptx
 
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdfHow Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
 
The Metaverse: Are We There Yet?
The  Metaverse:    Are   We  There  Yet?The  Metaverse:    Are   We  There  Yet?
The Metaverse: Are We There Yet?
 
THE BEST IPTV in GERMANY for 2024: IPTVreel
THE BEST IPTV in  GERMANY for 2024: IPTVreelTHE BEST IPTV in  GERMANY for 2024: IPTVreel
THE BEST IPTV in GERMANY for 2024: IPTVreel
 
Optimizing NoSQL Performance Through Observability
Optimizing NoSQL Performance Through ObservabilityOptimizing NoSQL Performance Through Observability
Optimizing NoSQL Performance Through Observability
 
Powerful Start- the Key to Project Success, Barbara Laskowska
Powerful Start- the Key to Project Success, Barbara LaskowskaPowerful Start- the Key to Project Success, Barbara Laskowska
Powerful Start- the Key to Project Success, Barbara Laskowska
 
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdfLinux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
 
Speed Wins: From Kafka to APIs in Minutes
Speed Wins: From Kafka to APIs in MinutesSpeed Wins: From Kafka to APIs in Minutes
Speed Wins: From Kafka to APIs in Minutes
 
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
 

Deep dive into Hibernate ORM 6.4 features

  • 1. What’s new in Hibernate 6.4? by Christian Beikov
  • 2. Who am I? Christian Beikov Long time Hibernate community contributor Full time Hibernate developer at Red Hat since 2020 Founder of Blazebit and creator of Blaze-Persistence Living in Vienna/AT and Bonn/DE Like to play tennis and go running
  • 3. Noteworthy in 6.2 @Embeddableas @Structor JSON/XML Java Record support Unified value generation @ValueGenerationType Table partitioning SQL generation learned the MERGEstatement https://in.relation.to/2023/03/30/orm-62-final/
  • 4. Noteworthy in 6.3 DAO/Repository support in annotation processor Simple querying with CriteriaDefinition CriteriaQueryfrom HQL Upsert (a.k.a. insert-or-update) with StatelessSession Revamped documentation https://in.relation.to/2023/08/31/orm-630/
  • 5. Noteworthy in 6.4 Soft delete Array functions Count query derivation JFR events Vector similarity search https://in.relation.to/2023/11/23/orm-640-final/
  • 6. AI creates embedding (vector) out of unstructured data Related data have vectors “near” each other Nearest neighbour search allows to find similar/related data What is vector similarity search? AI Data Vector Vector store Query Vector Similarity search
  • 7. Vector is a numeric array e.g. [1.0, 5.6, -0.38, 2.59, …] Precision can be e.g. float64, float32, float16etc. Speed up nearest neighbour search with index ● Flat (deterministic) e.g. IVFFlat (Inverted File Flat) ● Graph (approximate) e.g. HNSW (Hierarchical Navigable Small World) What is vector similarity search?
  • 8. Vector similarity search use cases? Content filtering Recommendation system Fraud detection Semantic search Image search etc.
  • 9. Vector search supported databases PostgreSQL pgvector extension Oracle to provide implementation for Oracle DB Ideas for supporting other databases or extensions? Could support any database with array support, but slow without indexes
  • 10. Vector search Pros and Cons + Improve search relevance “magically“ + Efficiency + Easy to implement - AI and embedding vectors are black boxes - Trial and error for data preparation - Additional infrastructure/cost
  • 12. ORM 6.5 outlook Insert on conflictclause a.k.a. Upsert Joins in DML (update, delete) @FractionalSecondsfor temporal columns Generated values retrieval through returning clause Configure query cache layout
  • 13. What’s next? ORM 6.6 ● Nested array support ● Ensure orm.xml can fully replace hbm.xml ORM 7.0 ● Boot abstraction for type discovery and reflection ● Jakarta Persistence 3.2 ● Java 17 requirement ● Remove deprecated APIs ● Remove hbm.xml?
  • 14. Q & A