Skip to Main Content
IBM Data Platform Ideas Portal for Customers


This portal is to open public enhancement requests against products and services offered by the IBM Data Platform organization. To view all of your ideas submitted to IBM, create and manage groups of Ideas, or create an idea explicitly set to be either visible by all (public) or visible only to you and IBM (private), use the IBM Unified Ideas Portal (https://ideas.ibm.com).


Shape the future of IBM!

We invite you to shape the future of IBM, including product roadmaps, by submitting ideas that matter to you the most. Here's how it works:


Search existing ideas

Start by searching and reviewing ideas and requests to enhance a product or service. Take a look at ideas others have posted, and add a comment, vote, or subscribe to updates on them if they matter to you. If you can't find what you are looking for,


Post your ideas

Post ideas and requests to enhance a product or service. Take a look at ideas others have posted and upvote them if they matter to you,

  1. Post an idea

  2. Upvote ideas that matter most to you

  3. Get feedback from the IBM team to refine your idea


Specific links you will want to bookmark for future use

Welcome to the IBM Ideas Portal (https://www.ibm.com/ideas) - Use this site to find out additional information and details about the IBM Ideas process and statuses.

IBM Unified Ideas Portal (https://ideas.ibm.com) - Use this site to view all of your ideas, create new ideas for any IBM product, or search for ideas across all of IBM.

ideasibm@us.ibm.com - Use this email to suggest enhancements to the Ideas process or request help from IBM for submitting your Ideas.

IBM Employees should enter Ideas at https://ideas.ibm.com



Status Submitted
Workspace Db2
Components Db2 on-premise
Created by Guest
Created on Oct 29, 2026

Enable coordinated local index builds on Db2 HADR primary and standby nodes to reduce index-related log flooding, minimize replication lag, improve standby replay performance, and maintain recovery and takeover readiness.

1. Your Idea

Enable coordinated local index builds on Db2 HADR primary and standby nodes to reduce index-related log flooding, minimize replication lag, improve standby replay performance, and maintain recovery and takeover readiness.

2. Description

Business Problem

In IBM Db2 LUW environments using High Availability Disaster Recovery (HADR), large-scale CREATE INDEX operations can generate substantial transaction log volumes when LOGINDEXBUILD is enabled.

Under the conventional index logging mechanism, index page changes are captured in the transaction log and transmitted to the HADR standby for replay. For large tables, complex composite indexes, and high-volume maintenance workloads, this can introduce significant operational overhead.

The resulting challenges include:

Excessive transaction log generation: Large index builds can produce substantial physical log records, increasing active log consumption and archive storage requirements.

HADR replication lag: The standby must receive and replay index-related log records alongside normal transactional activity, potentially creating a significant replay backlog.

Network bandwidth saturation: High-volume index logging competes with business-critical transaction log shipping for available network capacity.

Reduced standby readiness: Sustained replay lag can increase the recovery point exposure of asynchronous configurations and delay takeover readiness.

Maintenance window constraints: Database administrators may need to schedule large index operations during periods of reduced activity to avoid disrupting HADR performance.

Tradeoffs with LOGINDEXBUILD OFF: Disabling index-build logging reduces log generation but introduces standby index validity and rebuild considerations during recovery or takeover.

This creates an operational tradeoff between minimizing log volume and maintaining a fully synchronized, takeover-ready standby.

Proposed Enhancement

Introduce a native Out-of-Band Coordinated Index Build Framework within the Db2 LUW HADR architecture.

Rather than requiring every physical index page modification to be transmitted and replayed through the conventional HADR transaction log stream, Db2 would coordinate index construction between the primary and standby using compact metadata and recovery-safe synchronization markers.

The proposed framework would support the following capabilities.

A. Index Build Intent and Metadata Propagation

When an eligible CREATE INDEX operation begins on the primary, Db2 communicates a coordinated index-build intent to the standby.

The metadata would include:

Database and object identifiers.

Target table and index definitions.

Indexed columns, key ordering, and uniqueness attributes.

Index organization and relevant build options.

Utility execution identifier.

Consistent database log-sequence boundary.

Supported feature and compatibility information.

The primary and standby would establish a consistent logical data boundary before initiating their respective index builds.

B. Parallel Local Index Construction

Both HADR nodes would construct the index locally using their own database storage and processing resources.

The standby would build the index from its locally maintained table data rather than replaying the full volume of index-page modifications generated by the primary.

This would reduce the amount of index-related physical logging required for standby synchronization.

The architecture should allow independent execution progress so that a slower standby does not unnecessarily block the primary, while preserving the consistency guarantees required by the configured HADR synchronization mode.

C. Concurrent Transaction Handling

The framework must account for concurrent INSERT, UPDATE, and DELETE operations occurring while index construction is underway.

Db2 should establish a consistent starting log position and use an appropriate catch-up mechanism to incorporate changes committed during the build.

The standby index must not become available for use until its logical contents are consistent with the required database state.

D. Index Verification and Activation

Upon completing its local index construction, the standby would perform engine-managed verification.

Verification should establish logical equivalence, including index definition, key coverage, uniqueness requirements, and transaction consistency.

Physical page-by-page checksums should not be mandatory because independently built B-tree indexes may have different valid physical layouts.

Following successful verification and synchronization, Db2 would transition the index to a valid operational state using a durable completion protocol.

E. Automatic Recovery and Fallback

If coordinated index construction cannot complete safely, Db2 should support a documented recovery or fallback mechanism.

Possible outcomes include resuming the standby build, reconstructing the index, or reverting to conventional logged index processing where supported.

No incomplete or logically inconsistent index should become available following a failure or HADR takeover.

Expected Business Value

The enhancement would:

Reduce index-related transaction log amplification.

Lower network bandwidth consumption during large index builds.

Reduce standby replay overhead and HADR replication lag.

Improve standby takeover readiness during maintenance activities.

Reduce the operational need to disable index-build logging.

Allow larger index maintenance operations to run with less impact on production workloads.

Improve infrastructure utilization and reduce log-storage pressure.

Strengthen Db2 LUW's suitability for high-throughput, continuously available enterprise databases.

The objective is to improve HADR efficiency while maintaining Db2's established transaction consistency, recovery, and availability guarantees.

3. Additional details

Technical Architecture and Design Considerations

1. Recovery-Safe Index Coordination Protocol

Introduce a durable utility coordination state machine, potentially including:

INITIATED

BUILDING

CATCHING_UP

VERIFYING

READY

COMMITTED

ABORTED

RECOVERY_REQUIRED

Each state transition must be associated with the appropriate database log position and recoverable metadata.

2. HADR Synchronization Mode Compatibility

The design should explicitly support or define documented restrictions for:

SYNC

NEARSYNC

ASYNC

SUPERASYNC

Primary completion behavior and standby readiness must respect the configured HADR protection policy.

A primary index build should not be required to wait indefinitely for standby completion unless the selected consistency policy explicitly requires that behavior.

3. Takeover During Index Construction

The framework must address both graceful and forced takeover while an index build is in progress.

Following takeover, Db2 must determine whether the index is valid, requires catch-up processing, must be rebuilt, or must remain unavailable.

The database must never expose an incomplete index as valid.

4. Concurrent DML and Unique Index Enforcement

Special consideration is required for:

High-frequency updates to indexed columns.

Concurrent row insertion and deletion.

Unique index creation and duplicate-key detection.

Transactions committed during the build.

Long-running transactions spanning the build boundary.

Changes to underlying table structure during utility execution.

Index validation must preserve the same logical correctness expected from conventional Db2 index creation.

5. Multiple HADR Standbys

Where multiple standby databases are configured, each standby should maintain independent index-build progress and readiness status.

A slower or disconnected auxiliary standby should not automatically prevent other eligible standbys from completing their builds.

6. Resource and Workload Management

Provide configurable controls for:

Standby CPU utilization.

Sort memory consumption.

Temporary tablespace usage.

Parallel index-build workers.

Utility concurrency.

Network bandwidth allocation.

Primary and standby resource prioritization.

The framework should avoid introducing excessive resource contention that degrades transactional log replay.

7. Backup, Restore, and Rollforward Compatibility

The optimization must remain compatible with:

Full and incremental database backups.

Archived transaction logs.

Rollforward recovery.

Standby initialization and reinitialization.

Database restore to a different host.

Disaster recovery after loss of both original HADR transport endpoints.

Index reconstruction must remain possible even when the original out-of-band coordination session is unavailable.

8. Monitoring and Diagnostics

Expose coordinated index-build metrics through Db2 monitoring interfaces.

Suggested metrics include:

Utility execution ID.

Index and table identifiers.

Build initiation and completion timestamps.

Primary and standby build progress.

Index-related log bytes avoided.

Standby replay lag.

Verification status.

Catch-up processing duration.

Fallback reason.

Takeover readiness status.

9. Backward Compatibility

The framework should support capability negotiation between HADR partners.

When coordinated index building is unsupported because of Db2 version, fix-pack differences, index type, or configuration restrictions, Db2 should use a supported conventional mechanism.

10. Feature Configuration

IBM could consider introducing an optional database configuration parameter or utility-level option, for example:

HADR_INDEX_BUILD_MODE = LOGGED | COORDINATED | AUTO

This is an illustrative configuration proposal, not an existing Db2 parameter.

The AUTO option could allow the Db2 engine to determine whether coordinated index construction is appropriate based on workload, object type, standby availability, and recovery requirements.

Suggested Acceptance Criteria

The enhancement should demonstrate:

Material reduction in index-related HADR log volume compared with conventional logged index builds.

Lower standby replay lag under equivalent workloads.

Successful index consistency verification after concurrent DML.

Safe recovery from interrupted index builds.

Successful graceful and forced takeover testing.

No silent index inconsistency or data divergence.

Continued compatibility with backup, restore, and rollforward workflows.

No unacceptable regression in normal transactional throughput.

IBM Engineering Consideration

The requested capability is architectural rather than a mandate to implement a specific physical protocol.

IBM Engineering should have flexibility to use coordinated local construction, compact logical redo, selective page shipping, or a hybrid approach, provided the implementation reduces log amplification and preserves HADR recovery guarantees.

Needed By Yesterday (Let's go already!)