Mass Insertion Architecture for Single-Threaded Database Clusters

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Single-threaded database servers are unable to execute multiple simultaneous operations in parallel, leading to unacceptable delays and resource overhead, especially when concurrency is not a priority, and existing solutions involving multiple database servers incur additional costs and complexity.

Innovation Solution

A system that includes a processor, memory, and a storage layer interfacing with software applications, using a listener to detect new data and an intermediate module for mass insertion into single-threaded databases, decoupling application output from database persistence, and employing a mass-insertion module to streamline write operations.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If single-threaded database servers are used to maintain data concurrency, then data consistency is preserved, but processing speed and productivity deteriorate due to inability to execute multiple simultaneous operations

Engineering Contradiction:
Improvedata consistencyVSAvoidprocessing speed
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

The patent segments the database write operations by introducing a staging area that separates data collection from data persistence. Multiple applications can write to the staging area simultaneously, and a single-threaded database server processes commits from the staging area sequentially. This segmentation allows concurrent write attempts without compromising the single-threaded database's consistency guarantees, thereby maintaining reliability while improving productivity.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent introduces a staging area as an intermediary component between applications and the single-threaded database server. This mediator receives write operations from multiple applications, buffers them, and forwards commits to the database server in a controlled manner. The intermediary decouples the concurrent write attempts from the sequential processing requirement, allowing high throughput while preserving data consistency through the database server's single-threaded commit processing.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Productivity

If multiple separate database servers are used to mitigate delays, then processing speed improves, but device complexity and resource overhead increase

Engineering Contradiction:
Improveprocessing speedVSAvoidsystem complexity
Core Design Contradiction:
ProductivityVSDevice complexity

Solution Approach 1:

The patent merges multiple database write operations into a single commit transaction through the staging area. Instead of requiring multiple separate database servers to handle concurrent writes, the system combines all write operations from multiple applications into unified commit requests that are processed by a single database server. This merging approach achieves parallel processing capability without the complexity of multiple database servers, reducing device complexity while maintaining improved productivity.

Inventive Principle:
Principle #5Merging (Combining)

3Productivity

If additional database servers are deployed to handle simultaneous access, then processing capacity increases, but resource overhead and cost increase

Engineering Contradiction:
Improveprocessing capacityVSAvoidresource overhead
Core Design Contradiction:
ProductivityVSQuantity of substance

Solution Approach 1:

The patent performs preliminary actions by pre-collecting and buffering write operations in the staging area before they reach the database server. Applications can initiate write operations concurrently, and the staging area prepares these operations for efficient batch processing. This preliminary action allows the system to handle high volumes of concurrent writes without requiring additional database server resources, increasing processing capacity while minimizing resource overhead by utilizing existing server capabilities more effectively.

Inventive Principle:
Principle #10Preliminary action

Data Source

PatentUS12475146B2Mass insertion into single-threaded databases
Publication Date: 2025.11.18 ROKU INC
  • US12475146B2 patent drawing
  • US12475146B2 patent drawing
  • US12475146B2 patent drawing

AI summary

Disclosed herein are system, method, and computer-readable device embodiments for mass insertion into single-threaded databases. An embodiment includes a processor and a memory, a storage layer to interface with a plurality of software applications and to receive data output from the plurality of software applications, and a listener that runs according to an update policy, to detect the presence of information newly stored within the storage layer. The processor and memory may be configured to maintain at least a part of a running database cluster including a plurality of nodes, with at least two nodes configured to run without multi-threading, and to execute an intermediate module to send at least part of the information to the database cluster, and to perform simultaneous access to multiple database nodes running without multi-threading.