qp opt (08) (Tối ưu hóa truy vấn trong hệ thống dữ liệu chuyên sâu) (Tiếng Anh)
Slide bài giảng về tối ưu hóa truy vấn trong hệ thống tính toán dữ liệu chuyên sâu, bao gồm các khái niệm về mô hình chi phí, thuật toán Selinger, và các chiến lược tối ưu hóa.
미리보기 생성 중...
Data-intensive Computing Systems Query Optimization (Costbased optimization) Shivnath Babu Query Optimization Problem Pick the best plan from the space of physical plans Cost-Based Optimization Prune the space of plans using heuristics Estimate cost for remaining plans Be smart about how you iterate through plans Pick the plan with least cost Focus on queries with joins Heuristics for pruning plan space Predicates as early as possible Avoid plans with cross products Only left-deep join trees Physical Plan Selection Logical Query Plan P1 P2 …. Pn Physical plans C1 C2 …. Cn Costs Pick minimum cost one Review of Notation T (R) : Number of tuples in R B (R) : Number of blocks in R Simple Cost Model Cost (R S) = T(R) + T(S) All other operators have 0 cost Note: The simple cost model used for illustration only Cost Model Example X T(X) + T(T) T T(R) + T(S) R S Total Cost: T(R) + T(S) + T(T) + T(X) Selinger Algorithm Dynamic Programming based Dynamic Programming: General algorithmic paradigm Exploits “principle of optimality” Useful reading: Chapter 16, Introduction to Algorithms, Cormen, Leiserson, Rivest Principle of Optimality Optimal for “whole” made up from optimal for “parts” Principle of Optimality Query: R1 R2 R3 R4 R5 Optimal Plan: R5 R1 R4 R3 R2 Principle of Optimality Query: R1 R2 R3 R4 R5 Optimal Plan: R5 R1 R4 R3 R2 Optimal plan for joining R3, R2, R4, R1 Principle of Optimality Query: R1 R2 R3 R4 R5 Optimal Plan: R5 R1 R4 R3 R2 Optimal plan for joining R3, R2, R4 Exploiting Principle of Optimality Query: R1 R2 … Rn R1 R2 R3 Optimal for joining R1, R2, R3 R2 R3 R1 Sub-Optimal for joining R1, R2, R3 Exploiting Principle of Optimality Ri Rj R2 R3 Sub-Optimal for joining R1,…,Rn R1 A sub-optimal sub-plan cannot lead to an optimal plan Selinger Algorithm: Query: R1 R2 R3 Progress of algorithm { R1, R2, R3, R4 } { R1, R2, R3 } { R1, R2, R4 } {
… 전체 문서를 읽으려면 원본 파일을 다운로드하세요.
- 문서명
- qp opt (08) (Tối ưu hóa truy vấn trong hệ thống dữ liệu chuyên sâu) (Tiếng Anh)
- 학교 / 강의
- Duke University · Big Data
- 내용
- Tài liệu này giải thích cách tối ưu hóa truy vấn trong hệ thống dữ liệu bằng cách sử dụng tối ưu hóa dựa trên chi phí và thuật toán Selinger. Nó bao gồm các mô hình chi phí từ đơn giản đến phức tạp để chọn kế hoạch truy vấn hiệu quả nhất.
- 목차
- Query Optimization Problem
- Cost-Based Optimization
- Heuristics for pruning plan space
- Physical Plan Selection
- Review of Notation
- Simple Cost Model
- Cost Model Example
- Selinger Algorithm
- Principle of Optimality
- Exploiting Principle of Optimality
- Selinger Algorithm:
- Notation
- Selinger Algorithm:
- Selinger Algorithm:
- Selinger Algorithm:
- More Complex Cost Model
- Cost of Table Scan
- Cost of Clustered Index Scan
- Cost of Clustered Index Scan
- Cost of Non-Clustered Index Scan
- Cost of Non-Clustered Index Scan
- Cost of Tuple-Based NLJ
- Cost of Sort-Merge Join
- Cost of Sort-Merge Join
- 페이지 수
- 41 페이지
- 업로더
- Giang Le
자주 묻는 질문
이 문서는 무료인가요?
네. “qp opt (08) (Tối ưu hóa truy vấn trong hệ thống dữ liệu chuyên sâu) (Tiếng Anh)” 문서는 무료입니다. 로그인 후 '다운로드'를 클릭하여 원본 파일을 받으세요.
이 문서는 몇 페이지로 되어 있나요?
이 문서는 41페이지입니다, Big Data 과정용. 다운로드하기 전에 온라인으로 미리 볼 수 있습니다.
다운로드하기 전에 미리 볼 수 있나요?
네. 이 페이지의 온라인 리더를 통해 문서를 미리 본 후 다운로드 여부를 결정할 수 있습니다.

댓글 (0)
댓글이 없습니다. 첫 댓글을 남겨보세요!