首页> 外国专利> METHOD AND SYSTEM FOR EFFICIENTLY SEARCHING FOR FREE SPACE IN A TABLE OF A RELATIONAL DATABASE HAVING A CLUSTERING INDEX

METHOD AND SYSTEM FOR EFFICIENTLY SEARCHING FOR FREE SPACE IN A TABLE OF A RELATIONAL DATABASE HAVING A CLUSTERING INDEX

机译:在具有聚簇索引的关系数据库表中有效搜索自由空间的方法和系统

摘要

A method of searching a table in a database management system for free spacefor insertinga new record into the table. The table resides in a storage media, andincludes a series of pagescapable of storing a plurality of records. The table has a clustering indexdefined in a column of thetable. The new record has a new record attribute for storing in the column ofthe table when the newrecord is stored in the table. The method comprises searching for a targetpage in the series of pages,the target page being selected to maintain clustering when the new record isinserted thereon. Oncethe target page has been located, it is searched for sufficient free space toaccommodate the newrecord. If sufficient free space is found on the target page, then the newrecord is inserted on thetarget page. If sufficient free space is not found on the target page, then atarget neighbourhood ofpages in the series of pages is searched for sufficient free space toaccommodate the new record.The target neighbourhood of pages surrounds the target page. If sufficientfree space is found on apage in a target neighbourhood of pages, then the new record is inserted on tothis page in the targetneighbourhood of pages. If sufficient free space is not found in the targetneighbourhood of pages,then the method further comprises searching for sufficient free space toaccommodate the new recordoutside the target neighbourhood of pages. If sufficient free space is foundoutside the targetneighbourhood of pages, then the new record is inserted on a non-neighbouringpage outside thetarget neighbourhood of pages. If sufficient free space is not found outsidethe target neighbourhoodof pages, then a new page having the new record is appended to the end oftable.
机译:在数据库管理系统中的表中搜索可用空间的方法用于插入一个新的记录到表中。该表位于存储介质中,并且包括一系列页面能够存储多个记录。该表具有聚簇索引定义在表。新记录具有新的记录属性,用于存储在“新表时记录存储在表中。该方法包括搜索目标页面系列中的一页,当新记录被选中时,目标页面被选择来维护集群插在上面。一旦已找到目标页面,将搜索足够的可用空间以用于容纳新记录。如果在目标页面上找到足够的可用空间,则新记录插入到目标页面。如果在目标页面上找不到足够的可用空间,则目标邻域在一系列页面中的页面中搜索足够的可用空间以容纳新记录。页面的目标邻域围绕目标页面。如果足够的话在上找到可用空间页面在目标页面附近,然后将新记录插入到目标页面页面附近。如果在目标中找不到足够的可用空间页面附近,然后该方法还包括搜索足够的可用空间以容纳新记录在页面目标邻域之外。如果找到足够的可用空间目标之外页面相邻,然后将新记录插入到非相邻页面中页面外目标网页邻域。如果在外面找不到足够的可用空间目标社区的页面数,然后将具有新记录的新页面附加到表。

著录项

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号