(reprint) The difference between a file system and a database system

Source: Internet
Author: User

Transferred from: http://storage.chinabyte.com/14/11568014.shtml

Many people just touch the database with a question: In many programs will have to read a static file directly, some read the database. Reading a static file directly, not accessing the database is fast, but why access the database? There must be a difference between the two of them, so what is the difference?

In fact, the relationship between them is very simple, the following reference:

The file system organizes the data into independent data files, realizes the structure in the record, but the whole unstructured, while the database system realizes the structure of the whole data, which is one of the main characteristics of the database and the essential difference between the database system and the file system. In the file system, the data redundancy is large, the storage space is wasted, and the data is inconsistent; In the database system, the data is oriented to the whole system, and the data can be shared by multiple users and multiple applications, and the data redundancy is reduced. File system files are for a particular application service, when the logical structure of the data to be modified, you must modify the application, modify the definition of the file structure, data and procedures between the lack of independence; In the database system, the physical and logical independence of the data is realized by the two level image of the DBMS. Separating the definition of the data from the program reduces the maintenance and modification of the application. Both the file system and the database system can save data for a long time, and the data management software manages the data, and the database system is developed on the basis of file system.

The database system primarily manages the storage, transaction, and operation of the database. The file system is the subsystem of the operating system to manage files and storage space, mainly the allocation of the files of the cluster, disk block or build fat, management space space. In general, the database system calls the file system to manage its own data files, but some database systems can manage their own data files, even on bare devices. The file system is required by the operating system, and the database system is only necessary for database management and application.

The difference between a file system and a database system.

(1) file system files will be stored on the external memory data for a long time, the database system uses the database to store data uniformly, (2) The program and data in the file system are connected, the program and data are separated in the database system, and (3) The file system uses the access method of the operating system to manage the data. The database system uses DBMS to unify the management and Control data, (4) The file system realizes the data sharing in the file unit, the database system realizes the data sharing in the record and the field. The connection between the file system and the database system: (1) is the management technology of the data Organization, (2) The data management software manages the data, the program and the data are converted by the Access method, and (3) The database system is developed on the basis of the file system.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.