Dynamic ID Mapping for Database Sharding

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Database sharding using static IDs can lead to incorrect storage, retrieval, and misplacement of transactional data, especially when transactions involve multiple operations across multiple databases, as static IDs do not account for hierarchical relationships between parent and child transactions.

Innovation Solution

Implementing a system that uses dynamic IDs for database sharding, where a hierarchical structure is maintained using a mapping module to assign a unique root transaction ID to both parent and child transactions, ensuring all related data is stored and retrieved under a single transaction ID, thereby enabling accurate tracking and management of transactional data across multiple databases.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Ease of operation

If database sharding is implemented using static IDs, then data partitioning and management become easier, but transactional data may be incorrectly stored, retrieved, and misplaced across multiple databases

Engineering Contradiction:
Improvedata managementVSAvoiddata integrity
Core Design Contradiction:
Ease of operationVSReliability

Solution Approach 1:

The patent transitions from static IDs to dynamic IDs that adapt to hierarchical transaction relationships. The mapping module dynamically determines whether to create new root transaction IDs or associate child transactions with existing parent transaction IDs, enabling the system to adapt to different transaction scenarios while maintaining data integrity across sharded databases.

Inventive Principle:
Principle #15Dynamics

Solution Approach 2:

The mapping module serves as an intermediary between the application layer and sharded databases. It maintains the mapping between dynamic IDs and physical database locations, resolving the contradiction by providing a layer that ensures correct data placement and retrieval without compromising the ease of sharded data management.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Device complexity

If static IDs are used for database sharding, then implementation is simpler, but hierarchical relationships between parent and child transactions cannot be maintained

Engineering Contradiction:
Improvesystem complexityVSAvoidtransactional relationships
Core Design Contradiction:
Device complexityVSLoss of information

Solution Approach 1:

The patent implements a nested structure where child transactions are nested within parent transactions through hierarchical ID relationships. The mapping module maintains nested mappings that reflect the parent-child transaction relationships, allowing the system to preserve transactional hierarchies while managing sharded databases with controlled complexity.

Inventive Principle:
Principle #7Nested doll (Nesting)

Solution Approach 2:

The patent adds a hierarchical dimension to the traditional flat ID structure by introducing parent transaction IDs and child transaction IDs with nested relationships. This dimensional enhancement allows the system to track transactional hierarchies across sharded databases without significantly increasing overall system complexity.

Inventive Principle:
Principle #17Another dimension (Dimensionality change)

3Productivity

If data is partitioned across multiple databases using sharding, then data scalability is improved, but tracking transactions across multiple operations becomes difficult

Engineering Contradiction:
Improvedata scalabilityVSAvoidtransaction tracking
Core Design Contradiction:
ProductivityVSLoss of information

Solution Approach 1:

The mapping module performs multiple functions: it manages ID generation, maintains hierarchical relationships, tracks transactional data across shards, and enables data retrieval. This multi-functional approach allows the system to achieve data scalability through sharding while simultaneously maintaining comprehensive transaction tracking capabilities.

Inventive Principle:
Principle #6Universality (Multi-functionality)

Solution Approach 2:

The mapping module provides feedback mechanisms that track the location and status of transactional data across sharded databases. By maintaining mappings between dynamic IDs and physical storage locations, the system receives feedback about data placement, enabling accurate tracking of transactions across multiple operations while preserving scalability.

Inventive Principle:
Principle #23Feedback

Data Source

PatentUS11314710B2System and method for database sharding using dynamic IDs
Publication Date: 2022.04.26 PAYPAL INC
  • US11314710B2 patent drawing
  • US11314710B2 patent drawing
  • US11314710B2 patent drawing

AI summary

Aspects of the present disclosure involve systems, methods, devices, and the like for database sharding. In one embodiment, a system and method are introduced which enable the use of dynamic IDs for use with database sharding. The dynamic ID enables the use of a hierarchical structure such that original and trailing transactional data are identically labeled. To enable the use and labeling two or more unsharded tables may be used.