发明名称 METHOD AND DEVICE FOR RECREATING INDEX ONLINE
摘要 An online index rebuilding method and apparatus are disclosed. The method includes: creating an index snapshot, an index cache, and a target index for a source index, and blocking a write transaction to a base table of a database during a creating process; migrating source index data in the source index to the target index page by page according to a sequence of an index page, and filtering out invalid source index data from the source index by using the index snapshot during a migration process; storing new index data, which is generated during the migration process, in the index cache; and during the migration process, if new index data required by a current index page that is being processed exists in the index cache, migrating both the new index data and the source index data that is in the current index page to the target index; or, after migration of all the source index data is complete, migrating the new index data in the index cache to the target index. According to embodiments of the present invention, random IO operations of a system and system overheads may be reduced.
申请公布号 EP3002687(A4) 申请公布日期 2016.07.20
申请号 EP20140854786 申请日期 2014.04.25
申请人 HUAWEI TECHNOLOGIES CO., LTD. 发明人 LI, HAIFENG
分类号 G06F17/30 主分类号 G06F17/30
代理机构 代理人
主权项
地址