发明名称 Providing record-level alternate-index upgrade locking
摘要 In one embodiment, a method includes receiving a request to perform an update on a base data set in a record-oriented file system, locate all alternate index (AIX) records for the base data set, each AIX record including an alternate key field along with one or more relative byte address (RBA) values when the base data set is an entry sequenced data set (ESDS) or one or more primary keys when the base data set is a key sequenced data set (KSDS). Each RBA value/primary key corresponds to one record in the base data set. Individual record-level locks are acquired on each affected AIX record that includes alternate key field values and/or RBA values that are modified by the update. The affected AIX records may be updated after acquiring the individual record-level locks on each of the affected AIX records. Moreover, the affected AIX records may be updated in parallel with updating of unaffected AIX records, thereby greatly increasing performance.
申请公布号 US9043295(B2) 申请公布日期 2015.05.26
申请号 US201313842117 申请日期 2013.03.15
申请人 International Business Machines Corporation 发明人 Benjamin-Deckert Debra J.;Law Lawrence L.;Menendez Terri A.
分类号 G06F17/30 主分类号 G06F17/30
代理机构 Zilka-Kotab, PC 代理人 Zilka-Kotab, PC
主权项 1. A system, comprising a processor and logic at least one of integrated with and executable by the processor, the logic being configured to: receive a request to perform an update on a base data set in a record-oriented file system, wherein one or more affected records within the base data set are modified by the update; locate all alternate index (AIX) records for the base data set, each AIX record comprising an alternate key field along with one or more relative byte address (RBA) values when the base data set is an entry sequenced data set (ESDS), or one or more primary keys when the base data set is a key sequenced data set (KSDS), wherein each RBA value or primary key corresponds to one record in the base data set; acquire, using the processor, individual record-level locks on each affected AIX record that comprises at least one of: alternate key field values and RBA values that are modified by the update; and update each of the affected AIX records according to the update after acquiring the individual record-level locks on each of the affected AIX records.
地址 Armonk NY US