Row-to-Column Data Archiving for Historical Traceability

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current data processing methods in databases often result in the loss of historical data, making it difficult to trace and maintain data integrity, as historical data is typically cleared without effective preservation mechanisms.

Innovation Solution

A data processing method that involves transferring target rows from a row-oriented database to a column-oriented database, where attribute values are stored in target pages, and then clearing the rows after a specified time, ensuring historical data is preserved and easily traceable.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Productivity

If historical data is cleared from the database using related operations, then storage space is freed and database performance is improved, but historical data is lost and cannot be traced

Engineering Contradiction:
Improvedatabase performanceVSAvoidhistorical data
Core Design Contradiction:
ProductivityVSLoss of information

Solution Approach 1:

The patent segments historical data into two storage locations: the original row-oriented database for current operations and a column-oriented archive database for historical preservation. This segmentation allows the main database to maintain performance while historical data is preserved separately for tracing purposes.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent introduces an intermediary archiving mechanism that transfers historical data from the row-oriented database to a column-oriented database. This intermediary process enables data to be moved systematically, preserving historical records while freeing up space in the primary database.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Loss of information

If all historical data is preserved in the original database, then data tracing is enabled, but database complexity increases and performance degrades

Engineering Contradiction:
Improvehistorical data traceabilityVSAvoiddatabase complexity
Core Design Contradiction:
Loss of informationVSDevice complexity

Solution Approach 1:

The patent divides the database system into two specialized components: a row-oriented database optimized for current transactions and a column-oriented database optimized for historical storage and analysis. This segmentation reduces complexity in each individual database while enabling comprehensive historical tracing across both systems.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent adds a temporal dimension to data storage by implementing a data archiving mechanism that separates current and historical data across different storage dimensions. This allows the system to maintain operational simplicity while preserving historical data through a structured multi-dimensional approach.

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

3Loss of information

If data is transferred from row-oriented to column-oriented database, then historical data is preserved for tracing, but data processing time increases

Engineering Contradiction:
Improvehistorical data preservationVSAvoiddata processing time
Core Design Contradiction:
Loss of informationVSLoss of time

Solution Approach 1:

The patent implements preliminary archiving by proactively transferring historical data to the column-oriented database before it is needed for analysis. This preliminary action prevents data from accumulating in the row-oriented database, reducing query times and avoiding the need for time-consuming data transfers when historical data is required.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent implements an automated archiving system that self-manages the transfer of historical data based on predefined criteria. This self-service mechanism operates independently, continuously archiving data without requiring manual intervention or causing performance degradation during peak operational periods.

Inventive Principle:
Principle #25Self-service

Data Source

PatentUS11636083B2Data processing method and apparatus, storage medium and electronic device
Publication Date: 2023.04.25 TENCENT TECHNOLOGY (SHENZHEN) CO LTD
  • US11636083B2 patent drawing
  • US11636083B2 patent drawing
  • US11636083B2 patent drawing

AI summary

This application discloses a data processing method and apparatus, a storage medium and an electronic device. The method includes: obtaining, by the electronic device, at least one target row to be cleared at a target time from a data table of a row-oriented database; storing target attribute values recorded in the at least one target row to target pages in a column-oriented database; and clearing the at least one target row after the target time arrives. The application resolves the technical problem that it is difficult to trace historical data in the related data processing technology.