Final Lec
Final Lec
Final Exam
Tuesday, 5/20, 5-8 pm
Cumulative, stress end of semester
2 cribsheets
Final Review Session
Watch for announcement
Office Hours
Next week
Tentative office hours on 5/15, watch
web page
As you study...
"Reading maketh a full man; conference a ready
man; and writing an exact man."
-Francis Bacon
"If you want truly to understand something, try
to change it."
-Kurt Lewin
"I hear and I forget. I see and I remember. I do
and I understand."
-Chinese Proverb.
"Knowledge is a process of piling up facts;
wisdom lies in their simplification."
-Martin H. Fischer
Data integrity
Declarative consistency (constraints,
FDs)
Concurrent access, recovery from
crashes.
Simplicity is Beautiful
The relational model is simple
simple query language means simple implementation
model
basically just indexes, join algorithms,
sorting, grouping!
simple data model means easy schema evolution
simple data model provides clean analysis of
schemas (FDs & NFs are essentially automatic)
Every other structured data model has proved to be
a wash
XML has found a niche, but not as a database
Theres a reason that the backend of web search
looks so much like a relational database.
Query Processing is
Predictable
Big queries take many predictable steps
unlike typical OS workloads, which depend on
what small task users decide to do next
DBMSs can use this knowledge to optimize
For caching, prefetching, admission control,
memory allocation, etc.
These lessons should be applied whenever you
know your access patterns
again, especially for bulk operations!
Indexing Is Simple,
Powerful
Hash indexes easy and quick for equality
worth reading about linear hashing in the
text
Trees can be used for just about anything
else!
each tree level partitions the dataset
labels in the tree direct query traffic
to the right data
all you need to think about in
designing a tree is how to partition, and
how to label!
Database Design
(And you thought SQL was confusing!)
This is not simple stuff!!
requires a lot of thought, a lot of
tools
theres no cookbook to follow
decisions can make a huge difference
down the road!
The basic steps we studied (conceptual
design, schema refinement, physical
design) break up the problem somewhat,
but also interact with each other
Complexity in DB design pays off at
query time, and in consistency
Parting Thoughts
"Education is the ability to listen to almost
anything without losing your temper or your selfconfidence."
-Robert Frost
"It is a miracle that curiosity survives formal
education."
-Albert Einstein
Humility...yet pride and scorn;
Instinct and study; love and hate;
Audacity...reverence. These must mate
-Herman Melville
"The only thing one can do with good advice is to
pass it on. It is never of any use to oneself."
-Oscar Wilde