Invention Grant
- Patent Title: Case statement optimization
-
Application No.: US15370593Application Date: 2016-12-06
-
Publication No.: US10394812B2Publication Date: 2019-08-27
- Inventor: Andrei F. Lurie , Terence P. Purcell , Martina Simova , Jonathan Sloan
- Applicant: International Business Machines Corporation
- Applicant Address: US NY Armonk
- Assignee: International Business Machines Corporation
- Current Assignee: International Business Machines Corporation
- Current Assignee Address: US NY Armonk
- Agency: Edell, Shapiro & Finnan, LLC
- Agent Richard Wilhelm
- Main IPC: G06F16/22
- IPC: G06F16/22 ; G06F16/2453

Abstract:
A method, a computer program product and a system are provided. A case expression is analyzed for redundant expressions, patterns equivalent to a built-in function, and specific functions to form a simplified expression, wherein the case expression is written in a language supported by a database management system. The simplified expression is optimized based on a cost benefit evaluation of no optimization, native code generation, hashing inputs, and a results caching algorithm to form an execution plan. The execution plan is utilized in the database management system for the case expression.
Public/Granted literature
- US20180157707A1 CASE STATEMENT OPTIMIZATION Public/Granted day:2018-06-07
Information query