org.hibernate.cfg.AvailableSettings#BATCH_FETCH_STYLE
| Modifier and Type | Field and Description |
|---|---|
| public static final BatchFetchStyle | DYNAMIC
Dynamically builds its SQL based on the actual number of available ids. |
| public static final BatchFetchStyle | LEGACY
The legacy algorithm where we keep a set of pre-built batch sizes based on
|
| private static final Logger | |
| public static final BatchFetchStyle | PADDED
Still keeps the concept of pre-built batch sizes, but uses the next-bigger batch size and pads the extra identifier placeholders. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static BatchFetchStyle | |
| public static BatchFetchStyle | |
| public static BatchFetchStyle | |
| public static BatchFetchStyle[] |
| DYNAMIC | back to summary |
|---|---|
| public static final BatchFetchStyle DYNAMIC
Deprecated as a consequence of Dynamically builds its SQL based on the actual number of available ids. Does still limit to the batch-size defined on the entity/collection | |
| LEGACY | back to summary |
|---|---|
| public static final BatchFetchStyle LEGACY
Deprecated as a consequence of The legacy algorithm where we keep a set of pre-built batch sizes based on
For example, with a batch-size setting of 32 the pre-built batch sizes would be [32, 16, 10, 9, 8, 7, .., 1]. An attempt to batch load 31 identifiers would result in batches of 16, 10, and 5. | |
| log | back to summary |
|---|---|
| private static final Logger log | |
| PADDED | back to summary |
|---|---|
| public static final BatchFetchStyle PADDED
Deprecated as a consequence of Still keeps the concept of pre-built batch sizes, but uses the next-bigger batch size and pads the extra identifier placeholders. Using the same example of a batch-size setting of 32 the pre-built batch sizes would be the same. However, the attempt to batch load 31 identifiers would result just a single batch of size 32. The identifiers to load would be "padded" (aka, repeated) to make up the difference. | |
| BatchFetchStyle | back to summary |
|---|---|
| private BatchFetchStyle() | |
| byName | back to summary |
|---|---|
| public static BatchFetchStyle byName(String name)
Deprecated as a consequence of | |
| interpret | back to summary |
|---|---|
| public static BatchFetchStyle interpret(Object setting)
Deprecated as a consequence of | |
| valueOf | back to summary |
|---|---|
| public static BatchFetchStyle valueOf(String name)
Deprecated as a consequence of | |
| values | back to summary |
|---|---|
| public static BatchFetchStyle[] values()
Deprecated as a consequence of | |