The sizes, capabilities, and performance of databases and their respective DBMSs have grown in orders of magnitude. These performance increases were enabled by the technology progress in the areas of
processors,
computer memory,
computer storage, and
computer networks. The concept of a database was made possible by the emergence of direct access
storage media such as
magnetic disks, which became widely available in the mid-1960s; earlier systems relied on sequential storage of data on
magnetic tape. The subsequent development of database technology can be divided into three eras based on data model or structure:
navigational, SQL/
relational, and post-relational. The two main early navigational
data models were the
hierarchical model and the
CODASYL model (
network model). These were characterized by the use of
pointers (often physical disk addresses) to follow relationships from one record to another. The
relational model, first proposed in 1970 by
Edgar F. Codd, departed from this tradition by insisting that
applications should search for data by content, rather than by following links. The relational model employs sets of ledger-style tables, each used for a different type of
entity. Only in the mid-1980s did computing hardware become powerful enough to allow the wide deployment of relational systems (DBMSs plus applications). By the early 1990s, however, relational systems dominated in all large-scale
data processing applications, and they remain dominant:
IBM Db2,
Oracle,
MySQL, and
Microsoft SQL Server are the most searched
DBMS. The dominant database language, standardized SQL for the relational model, has influenced database languages for other data models.
Object databases were developed in the 1980s to overcome the inconvenience of
object–relational impedance mismatch, which led to the coining of the term "post-relational" and also the development of hybrid
object–relational databases. The next generation of post-relational databases in the late 2000s became known as
NoSQL databases, introducing fast
key–value stores and
document-oriented databases. A competing "next generation" known as
NewSQL databases attempted new implementations that retained the relational/SQL model while aiming to match the high performance of NoSQL compared to commercially available relational DBMSs.
1960s, navigational DBMS database model The introduction of the term
database coincided with the availability of direct-access storage (disks and drums) from the mid-1960s onwards. The term represented a contrast with the tape-based systems of the past, allowing shared interactive use rather than daily
batch processing. The
Oxford English Dictionary cites a 1962 report by the
System Development Corporation of California as the first to use the term "data-base" in a specific technical sense. As computers grew in speed and capability, a number of general-purpose database systems emerged; by the mid-1960s a number of such systems had come into commercial use. Interest in a standard began to grow, and
Charles Bachman, author of one such product, the
Integrated Data Store (IDS), founded the
Database Task Group within
CODASYL, the group responsible for the creation and standardization of
COBOL. In 1971, the Database Task Group delivered their standard, which generally became known as the
CODASYL approach, and soon a number of commercial products based on this approach entered the market. The CODASYL approach offered applications the ability to navigate around a linked data set which was formed into a large network. Applications could find records by one of three methods: • Use of a primary key (known as a CALC key, typically implemented by
hashing) • Navigating relationships (called
sets) from one record to another • Scanning all the records in a sequential order Later systems added
B-trees to provide alternate access paths. Many CODASYL databases also added a declarative query language for end users (as distinct from the navigational
API). However, CODASYL databases were complex and required significant training and effort to produce useful applications.
IBM also had its own DBMS in 1966, known as
Information Management System (IMS). IMS was a development of software written for the
Apollo program on the
System/360. IMS was generally similar in concept to CODASYL, but used a strict hierarchy for its model of data navigation instead of CODASYL's network model. Both concepts later became known as navigational databases due to the way data was accessed: the term was popularized by Bachman's 1973
Turing Award presentation
The Programmer as Navigator. IMS is classified by IBM as a
hierarchical database. IDMS and
Cincom Systems'
TOTAL databases are classified as network databases. IMS remains in use .
1970s, relational DBMS Edgar F. Codd worked at IBM in
San Jose, California, in an office primarily involved in the development of
hard disk systems. He was unhappy with the navigational model of the CODASYL approach, notably the lack of a "search" facility. In 1970, he wrote a number of papers that outlined a new approach to database construction that eventually culminated in the groundbreaking
A Relational Model of Data for Large Shared Data Banks. The paper described a new system for storing and working with large databases. Instead of records being stored in some sort of
linked list of free-form records as in CODASYL, Codd's idea was to organize the data as a number of "
tables", each table being used for a different type of entity. Each table would contain a fixed number of columns containing the attributes of the entity. One or more columns of each table were designated as a
primary key by which the rows of the table could be uniquely identified; cross-references between tables always used these primary keys, rather than disk addresses, and queries would join tables based on these key relationships, using a set of operations based on the mathematical system of
relational calculus (from which the model takes its name). Splitting the data into a set of normalized tables (or
relations) aimed to ensure that each "fact" was only stored once, thus simplifying update operations. Virtual tables called
views could present the data in different ways for different users, but views could not be directly updated. Codd used mathematical terms to define the model: relations, tuples, and domains rather than tables, rows, and columns. The terminology that is now familiar came from early implementations. Codd would later criticize the tendency for practical implementations to depart from the mathematical foundations on which the model was based. , records are "linked" using virtual keys not stored in the database but defined as needed between the data contained in the records. The use of primary keys (user-oriented identifiers) to represent cross-table relationships, rather than disk addresses, had two primary motivations. From an engineering perspective, it enabled tables to be relocated and resized without expensive database reorganization. But Codd was more interested in the difference in semantics: the use of explicit identifiers made it easier to define update operations with clean mathematical definitions, and it also enabled query operations to be defined in terms of the established discipline of
first-order predicate calculus; because these operations have clean mathematical properties, it becomes possible to rewrite queries in provably correct ways, which is the basis of query optimization. There is no loss of expressiveness compared with the hierarchic or network models, though the connections between tables are no longer so explicit. In the hierarchic and network models, records were allowed to have a complex internal structure. For example, the salary history of an employee might be represented as a "repeating group" within the employee record. In the relational model, the process of normalization led to such internal structures being replaced by data held in multiple tables, connected only by logical keys. For instance, a common use of a database system is to track information about users, their name, login information, various addresses and phone numbers. In the navigational approach, all of this data would be placed in a single variable-length record. In the relational approach, the data would be
normalized into a user table, an address table and a phone number table (for instance). Records would be created in these optional tables only if the address or phone numbers were actually provided. As well as identifying rows/records using logical identifiers rather than disk addresses, Codd changed the way in which applications assembled data from multiple records. Rather than requiring applications to gather data one record at a time by navigating the links, they would use a declarative query language that expressed what data was required, rather than the access path by which it should be found. Finding an efficient access path to the data became the responsibility of the database management system, rather than the application programmer. This process, called query optimization, depended on the fact that queries were expressed in terms of mathematical logic. Codd's paper inspired teams at various universities to research the subject, including one at
University of California, Berkeley led by
Eugene Wong and
Michael Stonebraker, who started
INGRES using funding that had already been allocated for a geographical database project and student programmers to produce code. Beginning in 1973, INGRES delivered its first test products which were generally ready for widespread use in 1979. INGRES was similar to
System R in a number of ways, including the use of a "language" for
data access, known as
QUEL. Over time, INGRES moved to the emerging SQL standard. IBM itself did one test implementation of the relational model,
PRTV, and a production one,
Business System 12, both now discontinued.
Honeywell wrote
MRDS for
Multics, and now there are two new implementations:
Alphora Dataphor and Rel. Most other DBMS implementations usually called
relational are actually SQL DBMSs. In 1970, the University of Michigan began development of the
MICRO Information Management System based on
D.L. Childs' Set-Theoretic Data model. The university in 1974 hosted a debate between Codd and Bachman which Bruce Lindsay of IBM later described as "throwing lightning bolts at each other!". MICRO was used to manage very large data sets by the
US Department of Labor, the
U.S. Environmental Protection Agency, and researchers from the
University of Alberta, the
University of Michigan, and
Wayne State University. It ran on IBM mainframe computers using the
Michigan Terminal System. The system remained in production until 1998.
Integrated approach In the 1970s and 1980s, attempts were made to build database systems with integrated hardware and software. The underlying philosophy was that such integration would provide higher performance at a lower cost. Examples were
IBM System/38, the early offering of
Teradata, and the
Britton Lee, Inc. database machine. Another approach to hardware support for database management was
ICL's
CAFS accelerator, a hardware disk controller with programmable search capabilities. In the long term, these efforts were generally unsuccessful because specialized database machines could not keep pace with the rapid development and progress of general-purpose computers. Thus most database systems nowadays are software systems running on general-purpose hardware, using general-purpose computer data storage. However, this idea is still pursued in certain applications by some companies like
Netezza and Oracle (
Exadata).
Late 1970s, SQL DBMS IBM formed a team led by Codd that started working on a prototype system,
System R despite opposition from others at the company. The first version was ready in 1974/5, and work then started on multi-table systems in which the data could be split so that all of the data for a record (some of which is optional) did not have to be stored in a single large "chunk". Subsequent multi-user versions were tested by customers in 1978 and 1979, by which time a standardized
query language – SQL – had been added. Codd's ideas were establishing themselves as both workable and superior to CODASYL, pushing IBM to develop a true production version of System R, known as
SQL/DS, and, later,
Database 2 (
IBM Db2).
Larry Ellison's Oracle Database (or more simply,
Oracle) started from a different chain, based on IBM's papers on System R. Though Oracle V1 implementations were completed in 1978, it was not until Oracle Version 2 when Ellison beat IBM to market in 1979. Stonebraker went on to apply the lessons from INGRES to develop a new database, Postgres, which is now known as
PostgreSQL. PostgreSQL is often used for global mission-critical applications (the .org and .info domain name registries use it as their primary
data store, as do many large companies and financial institutions). In Sweden, Codd's paper was also read and
Mimer SQL was developed in the mid-1970s at
Uppsala University. In 1984, this project was consolidated into an independent enterprise. Another data model, the
entity–relationship model, emerged in 1976 and gained popularity for
database design as it emphasized a more familiar description than the earlier relational model. Later on, entity–relationship constructs were retrofitted as a
data modeling construct for the relational model, and the difference between the two has become irrelevant.
1980s, on the desktop Besides IBM and various software companies such as
Sybase and
Informix Corporation, most large computer hardware vendors by the 1980s had their own database systems such as
DEC's
VAX Rdb/VMS. The decade ushered in the age of
desktop computing. The new computers empowered their users with spreadsheets like
Lotus 1-2-3 and database software like
dBASE. The dBASE product was lightweight and easy for any computer user to understand out of the box.
C. Wayne Ratliff, the creator of dBASE, stated: "dBASE was different from programs like BASIC, C, FORTRAN, and COBOL in that a lot of the dirty work had already been done. The data manipulation is done by dBASE instead of by the user, so the user can concentrate on what he is doing, rather than having to mess with the dirty details of opening, reading, and closing files, and managing space allocation." dBASE was one of the top selling software titles in the 1980s and early 1990s.
1990s, object-oriented By the start of the decade databases had become a billion-dollar industry in about ten years. The 1990s, along with a rise in
object-oriented programming, saw a growth in how data in various databases were handled. Programmers and designers began to treat the data in their databases as
objects. That is to say that if a person's data were in a database, that person's attributes, such as their address, phone number, and age, were now considered to belong to that person instead of being extraneous data. This allows for relations between data to be related to objects and their
attributes and not to individual fields. The term "
object–relational impedance mismatch" described the inconvenience of translating between programmed objects and database tables.
Object databases and
object–relational databases attempt to solve this problem by providing an object-oriented language (sometimes as extensions to SQL) that programmers can use as alternative to purely relational SQL. On the programming side, libraries known as
object–relational mappings (ORMs) attempt to solve the same problem.
2000s, NoSQL and NewSQL Database sales grew rapidly during the
dotcom bubble and, after its end, the rise of
ecommerce. The popularity of
open source databases such as
MySQL has grown since 2000, to the extent that Ken Jacobs of Oracle said in 2005 that perhaps "these guys are doing to us what we did to IBM".
XML databases are a type of structured document-oriented database that allows querying based on
XML document attributes. XML databases are mostly used in applications where the data is conveniently viewed as a collection of documents, with a structure that can vary from the very flexible to the highly rigid: examples include scientific articles, patents, tax filings, and personnel records.
NoSQL databases are often very fast, do not require fixed table schemas, avoid join operations by storing
denormalized data, and are designed to
scale horizontally. In recent years, there has been a strong demand for massively distributed databases with high partition tolerance, but according to the
CAP theorem, it is impossible for a
distributed system to simultaneously provide
consistency, availability, and partition tolerance guarantees. A distributed system can satisfy any two of these guarantees at the same time, but not all three. For that reason, many NoSQL databases are using what is called
eventual consistency to provide both availability and partition tolerance guarantees with a reduced level of data consistency.
NewSQL is a class of modern relational databases that aims to provide the same scalable performance of NoSQL systems for online transaction processing (read-write) workloads while still using SQL and maintaining the
ACID guarantees of a traditional database system. ==Use cases==