database goodness college of alameda [email protected] copyright © 2008 patrick mcdermott...

11
Database Goodness College of Alameda [email protected] Copyright © 2008 Patrick McDermott Berthe Morisot (1841–95) The Cradle, 1872

Upload: theresa-lee

Post on 04-Jan-2016

212 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Database Goodness College of Alameda pmcdermott@peralta.edu Copyright © 2008 Patrick McDermott Berthe Morisot (1841–95) The Cradle, 1872

Database Goodness

College of [email protected]

Copyright © 2008 Patrick McDermott

Berthe Morisot (1841–95)The Cradle, 1872

Page 2: Database Goodness College of Alameda pmcdermott@peralta.edu Copyright © 2008 Patrick McDermott Berthe Morisot (1841–95) The Cradle, 1872

Why DB?• Retrieve

– Find The Data• Distribute

– Let Many see it• Security

– Control who sees It

Page 3: Database Goodness College of Alameda pmcdermott@peralta.edu Copyright © 2008 Patrick McDermott Berthe Morisot (1841–95) The Cradle, 1872

Database Efficiency• Absence of Redundancy• Minimal use of null values• Prevention of Loss of Information

Page 4: Database Goodness College of Alameda pmcdermott@peralta.edu Copyright © 2008 Patrick McDermott Berthe Morisot (1841–95) The Cradle, 1872

Redundancy• Waste Space• Gets Out of Sync• UK: Unemployed• DBA: Unnecessary

Page 5: Database Goodness College of Alameda pmcdermott@peralta.edu Copyright © 2008 Patrick McDermott Berthe Morisot (1841–95) The Cradle, 1872

Flat File Headaches• Multiple Values

– Either multiple rows or columns, or cram it• Update Anomaly

– Must find and update all repetitions• Insertion Anomaly

– Can’t add one without the other• Deletion Anomaly

– Delete one deletes the other

Page 6: Database Goodness College of Alameda pmcdermott@peralta.edu Copyright © 2008 Patrick McDermott Berthe Morisot (1841–95) The Cradle, 1872

Redundancy• Example from 1996, using Library of

Congress as example:• A certain “approach wastes about 1.6

gigabytes of space, just for the address field!”

• “Indeed, the issue of redundancy alone is quite enough to convince a database designer to avoid the flat database approach.”

Page 7: Database Goodness College of Alameda pmcdermott@peralta.edu Copyright © 2008 Patrick McDermott Berthe Morisot (1841–95) The Cradle, 1872

Integrity• Referential Integrity• No Orphans

Page 8: Database Goodness College of Alameda pmcdermott@peralta.edu Copyright © 2008 Patrick McDermott Berthe Morisot (1841–95) The Cradle, 1872

Referential Integrity• Restrict• Cascade• Set to null

Page 9: Database Goodness College of Alameda pmcdermott@peralta.edu Copyright © 2008 Patrick McDermott Berthe Morisot (1841–95) The Cradle, 1872

Concurrency Control• Lost update• Uncommitted dependency• Inconsistent analysis

Page 10: Database Goodness College of Alameda pmcdermott@peralta.edu Copyright © 2008 Patrick McDermott Berthe Morisot (1841–95) The Cradle, 1872

Programming Goodness I1. Openness of the data refers to the capability of other

routines or applications to make sense of the data file without access to your source code.

2. Complex data models refers to the technology’s capability to handle applications that have complex data entities and relationships.

3. Multiuser refers to the capability of multiple threads, applications, and users to access the data simultaneously.

4. Performance refers to the speed with which data can be read from and written to the database.

5. Scalability and capacity refers to the database’s capability to sustain good performance as the amount of data increases.

Page 11: Database Goodness College of Alameda pmcdermott@peralta.edu Copyright © 2008 Patrick McDermott Berthe Morisot (1841–95) The Cradle, 1872

Programming Goodness II6. Set-based operations in code indicates whether the

technology offers set-based operations in its programming model.

7. Set-based operations at the server refers to the capability of the technology to process data at the server without having to send it all to the client machine processed.

8. Embeddable with your application indicates how easy or difficult it would be to ship this technology with a commercial application.

9. Data validation/integrity refers to the database’s capability to validate the data to ensure the integrity of the data.

10.Code-to-functionality ratio refers to how much code you have to write to the database functionality you get from that code.