- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
[经济学]INDEXING CHAPTER 12
Oct 23, 2002 Prof. Ghandeharizadeh INDEXING (CHAPTER 11) TOPICS Basic concepts Hashing B+-tree INTRODUCTION Review Software Architecture of a DBMS Implementation of б Emp table: бSalary=30,000(Employee) Process the select operator using a file scan (linear scan) F1 = Open the file corresponding to Employee P = read first page of F1 While P is not null For each record in P, if the record satisfies the selection predicate then produce as output P = read next page of F1 /* P becomes null when EoF is reached */ Implementation of б Emp table: бSalary=30,000(Employee) Process the select operator using a file scan (linear scan) F1 = Open the file corresponding to Employee P = read first page of F1 While P is not null For each record in P, if the record satisfies the selection predicate then produce as output P = read next page of F1 Implementation of б Emp table: бSalary=30,000(Employee) Process the select operator using a file scan (linear scan) F1 = Open the file corresponding to Employee P = read first page of F1 While P is not null For each record in P, if the record satisfies the selection predicate then produce as output P = read next page of F1 TERMINOLOGY An exact match selection predicate: бSalary=30,000(Employee) , бFirstName=“Shideh”(Employee) A range selection predicate: бSalary30,000(Employee) , бSalary30,000(Employee), бSalary30,000 and Salary 32,000 (Employee) INTRODUCTION (Cont…) Motivation: Speed-up those queries that reference only a small portion of the records in a file. Analogy: Catalog cards in the library (more than one index). Evaluation: 1. Access time (find) 2. Insertion time (find + add) 3. Deletion time (find + delete) 4. Space overhead Search-key: The attribute (or set of attributes) used to lookup records in a file Primary index: The index whose search key specifies the sequential order of the records within a file. Secondary index: The index whose search key does not specify the sequential order of t
文档评论(0)