Query Processing (16) (Xử lý truy vấn trong hệ CSDL quan hệ) (Tiếng Anh)
Tài liệu giới thiệu về xử lý truy vấn trong hệ cơ sở dữ liệu quan hệ, bao gồm SQL, đại số quan hệ, các kế hoạch truy vấn và tối ưu hóa truy vấn.
미리보기 생성 중...
Data-Intensive Computing Systems Introduction to Query Processing Shivnath Babu Query Processing Declarative SQL Query → Query Plan NOTE: You will not be tested on how well you know SQL. Understanding the SQL introduced in class will be sufficient (a primer follows). SQL is described in Chapter 6, GMUW. Focus: Relational System (i.e., data is organized as tables, or relations) SQL Primer We will focus on SPJ, or Select-Project-Join Queries Select <attribute list> From <relation list> Where <condition list> Example Filter Query over R(A,B,C): Select B From R Where R.A = “c” R.C > 10 SQL Primer (contd.) We will focus on SPJ, or Select-Project-Join-Queries Select <attribute list> From <relation list> Where <condition list> Example Join Query over R(A,B,C) and S(C,D,E): Select B, D From R, S Where R.A = “c” S.E = 2 R.C = S.C R A B C S C D E a 1 10 10 x 2 b 1 20 20 y 2 c 2 10 30 z 2 d 2 35 40 x 1 e 3 45 50 y 3 Select B,D From R,S Answer Where R.A = “c” S.E = 2 R.C=S.C B 2 D x How do we execute this query? Select B,D From R,S Where R.A = “c” S.E = 2 R.C=S.C One idea Do Cartesian product Select tuples Do projection RXS Select B,D R.A R.B R.C S.C S.D S.E a 1 10 10 x 2 a . . 1 10 20 y 2 c . . 2 10 10 x 2 From R,S Where R.A = “c” S.E = 2 R.C=S.C Bingo! Got one... Relational Algebra - can be used to describe plans Ex: Plan I B,D sR.A=“c” S.E=2 R.C=S.C X R S Relational Algebra Primer (Chapter 5, GMUW) Select: sR.A=“c” R.C=10 Project: B,D Cartesian Product: R X S Natural Join: R S Relational Algebra - can be used to describe plans Ex: Plan I B,D sR.A=“c” S.E=2 R.C=S.C X R S OR: B,D [ sR.A=“c” S.E=2 R.C = S.C (RXS)] Another idea: Plan II B,D sR.A = “c” Select B,D R(A,B,C) From R,S Where R.A = “c” S.E = 2 R.C=S.C sS.E = 2 S(C,D,E) natural join R S A B C s (R) s(S) C D E a 1 10 A B C C D E 10 x 2 b 1 20 c 2 10 10 x 2 20 y 2
… 전체 문서를 읽으려면 원본 파일을 다운로드하세요.
- 문서명
- Query Processing (16) (Xử lý truy vấn trong hệ CSDL quan hệ) (Tiếng Anh)
- 학교 / 강의
- Duke University · Cơ sở dữ liệu
- 내용
- Tài liệu này giải thích quá trình xử lý truy vấn SQL trong hệ thống cơ sở dữ liệu quan hệ, từ việc chuyển đổi truy vấn thành kế hoạch thực thi, các kỹ thuật tối ưu hóa, đến quy trình tổng thể của xử lý truy vấn.
- 목차
- Introduction to Query Processing
- Query Processing
- SQL Primer
- Relational Algebra Primer
- Overview of Query Processing
- Example Query
- Example: Parse Tree
- Along with Parsing …
- SQL query
- Initial Logical Plan
- Apply Rewrite Rule (1)
- Apply Rewrite Rule (2)
- Apply Rewrite Rule (3)
- 페이지 수
- 49 페이지
- 업로더
- Giang Le
자주 묻는 질문
이 문서는 무료인가요?
네. “Query Processing (16) (Xử lý truy vấn trong hệ CSDL quan hệ) (Tiếng Anh)” 문서는 무료입니다. 로그인 후 '다운로드'를 클릭하여 원본 파일을 받으세요.
이 문서는 몇 페이지로 되어 있나요?
이 문서는 49페이지입니다, Cơ sở dữ liệu 과정용. 다운로드하기 전에 온라인으로 미리 볼 수 있습니다.
다운로드하기 전에 미리 볼 수 있나요?
네. 이 페이지의 온라인 리더를 통해 문서를 미리 본 후 다운로드 여부를 결정할 수 있습니다.

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