发明名称 Query plans with parameter markers in place of object identifiers
摘要 In an embodiment, a first query is received that specifies a first object identifier. If a first query plan exists that implements the first query, except that the first query plan does not comprise the first object identifier and instead comprises a parameter marker in place of the first object identifier, a first query execution plan is created from the first query plan, substituting the first object identifier in the first query execution plan for the parameter marker, and the first query execution plan is executed to read a first object identified by the first object identifier.
申请公布号 US8924373(B2) 申请公布日期 2014.12.30
申请号 US201213570523 申请日期 2012.08.09
申请人 International Business Machines Corporation 发明人 Konik Rafal P.;Mittelstadt Roger A.;Muras Brian R.;Theuer Mark W.
分类号 G06F17/30 主分类号 G06F17/30
代理机构 代理人 Gamon Owen J.;Truelson Roy W.
主权项 1. A method comprising: receiving a first query that specifies a first object identifier; and if a first query plan exists that implements the first query, except that the first query plan does not comprise the first object identifier and instead comprises a parameter marker in place of the first object identifier, creating a first query execution plan from the first query plan, substituting the first object identifier in the first query execution plan for the parameter marker, and executing the first query execution plan to read a first object identified by the first object identifier; if a run time of the execution of the first query execution plan is more than a threshold amount longer than run times of all other query execution plans that match the first query execution plan except for the object identifier, building a new query plan for the first query, wherein the new query plan comprises the first object identifier; and if the new query plan is identical to the first query plan except that the new query plan comprises the first object identifier in place of the parameter marker, deleting the new query plan.
地址 Armonk NY US