Invention Grant
- Patent Title: Selectivity-based optimized-query-plan caching
- Patent Title (中): 基于选择性的优化查询计划缓存
-
Application No.: US12533365Application Date: 2009-07-31
-
Publication No.: US08224806B2Publication Date: 2012-07-17
- Inventor: Awny K. Al-Omari , Tom C. Reyes , Robert M. Wehrmeister , Ahmed K. Ezzat , QiFan Chen
- Applicant: Awny K. Al-Omari , Tom C. Reyes , Robert M. Wehrmeister , Ahmed K. Ezzat , QiFan Chen
- Applicant Address: US TX Houston
- Assignee: Hewlett-Packard Development Company, L.P.
- Current Assignee: Hewlett-Packard Development Company, L.P.
- Current Assignee Address: US TX Houston
- Main IPC: G06F7/00
- IPC: G06F7/00 ; G06F17/30

Abstract:
Optimized query plans are partitioned into equivalence groups that each include equivalence classes. Each equivalence group corresponds to a particular compiled, normalized, and parameterized query plan prior to optimization. Each equivalence class within an equivalence group corresponds to a different query plan corresponding to the particular compiled, normalized, and parameterized query plan represented by the equivalence group that has been optimized with respect to the selectivity of one or more predicate clauses of the query that is compiled to produce the particular compiled, normalized, and parameterized query plan. Optimized query plans are cached according to their respective equivalence groups and equivalence classes. When a query, similar to a query already compiled, optimized, and cached, is subsequently received and compiled, a selectivity for a predicate of the compiled query is computed, allowing the database management system to retrieve a cached query plan optimized for a similar query with similar selectivity.
Public/Granted literature
- US20110029508A1 SELECTIVITY-BASED OPTIMIZED-QUERY-PLAN CACHING Public/Granted day:2011-02-03
Information query