Databases Flashcards

1
Q

Types of Indexes

A

Clustered: Sorts rows on key values. Can only have 1 clustered index as it’s the data itself stored on disk.

Non-clustered: Data stored in one location and indicies in another that point to the data. Can have many of these.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Insertion Anomaly

A

Cannot insert because other required info is missing

Ex. Cannot add customer before they order something

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Partial Dependencies

A

When non-key is dependent on part of a candidate key

studentid | projectno | studentname | projectname

studentname and projectname are both dependent on the ids in the table.

Problem with this is if we don’t have any students assigned to a project, then we can’t get the project name from anywhere

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

ACID

A

Atomicity: Commit all or nothing
Consistency: Change maintains data integrity
Isolation: Can concurrently process all transactions
Durability: Changes to database persist

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

OLAP

A

Online Analytical Processing

  • Optimized for big reads
  • Column-oriented storage
  • Star/snowflake schemas
  • Low frequency of transactions
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

OLTP

A

Online Transactional Processing

  • Optimized for rights and low-latency
  • Row-oriented storage
  • 3NF
  • Large number of users conducting short transactions
How well did you know this?
1
Not at all
2
3
4
5
Perfectly