Database Systems: The Complete Book- P9
Thông tin tài liệu:
Nội dung trích xuất từ tài liệu:
Database Systems: The Complete Book- P9 780 CHAPTER 15. QUERY EXECUTION p-ARALLEL ALGORITHJ,lS FOR RELATIONAL OPERATIONS 781 attributes, so that joining tuples are always sent to the same bucket. As if we used a two-pass sort-join at each processor, a naive ~arallel with union, we ship tuples of bucket i to processor i. We may then perform algorithm would use 3(B(R) + B(S))/P disk 110s a t each processor, since the join at each processor using any of the uniprocessor join algorithms the sizes of the relations in each bucket would be approximately B(R)/P and we have discussed in this chapter. B(S)Ip, and this type of join takes three disk I / 0 7 sper block occupied by each of + the argument relations. To this cost we would add another ~ ( B ( R ) B(s))/P To perform grouping and aggregation ~ L ( R )we distribute the tuples of , disk 110s per processor, to account for the first read of each tuple and the R using a hash function h that depends only on the grouping attributes storing away of each tuple by the processor receiving the tuple during the hash in list L. If each processor has all the tuples corresponding to one of the and distribution of tuples. UB should also add the cost of shipping the data, buckets of h, then we can perform the y~ operation on these tuples locally, but ,ye elected to consider that cost negligible compared with the cost of using any uniprocessor y algorithm. disk 110 for the same data. The abo-e comparison demonstrates the value of the multiprocessor. While 15.9.4 Performance of Parallel Algorithms lve do more disk 110 in total - five disk 110s per block of data, rather than three - the elapsed time, as measured by the number of disk 110s ~erformed Now, let us consider how the running time of a parallel algorithm on a p + at each processor has gone down from 3(B(R) B(S)) to 5(B(R) + B(S))/P, processor machine compares with the time to execute an algorithm for the a significant win for large p. same operation on the same data, using a uniprocessor. The total work - XIoreover, there are ways to improve the speed of the parallel algorithm so disk 110s and processor cycles - cannot be smaller for a parallel machine that the total number of disk 110s is not greater than what is required for a than a uniprocessor. However, because there are p processors working with p uniprocessor algorithm. In fact, since we operate on smaller relations at each disks, we can expect the elapsed, or wall-clock, time to be much smaller for the processor, nre maJr be able to use a local join algorithm that uses fewer disk multiprocessor than for the uniprocessor. I / 0 3 s per block of data. For instance, even if R and S were so large that we :j unary operation such as ac(R) can be completed in llpth of the time it need a t~f-o-pass algorithm on a uniprocessor, lye may be able to use a One-Pass would take to perform the operation a t a single processor, provided relation R algorithnl on (1lp)th of the data. is distributed evenly, as was supposed in Section 15.9.2. The number of disk Ke can avoid tlvo disk 110s per block if: when we ship a block to the 110s is essentially the same as for a uniprocessor selection. The only difference processor of its bucket, that processor can use the block imnlediatel~as Part is that t,here will, on average, be p half-full blocks of R, one at each processor, of its join 11ost of the algorithms known for join ...
Tìm kiếm theo từ khóa liên quan:
Oracle cơ bản giáo trình cơ sở dữ liệu bảo mật cơ sở dữ liệu cơ sở dữ liệu Mysql giáo trình sqlGợi ý tài liệu liên quan:
-
62 trang 402 3 0
-
Giáo trình Cơ sở dữ liệu: Phần 2 - TS. Nguyễn Hoàng Sơn
158 trang 294 0 0 -
Giáo trình Cơ sở dữ liệu: Phần 2 - Đại học Kinh tế TP. HCM
115 trang 176 0 0 -
Giáo trình Cơ sở dữ liệu: Phần 1 - Sở Bưu chính Viễn Thông TP Hà Nội
48 trang 171 1 0 -
Giáo Trình về Cơ Sở Dữ Liệu - Phan Tấn Quốc
114 trang 119 1 0 -
Giáo trình cơ sở dữ liệu quan hệ_3
26 trang 106 0 0 -
Giáo trình Cơ sở dữ liệu (Ngành: Công nghệ thông tin - Trung cấp) - Trường Cao đẳng Xây dựng số 1
49 trang 100 0 0 -
54 trang 70 0 0
-
134 trang 62 1 0
-
0 trang 57 0 0
-
Bài giảng cơ sở dữ liệu - chương 1 - ĐH KHTN Tp.HCM
46 trang 48 0 0 -
Giáo trình Cơ sở dữ liệu: Phần 1 - ĐH công nghiệp Tp.HCM
41 trang 42 0 0 -
57 trang 40 1 0
-
Giáo trình Cơ sở dữ liệu - Phần 2: SQL Server - ĐH Công nghiệp Tp.HCM
147 trang 39 2 0 -
Giáo trình Cơ sở dữ liệu: Phần 2 - Cao Thị Nhạn, Nguyễn Thị Thanh Bình
55 trang 36 0 0 -
Asp.Net 3.5 In Simple Steps- P6
10 trang 35 0 0 -
Asp.Net 3.5 In Simple Steps- P4
10 trang 35 0 0 -
Thực hành cơ sở dữ liệu: Phần 2
92 trang 34 0 0 -
THỰC HÀNH LAB : PHƯƠNG PHÁP TẤN CÔNG CỦA HACKER VÀO CÁC ỨNG DỤNG WEB BỊ LỖI SQL INJECTION
124 trang 34 1 0 -
Asp.Net 3.5 In Simple Steps- P5
10 trang 33 0 0