Temporal User-Defined Function Versioning in Databases

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

In temporal databases, user-defined functions (UDFs) often change over time, leading to inconsistencies and incorrect results if not properly synchronized with queries, as existing mechanisms lack a systematic way to manage versioning and apply the correct UDF versions for specific time periods.

Innovation Solution

A database system that includes a processor configured to receive and store temporal user-defined functions along with their applicable time periods, ensuring that the correct version of the UDF is used for queries by maintaining a database dictionary with versioning information.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Adaptability or versatility

If user-defined functions are updated over time to reflect changing requirements, then the functions become more adaptable and useful, but query results become inconsistent and unreliable because the updated functions may produce different results than previous versions

Engineering Contradiction:
ImproveUDF adaptabilityVSAvoidquery result consistency
Core Design Contradiction:
Adaptability or versatilityVSReliability

Solution Approach 1:

The system performs preliminary action by assigning a time period to each UDF version at the time of creation. This preliminary timestamp assignment enables the system to automatically determine which UDF version should be applied to queries based on their execution time, ensuring consistent and reliable query results while allowing UDFs to be updated and adapted over time.

Inventive Principle:
Principle #10Preliminary action

2Reliability

If manual synchronization mechanisms are implemented to keep UDF versions synchronized with queries, then query result consistency can be maintained, but the system complexity and operational burden increase significantly

Engineering Contradiction:
ImproveUDF version synchronizationVSAvoidversion management complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The system implements self-service by automatically selecting and applying the appropriate UDF version based on the query execution time and the stored time period metadata. This eliminates the need for manual synchronization mechanisms, reducing system complexity and operational burden while maintaining reliable UDF version synchronization.

Inventive Principle:
Principle #25Self-service

3Reliability

If manual tracking and synchronization of UDF versions is performed, then some level of consistency can be achieved, but the time and resources required for maintenance increase substantially

Engineering Contradiction:
ImproveUDF version consistencyVSAvoidversion synchronization time
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The system performs preliminary action by embedding the time period information in the UDF metadata at creation time. This allows the system to automatically and instantly determine the appropriate UDF version for any query based on its execution time, eliminating the need for time-consuming manual tracking and synchronization processes.

Inventive Principle:
Principle #10Preliminary action

4Ease of operation

If the database system automatically manages temporal UDF versions with time period metadata, then query result consistency is ensured without manual intervention, but the database dictionary structure and storage requirements become more complex

Engineering Contradiction:
Improveautomatic UDF version managementVSAvoiddatabase dictionary structure
Core Design Contradiction:
Ease of operationVSDevice complexity

Solution Approach 1:

The system applies the nested doll principle by integrating the time period metadata directly within the UDF structure in the database dictionary. The time period information is nested as part of the UDF's metadata, allowing the system to manage temporal versions automatically while keeping the overall database dictionary structure organized and manageable.

Inventive Principle:
Principle #7Nested doll (Nesting)

Data Source

PatentUS9454344B1Temporal user-defined functions
Publication Date: 2016.09.27 TERADATA CORP
  • US9454344B1 patent drawing
  • US9454344B1 patent drawing
  • US9454344B1 patent drawing

AI summary

A database system may include a memory device configured to store a database dictionary and a processor in communication with the storage device. The processor may be configured to receive a temporal user-defined function (UDF) and to store, in the database dictionary, the temporal UDF and a period of time over which to apply the temporal UDF. A method may include receiving a temporal UDF and include determining a period of time over which to apply the temporal UDF. The method may further include storing the temporal UDF and the period of time over which to apply the temporal UDF. A computer-readable medium may include instructions to receive a temporal UDF and instructions to store the temporal UDF. The computer-readable medium may further include instructions to determine a period of applicability of the temporal UDF and instructions to store the period of applicability in a storage device.