Real-Time Databases
Real-Time Databases
Presented by
Parimala kyathsandra
CSE 666 fall 2006
Instructor
In database terms ,
Query –consists of only read operations
Update- consists of write/other operations
ACID Properties
Atomicity: a transaction is done either
completely or not at all
Consistency: transactions are executed in a
given sequence
Isolation: the actions of a transaction are not
visible to any other transactions until it is
committed
Durability: the actions of a database are
permanent
Real-time Vs General Purpose
Databases
Real time database includes
- The ACID properties
- Timing issues
Queries to the database
-Have soft or hard deadlines
Data returned
-Must have both absolute consistency
and relative consistency
Real-time Vs General Purpose
Databases (Contd..)
Absolute consistency - is the accuracy
T1 system
Main
memory
Part of Data
for T1 Disk
Factors Affecting Predictability
(contd..)
t1 t1
t2 t2
Main
t3 memory t3 Disk
t4 t4
Main Memory Databases (Contd..)
Transaction Log
Batch mode
The system waits until a certain volume of
transactions is committed and then copies the
entire batch to the disk
buffer
t1 t1
}
t2 t2 batch
Main Disk
t3 memory t3
t4 t4
Main Memory Databases (Contd..)
Organizing
It is done by pointers, if the data occurs
more than once in the database,we can
simply store one copy of this and have
pointers to it
Using pointers makes many of the tasks
easier
Main Memory Databases (Contd..)
Drawbacks