发明名称 Database large object reorganization
摘要 Embodiments of the invention relate to database large object (LOB) reorganization. An aspect of the invention includes calculating an activity of an inline LOB. The length of an inline LOB is redefined according to the activity of the inline LOB. LOB reorganization is performed based on the redefined length of the inline LOB.
申请公布号 US9158798(B2) 申请公布日期 2015.10.13
申请号 US201213463870 申请日期 2012.05.04
申请人 International Business Machines Corporation 发明人 Wei Ke Wei;Wu Shuo;Yang Xin Ying;Zhou Xiang
分类号 G06F17/30 主分类号 G06F17/30
代理机构 Cantor Colburn LLP 代理人 Cantor Colburn LLP
主权项 1. A method for database large object (LOB) reorganization, comprising: calculating, by a computer, an activity of an inline LOB, wherein the activity of the inline LOB is calculated by dividing an inline LOB hit counter, which is a number of times that the inline LOB has been accessed during a time period, by a data row hit counter, which is calculated using the number of times a data row of the inline LOB has been accessed over the period of time, or a data page hit counter, which is calculated using the number of times a data page of the inline LOB has been accessed over the period of time; redefining a length of the inline LOB according to the activity of the inline LOB by determining whether the activity of the inline LOB exceeds a predetermined threshold and in response to determining that the activity of the inline LOB does not exceed the predetermined threshold, redefining the length of the inline LOB as zero; based on determining that the length of the inline LOB has been redefined to zero: storing the inline LOB in a separate LOB table space; andinserting an indicator corresponding to the inline LOB at an original position of the inline LOB, wherein the indicator points to a position of the inline LOB in the separate LOB table space; and performing LOB reorganization based on the redefined length of the inline LOB.
地址 Armonk NY US