Académique Documents
Professionnel Documents
Culture Documents
What is OLTP?
OLTP stands for Online Transaction Processing.
OLTP uses normalized tables to quickly record large amounts of transactions
while making sure that these updates of data occur in as few places as
possible. Consequently OLTP database are designed for recording the daily
operations and transactions of a business. E.g. a timecard system that
supports a large production environment must record successfully a large
number of updates during critical periods like lunch hour, breaks, startup and
close of work.
To estimate the size of the fact table in bytes, multiply the size of a row by
the number of rows in the fact table. A more exact estimate would include
the data types, indexes, page sizes, etc. An estimate of the number of rows
in the fact table is obtained by multiplying the number of transactions per
hour by the number of hours in a typical work day and then multiplying the
result by the number of days in a year and finally multiply this result by the
number of years of transactions involved. Divide this result by 1024 to
convert to kilobytes and by 1024 again to convert to megabytes.
E.g. A data warehouse will store facts about the help provided by a
company’s product support representatives. The fact table is made of up of a
composite key of 7 indexes (int data type) including the primary key. The fact
table also contains 1 measure of time (datetime data type) and another
measure of duration (int data type). 2000 product incidents are recorded
each hour in a relational database. A typical work day is 8 hours and support
is provided for every day in the year. What will be approximate size of this
data warehouse in 5 years?
First calculate the approximate size of a row in bytes (int data type = 4
bytes, datetime data type = 8 bytes):
size of a row = size of all composite indexes (add the size of all indexes) +
size of all measures (add the size of all measures).