13.07.2015 Views

13.1 through 13.5, 13.10 and 13.11

13.1 through 13.5, 13.10 and 13.11

13.1 through 13.5, 13.10 and 13.11

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

.-.-dDChapter 13 Disk Storage, Basic File Structures, <strong>and</strong> Hashingciata structures, called indexes, which speed up the search tbr <strong>and</strong> retrieval oI records.Tl-rese techniques involve storage of auxiliary data, called incler files, in addition tothe file records thernselves.Chapters 13 <strong>and</strong> l4 n-ray be brorvsed <strong>through</strong> or even omitted by reaclers rvhohave already studied file organizations. The material covered here, in particularSections <strong>13.1</strong> <strong>through</strong> 13.8, is necessary for underst<strong>and</strong>ing Chapters l5 <strong>and</strong> 16,which deal with qr-rery processing ancl query optimization.<strong>13.1</strong> IntroductionThe collection of data that makes up a computerized database must be stored physicallyon some computer storage medium. The DBMS software can then retrieve,tupdate, <strong>and</strong> process this data as needed. Cornputer storage media fbrm a -irr)ftiscItit'rnrclty lhat includes two nrain cateqories:'l Primary storage. This category includes storase media that can be operatedon directly by the computer cerrtral processirtg rllir (CPU), such as the computerr.nair.r memory <strong>and</strong> smaller but faster cache rremories. Prirnrrry storageusually provides fast access to data but is of limited storage capacity.,u: Secondary <strong>and</strong> tertiary storage. This category includes magnetic disks,optical disks, :rnd tapes. Hard clisk drives are classifled as secondary storage,whereas removable media are considered tertiary storage. These devices usuallyhave tr larger capacity, cclst less, <strong>and</strong> provide slower access to data than doprimary storage devices. Data in secondary or tertiary storage cannot beprocessedirectly by the CPU; first it rnust be copied into prirnary storage.We will give an overview of the variolrs storage devices used for primary <strong>and</strong> secondarrystorage in Section l3.l.l <strong>and</strong> then we will discuss horv databases ilrc t\'l-ricallyh<strong>and</strong>led in the storage hierarcl-r,v in Section 1-1.1.2.<strong>13.1</strong>.1 Memory Hierarchies <strong>and</strong> Storage DevicesIn a modern computer system, data resides <strong>and</strong> is transported <strong>through</strong>out a hierarchyof storage media. The highest-speed rnemory is the nlost expensive <strong>and</strong> is thereforeavailable with the least capacity. The lowest-speecl r.nenrory is otlline tapestorage, which is essentially available in indefinite storige capacity.At the prinnry storage level, the memory hierarchy includes at the rnost expensiveend, cache memory, which is a static RAM (R<strong>and</strong>om Access Memory). Cache memoryis typically used by the CPU to speed up executiorr of programs. The nert levelo[ primary storage is DRAM (Dynamic RAM), which provides the rnain rvork irreirfbr the CPU for keeping programs <strong>and</strong> data. It is popularly called main memory.The advanttrge of DRAM is its lorv cost, which colrtinues to decrease; the drawbackis its volatilityr <strong>and</strong> lower speed conrpirred with static RAM. hr rhe second(lr), dnd ter-1. Volat le memory typically loses ts contents in case of a power outage, whereas nonvo ati e memorydoes not.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!