Query Plan Caching for SOA Service Performance Tuning

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Enterprises face challenges in implementing Service Oriented Architecture (SOA) due to start-up complexities and lack of graphical tools, leading to delayed return on investment and inefficiencies in data service access, particularly in maintaining minimal response times for user applications.

Innovation Solution

The use of query plans for building and performance tuning services, which involve determining a preferred method for query satisfaction that meets performance criteria, such as selecting techniques like SQL pushdown, batched join processing, or parallel data source requests, to improve query efficiency and reduce lag times.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Adaptability or versatility

If Service Oriented Architecture (SOA) is implemented to simplify IT services, then service reusability and change tolerance are improved, but start-up complexities and implementation time increase

Engineering Contradiction:
Improveservice reusabilityVSAvoidstart-up complexities
Core Design Contradiction:
Adaptability or versatilityVSDevice complexity

Solution Approach 1:

The patent applies preliminary action by pre-compiling query plans and caching service access patterns before actual service requests. The system analyzes service access queries in advance, generates optimized query plans, and stores them in a cache, so that when service requests arrive, they can be executed immediately using pre-prepared plans rather than being processed from scratch each time.

Inventive Principle:
Principle #10Preliminary action

2Adaptability or versatility

If hand-coded data services are used due to lack of graphical tools, then implementation flexibility is maintained, but development time and complexity increase

Engineering Contradiction:
Improveimplementation flexibilityVSAvoiddevelopment time
Core Design Contradiction:
Adaptability or versatilityVSLoss of time

Solution Approach 1:

The patent applies self-service by enabling the system to automatically generate service access queries and query plans without requiring manual hand-coding. The query compilation mechanism autonomously analyzes service requirements, generates appropriate SQL queries, optimizes them using cached query plans, and executes them, thereby eliminating the time-consuming hand-coding process while maintaining implementation flexibility through the adaptive query generation capability.

Inventive Principle:
Principle #25Self-service

3Ease of operation

If traditional query processing is used without query plans, then implementation simplicity is maintained, but query execution time and response time increase

Engineering Contradiction:
Improveimplementation simplicityVSAvoidquery execution time
Core Design Contradiction:
Ease of operationVSLoss of time

Solution Approach 1:

The patent applies preliminary action by pre-compiling query plans that outline the steps to retrieve data satisfying queries. The system analyzes query patterns in advance, determines optimal execution strategies, and caches these plans. When actual queries are executed, the system retrieves pre-compiled plans from the cache, significantly reducing query execution time compared to processing queries without pre-compilation.

Inventive Principle:
Principle #10Preliminary action

4Measurement precision

If service access queries are processed without caching, then query accuracy is maintained, but response time and resource usage increase

Engineering Contradiction:
Improvequery accuracyVSAvoidresponse time
Core Design Contradiction:
Measurement precisionVSLoss of time

Solution Approach 1:

The patent applies preliminary action by caching service access query results and query plans after their first execution. The cache stores pre-computed results and execution strategies, so that subsequent identical or similar queries can be served directly from the cache without re-execution, maintaining query accuracy while dramatically reducing response time for repeated access patterns.

Inventive Principle:
Principle #10Preliminary action

Data Source

PatentUS7778998B2Liquid data services
Publication Date: 2010.08.17 ORACLE INT CORP
  • US7778998B2 patent drawing
  • US7778998B2 patent drawing
  • US7778998B2 patent drawing

AI summary

In accordance with embodiments of the present invention, there are provided mechanisms and methods for using query plans for building and performance tuning services accessed on behalf of a requestor. These mechanisms and methods for using query plans for building and performance tuning services makes it possible to examine the query plan and response times for query execution. The ability to examine the query plans and response times for query execution makes it possible to improve query efficiency and apply caching more effectively.