Main Memory Database Systems
Main Memory Database Systems
M i Memory
M
Database Systems
Behnam Dezfouli
Fall 2006
M i M
Main Memory D
Database
t b
Motivations:
Insome cases when DB is of limited size.
Requirement of short Access/Response time and
better transaction throughput
Applications handling high traffic of data, e.g. Router.
Real-Time applications :
Telecommunication, Radar tracking
S
Space consuming
i d due tto d
duplicate
li t values
l (i
(in conventional
ti l systems)
t )
In a MMDB:
Relational tuples can be represented as a set of pointers to data
values
use of pointers is space efficient when large values appear
multiple times in the database
the actual value needs to only be stored once
Pointers also simplify the handling of variable length fields since
variable length data can be represented using pointers into a
heap
Example:
a p e jo
joining
g relations
e at o s R a
and
dSo
over
e a co
common
o att
attribute
bute
Application
pp cat o transactions
t a sact o s never
e e require
equ e access to ddisk
s resident
es de t data
Disk access can be tailored to suite the needs of checkpointing
alone
Disk I/O using
g very
y large
g block size
After failure:
restore data from disk resident backup
Update using the log
Load blocks of the DB “on demand”
Disk striping or disk arrays
Potential problems:
Direct access causes unauthorized access
S t
System has
h no way off knowing
k i whath t has
h b bees modified
difi d
Main Memory has short response time, and its decreasing cost
makes it affordable and suitable for real-time applications
mechanisms
ec a s s and
a d opt
optimizations
at o s we
e have
a e discussed
d scussed in tthis
s pape
paper will
become commonplace