Parallel SQL Script Execution via Comment Control

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Running SQL scripts in a sequential manner is time-consuming, especially for large databases, and breaking them into multiple scripts for parallel execution is a complex and error-prone process due to dependencies within the script commands.

Innovation Solution

A method and mechanism that allow for the automatic parallel execution of SQL scripts by embedding control statements as comments, which direct a parallel script executor to break the script into sections that can run concurrently, using multiple execution threads and error handling control statements.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Loss of time

If a SQL script is executed in a sequential manner, then the execution is simple and reliable, but the execution time is long especially for large databases

Engineering Contradiction:
Improveexecution timeVSAvoidscript execution complexity
Core Design Contradiction:
Loss of timeVSDevice complexity

Solution Approach 1:

The patent divides the SQL script into multiple independent sections using comment markers (e.g., --SECTION 1, --SECTION 2). Each section can be executed independently in parallel, reducing overall execution time while maintaining simple syntax. The script is segmented into manageable portions that can run concurrently without interfering with each other.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent introduces comment markers as intermediary elements that carry control information. These comments act as mediators between the script executor and the script content, providing instructions for parallel execution without requiring complex programming constructs. The comments serve as a simple interface for defining execution parallelism.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Loss of time

If a SQL script is broken into multiple shorter scripts for parallel execution, then the execution time is reduced, but the organization and administration becomes complex and error-prone

Engineering Contradiction:
Improveexecution timeVSAvoidscript organization and administration
Core Design Contradiction:
Loss of timeVSEase of operation

Solution Approach 1:

The patent merges multiple script execution logic into a single unified script file by using comment markers to define sections. Instead of creating separate script files, the entire script remains in one location with clear delimiters indicating which portions can execute in parallel. This maintains ease of organization while enabling parallel execution.

Inventive Principle:
Principle #5Merging (Combining)

Solution Approach 2:

The comment markers serve multiple functions: they define section boundaries for parallel execution, provide error handling instructions, and maintain script readability. This multi-functionality reduces the need for separate control mechanisms, simplifying administration while enabling complex execution patterns.

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

3Loss of time

If multiple scripts are created for parallel execution, then the execution time is reduced, but dependencies between script commands cannot be properly managed

Engineering Contradiction:
Improveexecution timeVSAvoiddependency management
Core Design Contradiction:
Loss of timeVSReliability

Solution Approach 1:

The patent performs preliminary analysis of the script to identify dependencies between commands. Based on this analysis, it automatically assigns commands to different sections that can execute in parallel, ensuring that dependent commands are properly ordered. This preliminary organization ensures reliability is maintained while enabling parallel execution.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent incorporates error handling control statements that provide feedback mechanisms. When errors occur in parallel-executing sections, the system can detect and respond appropriately, maintaining reliability. The feedback loop ensures that dependency issues are caught and handled, allowing parallel execution without sacrificing reliability.

Inventive Principle:
Principle #23Feedback

Data Source

PatentUS8893144B2Systems and methods for parallel execution of a portion of a script by interpreting comments in the script as parallel control statements
Publication Date: 2014.11.18 SAP SE
  • US8893144B2 patent drawing
  • US8893144B2 patent drawing
  • US8893144B2 patent drawing

AI summary

According to some embodiments, a script written in a scripting programming language may be received (e.g., by a script executer). It may be determined that a first line in the script comprises a first comment, and the first comment may be interpreted as an embedded parallel part control statement. Parallel execution of a portion of the script may then be automatically arranged in accordance with the parallel part control statement.