Intro to Databases - web.labwebdevelopment.mit.edu/2018/pages/lectures/WEBday4_databases.pdf ·...

17
Intro to Databases Robert M. Vunabandi Image from: https://www.theverge.com/2016/9/29/13103982/facebook-arctic-data-center-sweden-photos

Transcript of Intro to Databases - web.labwebdevelopment.mit.edu/2018/pages/lectures/WEBday4_databases.pdf ·...

Page 1: Intro to Databases - web.labwebdevelopment.mit.edu/2018/pages/lectures/WEBday4_databases.pdf · facilitating the interaction between databases and users. Many DBMS obey standards

Intro to DatabasesRobert M. Vunabandi

Image from: https://www.theverge.com/2016/9/29/13103982/facebook-arctic-data-center-sweden-photos

Page 2: Intro to Databases - web.labwebdevelopment.mit.edu/2018/pages/lectures/WEBday4_databases.pdf · facilitating the interaction between databases and users. Many DBMS obey standards

TodayDATABASES

What are they?

How are they structured?

Why do we use them?

What database can I use?

Page 3: Intro to Databases - web.labwebdevelopment.mit.edu/2018/pages/lectures/WEBday4_databases.pdf · facilitating the interaction between databases and users. Many DBMS obey standards

What is a database?

Database: Collection of data

Data: Piece of information

Database Management System (DBMS): Computer software application specialized in facilitating the interaction between databases and users. Many DBMS obey standards such as SQL.

Database Transaction: Interaction between database and users (usually initiated by users): e.g. reading & writing.

Page 4: Intro to Databases - web.labwebdevelopment.mit.edu/2018/pages/lectures/WEBday4_databases.pdf · facilitating the interaction between databases and users. Many DBMS obey standards

data

data

datadata

database

DBMSuser

Page 5: Intro to Databases - web.labwebdevelopment.mit.edu/2018/pages/lectures/WEBday4_databases.pdf · facilitating the interaction between databases and users. Many DBMS obey standards

Models of Database Management Systems (DBMS): Primitive Models

Flat DBMS Hierarchical DBMS

Network DBMS

Page 6: Intro to Databases - web.labwebdevelopment.mit.edu/2018/pages/lectures/WEBday4_databases.pdf · facilitating the interaction between databases and users. Many DBMS obey standards

Post Relational / Hybrid DBMS (NoSQL)

Models of Database Management Systems (DBMS)

Relational DBMS (SQL)

Page 7: Intro to Databases - web.labwebdevelopment.mit.edu/2018/pages/lectures/WEBday4_databases.pdf · facilitating the interaction between databases and users. Many DBMS obey standards

Why do you need a database / DBMS?

Page 8: Intro to Databases - web.labwebdevelopment.mit.edu/2018/pages/lectures/WEBday4_databases.pdf · facilitating the interaction between databases and users. Many DBMS obey standards

ReliabilityAtomicity

Consistency

Isolation (sequential)

Durability

Page 9: Intro to Databases - web.labwebdevelopment.mit.edu/2018/pages/lectures/WEBday4_databases.pdf · facilitating the interaction between databases and users. Many DBMS obey standards

Performance

Page 10: Intro to Databases - web.labwebdevelopment.mit.edu/2018/pages/lectures/WEBday4_databases.pdf · facilitating the interaction between databases and users. Many DBMS obey standards

Flexibility

Page 11: Intro to Databases - web.labwebdevelopment.mit.edu/2018/pages/lectures/WEBday4_databases.pdf · facilitating the interaction between databases and users. Many DBMS obey standards

Scalability

Page 12: Intro to Databases - web.labwebdevelopment.mit.edu/2018/pages/lectures/WEBday4_databases.pdf · facilitating the interaction between databases and users. Many DBMS obey standards

ReliabilityDBMS transactions are ACID.

PerformanceDBMS are optimized to perform tasks on data.

FlexibilityThe data structure can be easily altered.

ScalabilityDBMS can handle A LOT of data transactions.

Page 13: Intro to Databases - web.labwebdevelopment.mit.edu/2018/pages/lectures/WEBday4_databases.pdf · facilitating the interaction between databases and users. Many DBMS obey standards

What DBMS can you use?

Page 14: Intro to Databases - web.labwebdevelopment.mit.edu/2018/pages/lectures/WEBday4_databases.pdf · facilitating the interaction between databases and users. Many DBMS obey standards

What DBMS can you use?

Page 15: Intro to Databases - web.labwebdevelopment.mit.edu/2018/pages/lectures/WEBday4_databases.pdf · facilitating the interaction between databases and users. Many DBMS obey standards

What DBMS can you use?

Page 16: Intro to Databases - web.labwebdevelopment.mit.edu/2018/pages/lectures/WEBday4_databases.pdf · facilitating the interaction between databases and users. Many DBMS obey standards

What DBMS can you use?