Database Documentation Propagation via Temporal Log Backtracking

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Maintaining up-to-date database documentation is challenging due to frequent changes in database structures, such as table additions and schema modifications, which existing methods fail to address effectively.

Innovation Solution

A method involving the generation of a directed acyclic graph (DAG) based on database query logs to identify relationships between tables and propagate documentation from existing to new tables, ensuring comprehensive and automated documentation across the database.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If manual documentation updates are performed by developers or administrators, then documentation accuracy is maintained, but the time and effort required increases significantly due to frequent database changes

Engineering Contradiction:
Improvedocumentation accuracyVSAvoidtime for documentation updates
Core Design Contradiction:
Measurement precisionVSLoss of time

Solution Approach 1:

The system performs self-service by automatically generating documentation through DAG traversal and propagation algorithms. The database system itself generates the documentation by analyzing its own schema relationships, eliminating the need for manual intervention while maintaining high accuracy through automated relationship detection and metadata propagation.

Inventive Principle:
Principle #25Self-service

Solution Approach 2:

The system performs preliminary action by proactively generating documentation whenever database schema changes occur. Instead of waiting for manual updates, the system automatically detects schema changes, constructs DAGs, and propagates documentation metadata in advance, ensuring documentation is always current without requiring reactive manual intervention.

Inventive Principle:
Principle #10Preliminary action

2Loss of information

If automated documentation propagation is implemented, then documentation completeness improves, but system complexity increases due to DAG construction and traversal mechanisms

Engineering Contradiction:
Improvedocumentation completenessVSAvoidsystem complexity
Core Design Contradiction:
Loss of informationVSDevice complexity

Solution Approach 1:

The DAG serves as an intermediary data structure that mediates between the database schema and the documentation generation process. By introducing this intermediate representation, the system can systematically capture and propagate relationships without requiring complex direct analysis of schema changes, simplifying the overall architecture while ensuring comprehensive documentation coverage.

Inventive Principle:
Principle #24Intermediary (Mediator)

3Measurement precision

If documentation is manually updated for each table creation, then documentation quality is maintained, but productivity decreases due to the repetitive manual effort required

Engineering Contradiction:
Improvedocumentation qualityVSAvoiddocumentation update speed
Core Design Contradiction:
Measurement precisionVSProductivity

Solution Approach 1:

The system performs self-service by automatically generating documentation through DAG traversal and propagation algorithms. The database system itself generates the documentation by analyzing its own schema relationships, eliminating the need for manual intervention while maintaining high accuracy through automated relationship detection and metadata propagation.

Inventive Principle:
Principle #25Self-service

Solution Approach 2:

The system ensures continuous documentation generation by automatically triggering DAG construction and metadata propagation whenever schema changes occur. This continuous automated process eliminates gaps in documentation quality while maintaining high speed, as the system continuously adapts documentation to reflect current database state without manual interruption.

Inventive Principle:
Principle #20Continuity of useful action

Data Source

PatentUS11169979B2Database-documentation propagation via temporal log backtracking
Publication Date: 2021.11.09 INTUIT INC
  • US11169979B2 patent drawing
  • US11169979B2 patent drawing
  • US11169979B2 patent drawing

AI summary

Aspects of the present disclosure provide techniques for database documentation propagation. Embodiments include scanning a log comprising a plurality of database queries to identify one or more database queries of the plurality of database queries, the one or more database queries being associated with generating a new table of a database based on information in an existing table of the database. Embodiments include generating, based on the one or more database queries identified during the scanning, a directed acyclic graph (DAG) comprising: a first vertex representing the existing table; a second vertex representing the new table; and a directed edge connecting the first vertex to the second vertex. Embodiments include obtaining documentation associated with the existing table. Embodiments include propagating, based on the DAG, at least a subset of the documentation associated with the existing table to the new table.