Single-Threaded Database Cluster Mass Insertion for Concurrent Writes

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 when multiple applications attempt to access data concurrently, which degrades system performance and user experience.

Innovation Solution

A system is introduced that decouples application output from database persistence by using a storage layer and a listener to temporarily store data, followed by a mass-insertion module that efficiently writes data to the database cluster without locking, allowing parallel access to multiple nodes.

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 system performance deteriorate due to inability to execute multiple simultaneous operations in parallel

Engineering Contradiction:
Improvedata consistencyVSAvoidprocessing speed
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

The database system is segmented into multiple single-threaded nodes that can operate independently in parallel. Each node maintains its own thread-safe operations, allowing the system as a whole to process multiple operations simultaneously across different nodes, thus improving productivity while preserving data consistency within each node.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

An intermediary layer is introduced between applications and database nodes to manage concurrent access. This intermediary coordinates operations across multiple single-threaded nodes, enabling parallel processing while maintaining data consistency through controlled access patterns and transaction management.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Productivity

If additional separate database servers are used to mitigate delays, then concurrent access capability is improved, but resource overhead and system complexity increase

Engineering Contradiction:
Improveconcurrent access capabilityVSAvoidsystem complexity
Core Design Contradiction:
ProductivityVSDevice complexity

Solution Approach 1:

Multiple single-threaded database nodes are merged into a coordinated cluster that functions as a unified system. The nodes share a common data model and coordination protocol, allowing them to work together to handle concurrent access requests without requiring completely separate database systems, thus reducing overall system complexity.

Inventive Principle:
Principle #5Merging (Combining)

Solution Approach 2:

Each database node is designed with universal interfaces and protocols that allow it to serve multiple functions and handle various types of operations. This multi-functionality enables the cluster to handle diverse concurrent access patterns without requiring specialized servers for each function, reducing system complexity.

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

3Productivity

If more database nodes are added to handle simultaneous operations, then processing throughput is improved, but coordination overhead and resource consumption increase

Engineering Contradiction:
Improveprocessing throughputVSAvoidcoordination overhead
Core Design Contradiction:
ProductivityVSLoss of energy

Solution Approach 1:

Transaction coordination and locking mechanisms are established in advance before concurrent operations begin. By pre-configuring access patterns, locks, and coordination protocols, the system minimizes the actual coordination overhead during execution, allowing more nodes to process operations in parallel with reduced interference.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The system uses periodic synchronization and batch coordination mechanisms rather than continuous communication between nodes. Operations are grouped into batches that are coordinated at specific intervals, reducing the frequency of coordination overhead while maintaining processing throughput across multiple nodes.

Inventive Principle:
Principle #19Periodic action

Data Source

PatentUS20260044533A1Mass insertion into single-threaded databases
Publication Date: 2026.02.12 ROKU INC
  • US20260044533A1 patent drawing
  • US20260044533A1 patent drawing
  • US20260044533A1 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 periodically 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, wherein at least one of the plurality of the corresponding database nodes receives a mirror of the data entry.