RELATIONAL DB AND MYSQL INSIGHT
Outline

Relational
DB

Database
requirement

MySQL

We have features for every step of the way
Relational database
management system

1. Purpose
2. Normalization
History
● Wikipedia : A relational database management system (RDBMS) is a
database management system (DDMS) that is based...
NORMALIZATION

• Normalization was first proposed by Codd as
an integral part of the relational model.
• It encompasses a ...
NORMALIZATION PROCESS
Normal Form
Database Requirement

Stylize, edit, and animate your media
Requirement?

• Much depends on the application  However
we can think of something like
– In application level:
• Speed (...
Just clarify the ACID
• Atomicity:
– All or nothing
– One part of the transaction fails (for failures, errors,
crashes), t...
MYSQL

View your slides from anywhere!
Logical architecture
How does MySQL handle queries?
• Concurrency control
– Locking (READ, WRITE)
– Table lock and row lock

• Concurrency cont...
Performance
• Depends on:
– Table design
• Schema
• Index

– Query
• Some query beats all index
• Query covered index

– S...
Availability
GLHF
Relational Database and mysql insight
Relational Database and mysql insight
Upcoming SlideShare
Loading in …5
×

Relational Database and mysql insight

395 views
266 views

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
395
On SlideShare
0
From Embeds
0
Number of Embeds
6
Actions
Shares
0
Downloads
3
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • This presentation demonstrates the new capabilities of PowerPoint and it is best viewed in Slide Show. These slides are designed to give you great ideas for the presentations you’ll create in PowerPoint 2011!For more sample templates, click the File menu, and then click New From Template. Under Templates, click Presentations.
  • Relational Database and mysql insight

    1. 1. RELATIONAL DB AND MYSQL INSIGHT
    2. 2. Outline Relational DB Database requirement MySQL We have features for every step of the way
    3. 3. Relational database management system 1. Purpose 2. Normalization
    4. 4. History ● Wikipedia : A relational database management system (RDBMS) is a database management system (DDMS) that is based on the relational model as introduced by E. F. Codd, of IBM's San Jose Research Laboratory. Many popular databases currently in use are based on the relational database model. ● Relational database theory uses mathematical terminology, which are roughly equivalent to that of Normalization: RDBMS ~ NORMALIZATION
    5. 5. NORMALIZATION • Normalization was first proposed by Codd as an integral part of the relational model. • It encompasses a set of procedures designed to eliminate nonsimple domains (non-atomic values) and the redundancy (duplication) of data, which in turn prevents data manipulation anomalies and loss of data integrity.
    6. 6. NORMALIZATION PROCESS
    7. 7. Normal Form
    8. 8. Database Requirement Stylize, edit, and animate your media
    9. 9. Requirement? • Much depends on the application  However we can think of something like – In application level: • Speed (performance) • Availability • Scalability – In transaction level: • ACID (atomicity, consistency, isolation, durability) – Something else?: • Compression , etc ….
    10. 10. Just clarify the ACID • Atomicity: – All or nothing – One part of the transaction fails (for failures, errors, crashes), the entire transaction fails • Consistency: – Bring database from a valid state to another • Isolation: – The effect of an incomplete transaction might be or might not be visible to another • Durability: – The effect of a completed transaction must be stored permanently.
    11. 11. MYSQL View your slides from anywhere!
    12. 12. Logical architecture
    13. 13. How does MySQL handle queries? • Concurrency control – Locking (READ, WRITE) – Table lock and row lock • Concurrency control – Locking (READ, WRITE) – Table lock and row lock • Transaction – Isolation level (remember ACID?)
    14. 14. Performance • Depends on: – Table design • Schema • Index – Query • Some query beats all index • Query covered index – Storage engine • Sometimes affect performance much more than hard ware – Locking strategy – Etc, … – Hardware • RAM (should be enough to store index) • Hardrive, etc…
    15. 15. Availability
    16. 16. GLHF

    ×