Chỉ mục B-Tree (05) (Phương thức truy cập dữ liệu trong hệ thống tính toán) (Tiếng Anh)
- Seiten
- 50
- Định dạng
- PPT
- Dung lượng
- 4.7 MB
- Trường
- Duke University
- Aufrufe
- 0
- Kommentare
- 0
- Lượt tải
- 0
Vorschau wird generiert...
Slide bài giảng giới thiệu về các phương thức truy cập dữ liệu trong hệ thống tính toán cường độ dữ liệu, bao gồm quét toàn bộ bảng, tìm kiếm nhị phân và cấu trúc chỉ mục B-Tree.
- Dokumentenname
- Chỉ mục B-Tree (05) (Phương thức truy cập dữ liệu trong hệ thống tính toán) (Tiếng Anh)
- Schule / Kurs
- Duke University · Big Data
- Inhalt
- Tài liệu trình bày các kỹ thuật truy cập dữ liệu, so sánh quét toàn bộ bảng với sắp xếp dữ liệu, và giới thiệu chỉ mục như một giải pháp tối ưu. Trọng tâm là phân tích chi tiết về cây B (B-Trees) và cách chúng cải thiện hiệu suất truy vấn so với cây tìm kiếm nhị phân.
- Inhaltsverzeichnis
- Problem
- Solution #1: Full Table Scan
- Solution #2
- Solution #2: Issues
- Indexes
- Problem
- Roadmap
- Single Attribute Index: General Construction
- Exceptions
- Single Attribute Index: General Construction
- Single Attribute Index: General Construction
- Roadmap
- B-Trees
- Use Binary Search Tree Directly?
- Use Binary Search Tree Directly?
- Use Binary Search Tree Directly?
- B-Tree vs. Binary Search Tree
- B-Tree Example
- B-Tree Example
- Meaning of Internal Node
- B-Tree Example
- Meaning of Leaf Nodes
- Equality Predicates
- Equality Predicates
- Equality Predicates
- Seiten
- 50 Seiten
- Hochgeladen von
- Uni24h
Beschreibung
Trích nội dung tài liệu
Data-intensive Computing Systems Operators for Data Access Shivnath Babu 1 Problem ◼ Relation: Employee (ID, Name, Dept, …) ◼ 10 M tuples ◼ (Filter) Query: SELECT * FROM Employee WHERE Name = “Bob” Solution #1: Full Table Scan ◼ Storage: ◼ Employee relation stored in contiguous blocks ◼ Query plan: ◼ Scan the entire relation, output tuples with Name = “Bob” ◼ Cost: ◼ Size of each record = 100 bytes ◼ Size of relation = 10 M x 100 = 1 GB ◼ Time @ 20 MB/s ≈ 1 Minute 3 Solution #2 ◼ Storage: ◼ Employee relation sorted on Name attribute ◼ Query plan: ◼ Binary search 4 Solution #2 ◼ Cost: ◼ Size of a block: 1024 bytes ◼ Number of records per block: 1024 / 100 = 10 ◼ Total number of blocks: 10 M / 10 = 1 M ◼ Blocks accessed by binary search: 20 ◼ Total time: 20 ms x 20 = 400 ms 5 Solution #2: Issues ◼ Filters on different attributes: SELECT * FROM Employee WHERE Dept = “Sales” ◼ Inserts and Deletes 6 Indexes ◼ Data structures that efficiently evaluate a class of filter predicates over a relation ◼ Class of filter predicates: ◼ Single or multi-attributes (index-key attributes) ◼ Range and/or equality predicates ◼ (Usually) independent of physical storage of relation: ◼ Multiple indexes per relation 7 Indexes ◼ Disk resident ◼ Large to fit in memory ◼ Persistent ◼ Updated when indexed relation updated ◼ Relation updates costlier ◼ Query cheaper 8 Problem ◼ Relation: Employee (ID, Name, Dept, …) ◼ (Filter) Query: SELECT * FROM Employee WHERE Name = “Bob” Single-Attribute Index on Name that supports equality predicates Roadmap ◼ Motivation ◼ Single-Attribute Indexes: Overview ◼ Order-based Indexes ◼ B-Trees ◼ Hash-based Indexes (May cover in future) ◼ Extensible Hashing ◼ Linear Hashing ◼ Multi-Attribute Indexes (Chapter 14 GMUW, May cover in future) 10 Single Attribute Index: General Construction A B a1 b1 a2 b2 ai bi an bn Single Attribute Index: General Construction A B a1 a1 b1 a2 a2 b2 ai ai bi an an bn
Häufig gestellte Fragen
Ist dieses Dokument kostenlos?
Ja. „Chỉ mục B-Tree (05) (Phương thức truy cập dữ liệu trong hệ thống tính toán) (Tiếng Anh)“ ist kostenlos — melden Sie sich einfach an und klicken Sie auf Herunterladen, um die Originaldatei zu erhalten.
Wie viele Seiten hat dieses Dokument?
Das Dokument hat 50 Seiten, für den Kurs Big Data. Sie können es vor dem Herunterladen online in der Vorschau ansehen.
Kann ich vor dem Herunterladen eine Vorschau ansehen?
Ja. Sie können sich dieses Dokument direkt auf dieser Seite im Online-Reader ansehen und dann entscheiden, ob Sie es herunterladen möchten.
Chỉ mục B-Tree (05) (Phương thức truy cập dữ liệu trong hệ thống tính toán) (Tiếng Anh)
Vorschau wird generiert...
Trích nội dung tài liệu
Data-intensive Computing Systems Operators for Data Access Shivnath Babu 1 Problem ◼ Relation: Employee (ID, Name, Dept, …) ◼ 10 M tuples ◼ (Filter) Query: SELECT * FROM Employee WHERE Name = “Bob” Solution #1: Full Table Scan ◼ Storage: ◼ Employee relation stored in contiguous blocks ◼ Query plan: ◼ Scan the entire relation, output tuples with Name = “Bob” ◼ Cost: ◼ Size of each record = 100 bytes ◼ Size of relation = 10 M x 100 = 1 GB ◼ Time @ 20 MB/s ≈ 1 Minute 3 Solution #2 ◼ Storage: ◼ Employee relation sorted on Name attribute ◼ Query plan: ◼ Binary search 4 Solution #2 ◼ Cost: ◼ Size of a block: 1024 bytes ◼ Number of records per block: 1024 / 100 = 10 ◼ Total number of blocks: 10 M / 10 = 1 M ◼ Blocks accessed by binary search: 20 ◼ Total time: 20 ms x 20 = 400 ms 5 Solution #2: Issues ◼ Filters on different attributes: SELECT * FROM Employee WHERE Dept = “Sales” ◼ Inserts and Deletes 6 Indexes ◼ Data structures that efficiently evaluate a class of filter predicates over a relation ◼ Class of filter predicates: ◼ Single or multi-attributes (index-key attributes) ◼ Range and/or equality predicates ◼ (Usually) independent of physical storage of relation: ◼ Multiple indexes per relation 7 Indexes ◼ Disk resident ◼ Large to fit in memory ◼ Persistent ◼ Updated when indexed relation updated ◼ Relation updates costlier ◼ Query cheaper 8 Problem ◼ Relation: Employee (ID, Name, Dept, …) ◼ (Filter) Query: SELECT * FROM Employee WHERE Name = “Bob” Single-Attribute Index on Name that supports equality predicates Roadmap ◼ Motivation ◼ Single-Attribute Indexes: Overview ◼ Order-based Indexes ◼ B-Trees ◼ Hash-based Indexes (May cover in future) ◼ Extensible Hashing ◼ Linear Hashing ◼ Multi-Attribute Indexes (Chapter 14 GMUW, May cover in future) 10 Single Attribute Index: General Construction A B a1 b1 a2 b2 ai bi an bn Single Attribute Index: General Construction A B a1 a1 b1 a2 a2 b2 ai ai bi an an bn
- Dokumentenname
- Chỉ mục B-Tree (05) (Phương thức truy cập dữ liệu trong hệ thống tính toán) (Tiếng Anh)
- Schule / Kurs
- Duke University · Big Data
- Inhalt
- Tài liệu trình bày các kỹ thuật truy cập dữ liệu, so sánh quét toàn bộ bảng với sắp xếp dữ liệu, và giới thiệu chỉ mục như một giải pháp tối ưu. Trọng tâm là phân tích chi tiết về cây B (B-Trees) và cách chúng cải thiện hiệu suất truy vấn so với cây tìm kiếm nhị phân.
- Inhaltsverzeichnis
- Problem
- Solution #1: Full Table Scan
- Solution #2
- Solution #2: Issues
- Indexes
- Problem
- Roadmap
- Single Attribute Index: General Construction
- Exceptions
- Single Attribute Index: General Construction
- Single Attribute Index: General Construction
- Roadmap
- B-Trees
- Use Binary Search Tree Directly?
- Use Binary Search Tree Directly?
- Use Binary Search Tree Directly?
- B-Tree vs. Binary Search Tree
- B-Tree Example
- B-Tree Example
- Meaning of Internal Node
- B-Tree Example
- Meaning of Leaf Nodes
- Equality Predicates
- Equality Predicates
- Equality Predicates
- Seiten
- 50 Seiten
- Hochgeladen von
- Uni24h
Kommentare (0)
Noch keine Kommentare. Seien Sie der Erste!
Stream (11) (Xử lý luồng dữ liệu) - Julian M. Kunkel
Krone (09) (Sự phát triển của dữ liệu) (Tiếng Anh)
Parallel mf (09) (Thuật toán phân tán phân tích ma trận dữ liệu lớn)
Big Data Analytics - Phân tích dữ liệu lớn (Lecture 5)
NoSQL db (06) (Cơ sở dữ liệu NoSQL)
Tổng hợp Đề Toán 5 - Luyện thi vào Lớp 6 - CLB EMath
Bài giảng vật lý đại cương (Chương 3) - Đỗ Ngọc Uấn
Chương 8.Nguyên tử - Vật lý đại cương 3 - TS.Nguyễn Thị Trang
Chương 7.Cơ học lượng tử - Vật lý đại cương 3 - TS.Nguyễn Thị Trang
Chương 6.Quang học lượng tử - Vật lý đại cương 3 - TS.Nguyễn Thị Trang

Kommentare (0)
Noch keine Kommentare. Seien Sie der Erste!