Hibernate Shards

Horizontal Partitioning With Hibernate

Reference Guide

3.0.0.Beta2


Table of Contents

Preface
1. Architecture
1.1. Overview
1.2. Generalized Sharding Logic
1.3. Application Specific Sharding Logic
1.4. System Requirements
2. Configuration
2.1. Overview
2.1.1. Weather Report Database Schema
2.1.2. Weather Report Object Model
2.1.3. Contents of weather.hbm.xml
2.2. Obtaining a ShardedSessionFactory
2.3. Using Hibernate Annotations With Shards
2.4. Configuration Limitations
3. Shard Strategy
3.1. Overview
3.2. ShardAccessStrategy
3.2.1. SequentialShardAccessStrategy
3.2.2. ParallelShardAccessStrategy
3.3. ShardSelectionStrategy
3.4. ShardResolutionStrategy
3.5. ID Generation
4. Resharding
4.1. Virtual Shards
5. Querying
5.1. Overview
5.2. Criteria
5.3. HQL
5.4. Use of Shard Strategy When Querying
6. Limitations
6.1. Incomplete Implementation of Hibernate API
6.2. Cross-Shard Object Graphs
6.3. Distributed Transactions
6.4. Stateful Interceptors
6.5. Objects With Ids That Are Base Types
6.6. Replicated Data