Database Function Node Compiling Scripts for Query Speed

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current database systems face inefficiencies in executing complex functions and queries, as they often require transferring large data sets to client applications for processing, leading to increased latency and resource utilization.

Innovation Solution

The implementation of a function node within the database layer that compiles and executes complex functions using SQL scripts or low-level languages like C++, allowing for data-intensive calculations to be performed directly within the database, reducing the need for data transfer and enhancing processing efficiency.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Productivity

If complex functions are executed by transferring data to client applications for processing, then client-side processing capability is utilized, but data transfer time and network resource utilization increase

Engineering Contradiction:
Improvequery execution speedVSAvoiddata transfer latency
Core Design Contradiction:
ProductivityVSLoss of time

Solution Approach 1:

The patent extracts the function execution capability from the client application and embeds it directly into the database management system through a function node. This allows complex functions to be executed within the database engine itself, eliminating the need to transfer data to the client for processing, thus resolving the contradiction between utilizing client processing capability and minimizing data transfer latency

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

The function node acts as an intermediary component within the database management system that bridges the gap between standard SQL queries and complex user-defined functions. It enables complex functions to be executed at the database layer without requiring data transfer to the client, while maintaining the ability to utilize client-side processing when necessary

Inventive Principle:
Principle #24Intermediary (Mediator)

2Adaptability or versatility

If complex functions are executed by transferring large data sets to client applications, then client processing capability is utilized, but network resource utilization and system overhead increase

Engineering Contradiction:
Improvecomplex function processing capabilityVSAvoidsystem architecture complexity
Core Design Contradiction:
Adaptability or versatilityVSDevice complexity

Solution Approach 1:

The function node is designed as a universal component within the database management system that can handle both standard SQL queries and complex user-defined functions. It provides multi-functionality by enabling the database engine to execute diverse types of operations without requiring separate client-side processing, thus maintaining adaptability while simplifying system architecture

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

Solution Approach 2:

The patent segments the database system into distinct components including the query optimizer, execution engine, and function node. This segmentation allows complex functions to be handled by the specialized function node without complicating the overall system architecture, as each component has a specific responsibility and interfaces through standardized mechanisms

Inventive Principle:
Principle #1Segmentation

3Ease of operation

If data is transferred to client applications for processing, then client-side flexibility is maintained, but database server resource utilization increases and processing efficiency decreases

Engineering Contradiction:
Improvequery execution simplicityVSAvoidprocessing efficiency
Core Design Contradiction:
Ease of operationVSProductivity

Solution Approach 1:

The function node enables the database management system to serve itself by executing complex functions internally without requiring external client intervention. The database engine can process complex queries and functions autonomously, maintaining ease of operation for users while dramatically improving processing efficiency by eliminating data transfer overhead

Inventive Principle:
Principle #25Self-service

Data Source

PatentUS9026525B2Generic node including stored script
Publication Date: 2015.05.05 SAP SE
  • US9026525B2 patent drawing
  • US9026525B2 patent drawing
  • US9026525B2 patent drawing

AI summary

Methods and apparatus, including computer program products, are provided for providing for processing calculation plans. In one aspect, there is provided a computer-implemented method. The method may include generating a calculation plan including a plurality of nodes; determining whether at least one of the nodes includes a function node; and compiling the function node into executable code to enable execution of the plurality of nodes including the function node at the database. Related apparatus, systems, methods, and articles are also described.