Database programming
Database programming
1. Primary storage is the most active storage in computer that stores data temporary for ongoing processing.
It is volatile, i.e the data is lost when the computer is shutdown or on power loss. It must be supplied with
power to access them.
In this type of storage we can explore the following storage.
Register, this is the special type storage for the CPU, it has small storage less than 1kb and it keeps data
that are frequently used by the CPU.
Cache, this was introduced to reduce the gap that was between the CPU and Main memory. As the
speed of CPU is faster than the speed of Main memory, Cache is placed between them to speed up the
transfer of data between them.
Buffer, this is a special type of memory that keeps data being transferred. Almost every device in
computer system has it’s own buffer to achieve such functionality.
Main memory, this is the working storage, all computing operations should be using the main memory
to execute. It is volatile and slightly faster like cache.
Read only memory, this keeps data that were predefined by the manufacturer. It is mostly used when
the manufacturers don’t want the users to modify the content of the storage.
2. Secondary storage is a non-volatile storage that keeps data for permanent use. It is slightly slower and
cheaper than primary storage. It has large storage capacity compared to primary memory storage.
Several storage was identified in this type including
Hard disk drive is composed by a big number a platters that stores information for permanent use, and
it can read using a spindle.
Solid state drive is a large storage using electricity to write and read data to the storage. It is faster than
Hard disk drive.
Flash disk is a non-volatile storage it uses electrically erasable programmable read-memory formats to
store and retrieve data. It is connected to the computer via the USB port
3. Tertiary storage is the largest available storage used for long-term data storage and data backup. Let us
explore few of them,
Optical storage, this keeps data on CD/DVD, normal DVD storage keeps up to 4 Gigabytes. The data on
optical storage can be read and written using laser light.
Magnetic tapes, Is the largest storage available used for data backup and archiving and this is the
slower storage available.
4. Cloud storage here the data is stored on remote servers and can be access anywhere as long as the user
has internet access making it easier and simple to use. It is the largest storage available as long as individual
user has ability to afford the storage. The cloud storage provider is responsible for maintaining and securing
your data. It is scalable as being able to increase/decrease the size of storage without affecting the
performance