Presentasi sedang didownload. Silahkan tunggu

Presentasi sedang didownload. Silahkan tunggu

1 Pertemuan > Desain fisik basis data Matakuliah: >/ > Tahun: > Versi: >

Presentasi serupa


Presentasi berjudul: "1 Pertemuan > Desain fisik basis data Matakuliah: >/ > Tahun: > Versi: >"— Transcript presentasi:

1 1 Pertemuan > Desain fisik basis data Matakuliah: >/ > Tahun: > Versi: >

2 2 Learning Outcomes Pada akhir pertemuan ini, diharapkan mahasiswa akan mampu : Mahasiswa dapat mendesain fisik basis data

3 3 Outline Materi Pengenalan Desain Fisik Basis Data Petunjuk Pemilihan Index Contoh Sederhana Pemilihan Index Ikhtisar Basis Data Tuning Pemilihan Skema Konseptual Pemilihan Queries dan Views DBMS Benchmarking

4 4 PENGENALAN DISAIN FISIK BASIS DATA Database Workloads Physical Design and Tuning Decisions Need for database tuning

5 5 PETUNJUK PEMILIHAN INDEX Guideline 1 Guideline 2 Guideline 3 Guideline 4 Guideline 5 Guideline 6

6 6 CONTOH SEDERHANA PEMILIHAN INDEX SELECT E.ename, D.mgr FROM Emp E, Dept D WHERE D.dname=‘Toy’ AND E.dno=D.dno SELECT E.ename, D.mgr FROM Emp E, Dept D WHERE E.sal BETWEEN AND AND E.hobby=‘Stamps’ AND E.dno=D.dno

7 7 IKHTISAR BASIS DATA TUNING Tuning indexes Tuning the conceptual schema Tuning queries and views

8 8 PEMILIHAN SKEMA KONSEPTUAL Settling for a weaker normal form Denormalization Choice of composition Vertical partitioning of BCNF Relations Horizontal Decomposition

9 9 PEMILIHAN QUERIES DAN VIEWS Contoh : CREATE ASSERTION CheckDep CHECK ( NOT EXISTS ( SELECT * FROM PartInfo P, ContractInfo C WHERE P.sid=C.sid AND P.did=C.did GROUP BY C.jid, P.pid HAVING COUNT (C.cid) > 1 ))

10 10 PEMILIHAN QUERIES DAN VIEWS If a query runs slower than expected, check if an index needs to be re-built, or if statistics are too old. Sometimes, the DBMS may not be executing the plan you had in mind. Common areas of weakness: – Selections involving null values. – Selections involving arithmetic or string expressions. – Selections involving OR conditions. – Lack of evaluation features like index-only strategies or certain join methods or poor size estimation. Check the plan that is being used! Then adjust the choice of indexes or rewrite the query/view

11 11 DBMS BENCHMARKING Online Transaction Processing Benchmarking Query Benchmarking Menggunakan Benchmarking

12 12 > Dilanjutkan ke pert. 12 Paralel dan Basis Data Terdistribusi


Download ppt "1 Pertemuan > Desain fisik basis data Matakuliah: >/ > Tahun: > Versi: >"

Presentasi serupa


Iklan oleh Google