csnotes/cst363/lec/lec1.md
Medium Fries 07c8baf935 OMEGALUL
2018-09-01 16:25:12 -07:00

1.1 KiB

lec1

A few reasons to have them \

And what they require
Database systems generally need support for:

  1. querying - \
  • Finding things \
  • Just as well structured data makes querying easier
  1. access control - \
  • who can access which data segments and what they can do with that data \
  • reading, writing, sending, etc
  1. corruption prevention - \
  • mirroring/raid/parity checking/checksums/etc as some examples

Modeling Data \

Just like other data problems we can choose what model we use to deal with data.

Schema is the deisgn or structure of a specific database. While the instance is the occurance of that schema with some data inside the fields. _The data inside those fields at this point don't really matter. \

Queries are typically known to be declarative; typically we don't care about what goes on behind the scenes in practice since by this point we are assuming we have tools we trust and know to be somewhat efficient. \

Transactions are a set of operations. Transactions are not alllowed to fail. If anything fails then everything should be undone and the state should revert to previous state.