Balancing Data Across Partitioned Tablespaces During Mass Load

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

In relational databases, mass data loading often results in performance issues due to uneven data distribution across partitions, as existing key value limits may not match the new data, necessitating immediate database reorganization, which increases downtime.

Innovation Solution

A method that distributes data evenly across partitions during a mass load, ignoring initial key value limits, and modifies these limits based on the actual data distribution, allowing for balanced partitions without reorganization.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If data is loaded using existing key value limits for partition distribution, then data is inserted according to defined partition boundaries, but data distribution becomes uneven across partitions causing performance problems

Engineering Contradiction:
Improvedata distribution balanceVSAvoiddatabase performance
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

The system performs preliminary analysis of the data to be loaded and determines optimal key value limits before the actual data loading process. This preliminary action ensures that partitions are created with appropriate boundaries that will result in balanced data distribution, preventing performance issues before they occur.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The system dynamically adjusts key value limit parameters based on the actual data characteristics and distribution patterns. By changing these parameters optimally, the system ensures balanced data distribution across partitions while maintaining efficient query performance.

Inventive Principle:
Principle #35Parameter changes

2Reliability

If database reorganization is performed to balance partitions after mass data load, then partition balance is improved, but database downtime increases

Engineering Contradiction:
Improvepartition balanceVSAvoiddatabase downtime
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The system performs preliminary analysis and optimization of key value limits before data loading, so that partitions are pre-configured for balanced distribution. This eliminates the need for post-load reorganization operations, thereby avoiding database downtime while still achieving partition balance.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The system skips the traditional multi-step process of load followed by reorganization by integrating the optimization step into the loading process itself. This allows the system to rush through to a balanced state in a single operation, minimizing downtime.

Inventive Principle:
Principle #21Skipping (Rushing through)

3Reliability

If key value limits are modified after data loading, then partition distribution can be optimized, but additional reorganization operations are required

Engineering Contradiction:
Improvedata distribution optimizationVSAvoidreorganization operations
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The system merges the key value limit modification operation with the data loading operation into a single integrated process. By combining these operations, the system achieves partition optimization without requiring separate reorganization steps, thereby reducing operational complexity.

Inventive Principle:
Principle #5Merging (Combining)

Solution Approach 2:

The system performs the key value limit modifications as a preliminary action during the loading process itself, rather than as a subsequent operation. This timing choice eliminates the need for additional reorganization operations while still achieving optimal partition distribution.

Inventive Principle:
Principle #10Preliminary action

Data Source

PatentUS9177004B2Balancing data across partitions of a table space during load processing
Publication Date: 2015.11.03 BMC SOFTWARE INC
  • US9177004B2 patent drawing
  • US9177004B2 patent drawing
  • US9177004B2 patent drawing

AI summary

A balancing technique allows a database administrator to perform a mass data load into a relational database employing partitioned tablespaces. The technique automatically balances the usage of the partitions in a tablespace as the data is loaded. Previous definitions of the partitions are modified after the loading of the data into the tablespace to conform with the data loaded into the tablespace.