High-Performance Parallel Database Processing and Grid Databases

Af David Taniar, Clement H. C. Leung, Wenny Rahayu, Sushant Goel, Albert Y. Zomaya
Detaljer John Wiley & Sons, Incorporated
ISBN 9780470107621
Sprog Engelsk
Vælg mellem
Pris 2.010,00 kr.
Hardback

Ikke på lager

Print on demand. Leveringstid vil være ca 2-3 uger.

The latest techniques and principles of parallel and grid database processing

The growth in grid databases, coupled with the utility of parallel query processing, presents an important opportunity to understand and utilize high-performance parallel database processing within a major database management system (DBMS). This important new book provides readers with a fundamental understanding of parallelism in data-intensive applications, and demonstrates how to develop faster capabilities to support them. It presents a balanced treatment of the theoretical and practical aspects of high-performance databases to demonstrate how parallel query is executed in a DBMS, including concepts, algorithms, analytical models, and grid transactions.

High-Performance Parallel Database Processing and Grid Databases serves as a valuable resource for researchers working in parallel databases and for practitioners interested in building a high-performance database. It is also a much-needed, self-contained textbook for database courses at the advanced undergraduate and graduate levels.

Preface xv
Part I Introduction
1. Introduction 3
1.1. A Brief Overview: Parallel Databases and Grid Databases 4
1.2. Parallel Query Processing: Motivations 5
1.3. Parallel Query Processing: Objectives 7
1.3.1. Speed Up 7
1.3.2. Scale Up 8
1.3.3. Parallel Obstacles 10
1.4. Forms of Parallelism 12
1.4.1. Interquery Parallelism 13
1.4.2. Intraquery Parallelism 14
1.4.3. Intraoperation Parallelism 15
1.4.4. Interoperation Parallelism 15
1.4.5. Mixed Parallelism--A More Practical Solution 18
1.5. Parallel Database Architectures 19
1.5.1. Shared-Memory and Shared-Disk Architectures 20
1.5.2. Shared-Nothing Architecture 22
1.5.3. Shared-Something Architecture 23
1.5.4. Interconnection Networks 24
1.6. Grid Database Architecture 26
1.7. Structure of this Book 29
1.8. Summary 30
1.9. Bibliographical Notes 30
1.10. Exercises 31
2. Analytical Models 33
2.1. Cost Models 33
2.2. Cost Notations 34
2.2.1. Data Parameters 34
2.2.2. Systems Parameters 36
2.2.3. Query Parameters 37
2.2.4. Time Unit Costs 37
2.2.5. Communication Costs 38
2.3. Skew Model 39
2.4. Basic Operations in Parallel Databases 43
2.4.1. Disk Operations 44
2.4.2. Main Memory Operations 45
2.4.3. Data Computation and Data Distribution 45
2.5. Summary 47
2.6. Bibliographical Notes 47
2.7. Exercises 47
Part II Basic Query Parallelism
3. Parallel Search 51
3.1. Search Queries 51
3.1.1. Exact-Match Search 52
3.1.2. Range Search Query 53
3.1.3. Multiattribute Search Query 54
3.2. Data Partitioning 54
3.2.1. Basic Data Partitioning 55
3.2.2. Complex Data Partitioning 60
3.3. Search Algorithms 69
3.3.1. Serial Search Algorithms 69
3.3.2. Parallel Search Algorithms 73
3.4. Summary 74
3.5. Bibliographical Notes 75
3.6. Exercises 75
4. Parallel Sort and GroupBy 77
4.1. Sorting, Duplicate Removal, and Aggregate Queries 78
4.1.1. Sorting and Duplicate Removal 78
4.1.2. Scalar Aggregate 79
4.1.3. GroupBy 80
4.2. Serial External Sorting Method 80
4.3. Algorithms for Parallel External Sort 83
4.3.1. Parallel Merge-All Sort 83
4.3.2. Parallel Binary-Merge Sort 85
4.3.3. Parallel Redistribution Binary-Merge Sort 86
4.3.4. Parallel Redistribution Merge-All Sort 88
4.3.5. Parallel Partitioned Sort 90
4.4. Parallel Algorithms for GroupBy Queries 92
4.4.1. Traditional Methods (Merge-All and Hierarchical Merging) 92
4.4.2. Two-Phase Method 93
4.4.3. Redistribution Method 94
4.5. Cost Models for Parallel Sort 96
4.5.1. Cost Models for Serial External Merge-Sort 96
4.5.2. Cost Models for Parallel Merge-All Sort 98
4.5.3. Cost Models for Parallel Binary-Merge Sort 100
4.5.4. Cost Models for Parallel Redistribution Binary-Merge Sort 101
4.5.5. Cost Models for Parallel Redistribution Merge-All Sort 102
4.5.6. Cost Models for Parallel Partitioned Sort 103
4.6. Cost Models for Parallel GroupBy 104
4.6.1. Cost Models for Parallel Two-Phase Method 104
4.6.2. Cost Models for Parallel Redistribution Method 107
4.7. Summary 109
4.8. Bibliographical Notes 110
4.9. Exercises 110
5. Parallel Join 112
5.1. Join Operations 112
5.2. Serial Join Algorithms 114
5.2.1. Nested-Loop Join Algorithm 114
5.2.2. Sort-Merge Join Algorithm 116
5.2.3. Hash-Based Join Algorithm 117
5.2.4. Comparison 120
5.3. Parallel Join Algorithms 120
5.3.1. Divide and Broadcast-Based Parallel Join Algorithms 121
5.3.2. Disjoint Partitioning-Based Parallel Join Algorithms 124
5.4. Cost Models 128
5.4.1. Cost Models for Divide and Broadcast 128
5.4.2. Cost Models for Disjoint Partitioning 129
5.4.3. Cost Models for Local Join 130
5.5. Parallel Join Optimization 132
5.5.1. Optimizing Main Memory 132
5.5.2. Load Balancing 133
5.6. Summary 134
5.7. Bibliographical Notes 135
5.8. Exercises 136
Part III Advanced Parallel Query Processing
6. Parallel GroupBy-Join 141
6.1. Groupby-Join Queries 141
6.1.1. Groupby Before Join 142
6.1.2. Groupby After Join 142
6.2. Parallel Algorithms for Groupby-Before-Join Query Processing 143
6.2.1. Early Distribution Scheme 143
6.2.2. Early GroupBy with Partitioning Scheme 145
6.2.3. Early GroupBy with Replication Scheme 146
6.3. Parallel Algorithms for Groupby-After-Join Query Processing 148
6.3.1. Join Partitioning Scheme 148
6.3.2. GroupBy Partitioning Scheme 150
6.4. Cost Model Notations 151
6.5. Cost Model for Groupby-Before-Join Query Processing 153
6.5.1. Cost Models for the Early Distribution Scheme 153
6.5.2. Cost Models for the Early GroupBy with Partitioning Scheme 156
6.5.3. Cost Models for the Early GroupBy with Replication Scheme 158
6.6. Cost Model for "Groupby-After-Join" Query Processing 159
6.6.1. Cost Models for the Join Partitioning Scheme 159
6.6.2. Cost Models for the GroupBy Partitioning Scheme 161
6.7. Summary 163
6.8. Bibliographical Notes 164
6.9. Exercises 164
7. Parallel Indexing 167
7.1. Parallel Indexing-an Internal Perspective on Parallel Indexing Structures 168
7.2. Parallel Indexing Structures 169
7.2.1. Nonreplicated Indexing (NRI) Structures 169
7.2.2. Partially Replicated Indexing (PRI) Structures 171
7.2.3. Fully Replicated Indexing (FRI) Structures 178
7.3. Index Maintenance 180
7.3.1. Maintaining a Parallel Nonreplicated Index 182
7.3.2. Maintaining a Parallel Partially Replicated Index 182
7.3.3. Maintaining a Parallel Fully Replicated Index 188
7.3.4. Complexity Degree of Index Maintenance 188
7.4. Index Storage Analysis 188
7.4.1. Storage Cost Models for Uniprocessors 189
7.4.2. Storage Cost Models for Parallel Processors 191
7.5. Parallel Processing of Search Queries using Index 192
7.5.1. Parallel One-Index Search Query Processing 192
7.5.2. Parallel Multi-Index Search Query Processing 195
7.6. Parallel Index Join Algorithms 200
7.6.1. Parallel One-Index Join 200
7.6.2. Parallel Two-Index Join 203
7.7. Comparative Analysis 207
7.7.1. Comparative Analysis of Parallel Search Index 207
7.7.2. Comparative Analysis of Parallel Index Join 213
7.8. Summary 216
7.9. Bibliographical Notes 217
7.10. Exercises 217
8. Parallel Universal Qualification--Collection Join Queries 219
8.1. Universal Quantification and Collection Join 220
8.2. Collection Types and Collection Join Queries 222
8.2.1. Collection-Equi Join Queries 222
8.2.2. Collection-Intersect Join Queries 223
8.2.3. Subcollection Join Queries 224
8.3. Parallel Algorithms for Collection Join Queries 225
8.4. Parallel Collection-Equi Join Algorithms 225
8.4.1. Disjoint Data Partitioning 226
8.4.2. Parallel Double Sort-Merge Collection-Equi Join Algorithm 227
8.4.3. Parallel Sort-Hash Collection-Equi Join Algorithm 228
8.4.4. Parallel Hash Collection-Equi Join Algorithm 232
8.5. Parallel Collection-Intersect Join Algorithms 233
8.5.1. Non-Disjoint Data Partitioning 234
8.5.2. Parallel Sort-Merge Nested-Loop Collection-Intersect Join Algorithm 244
8.5.3. Parallel Sort-Hash Collection-Intersect Join Algorithm 245
8.5.4. Parallel Hash Collection-Intersect Join Algorithm 246
8.6. Parallel Subcollection Join Algorithms 246
8.6.1. Data Partitioning 247
8.6.2. Parallel Sort-Merge Nested-Loop Subcollection Join Algorithm 248
8.6.3. Parallel Sort-Hash Subcollection Join Algorithm 249
8.6.4. Parallel Hash Subcollection Join Algorithm 251
8.7. Summary 252
8.8. Bibliographical Notes 252
8.9. Exercises 254
9. Parallel Query Scheduling and Optimization 256
9.1. Query Execution Plan 257
9.2. Subqueries Execution Scheduling Strategies 259
9.2.1. Serial Execution Among Subqueries 259
9.2.2. Parallel Execution Among Subqueries 261
9.3. Serial vs. Parallel Execution Scheduling 264
9.3.1. Nonskewed Subqueries 264
9.3.2. Skewed Subqueries 265
9.3.3. Skewed and Nonskewed Subqueries 267
9.4. Scheduling Rules 269
9.5. Cluster Query Processing Model 270
9.5.1. Overview of Dynamic Query Processing 271
9.5.2. A Cluster Query Processing Architecture 272
9.5.3. Load Information Exchange 273
9.6. Dynamic Cluster Query Optimization 275
9.6.1. Correction 276
9.6.2. Migration 280
9.6.3. Partition 281
9.7. Other Approaches to Dynamic Query Optimization 284
9.8. Summary 285
9.9. Bibliographical Notes 286
9.10. Exercises 286
Part IV Grid Databases
10. Transactions in Distributed and Grid Databases 291
10.1. Grid Database Challenges 292
10.2. Distributed Database Systems and Multidatabase Systems 293
10.2.1. Distributed Database Systems 293
10.2.2. Multidatabase Systems 297
10.3. Basic Definitions on Transaction Management 299
10.4. Acid Properties of Transactions 301
10.5. Transaction Management in Various Database Systems 303
10.5.1. Transaction Management in Centralized and Homogeneous Distributed Data