Home > Article > Backend Development > What database does python use?
There are many databases available for python. Here we will introduce the two most commonly used databases.
MySQL is a relational database management system developed by the Swedish MySQL AB company and is currently a product of Oracle. MySQL is one of the most popular relational database management systems. In terms of WEB applications, MySQL is the best RDBMS (Relational Database Management System) application software.
MySQL is a relational database management system. A relational database stores data in different tables instead of putting all data in one large warehouse, which increases speed and flexibility.
The SQL language used by MySQL is the most commonly used standardized language for accessing databases. MySQL software adopts a dual licensing policy and is divided into community version and commercial version. Due to its small size, fast speed, low total cost of ownership, and especially the characteristics of open source, MySQL is generally chosen as the website database for the development of small and medium-sized websites.
Application Environment
Compared with other large databases such as Oracle, DB2, SQL Server, etc., MySQL has its own shortcomings, but this does not matter at all. Reduce its popularity. For general individual users and small and medium-sized enterprises, the functions provided by MySQL are more than sufficient, and because MySQL is open source software, it can greatly reduce the total cost of ownership.
MongoDB is a database based on distributed file storage. Written in C language. Designed to provide scalable, high-performance data storage solutions for WEB applications.
MongoDB is a product between a relational database and a non-relational database. It is the most feature-rich among non-relational databases and is most like a relational database. The data structure it supports is very loose and is a bson format similar to json, so it can store more complex data types. The biggest feature of Mongo is that the query language it supports is very powerful. Its syntax is somewhat similar to an object-oriented query language. It can almost implement most functions similar to single-table queries in relational databases, and it also supports indexing of data.
Features
It is characterized by high performance, easy deployment, easy use, and very convenient to store data. The main functional features are:
*Oriented to collection storage, easy to store object type data.
mongodb cluster reference
*Mode free.
*Support dynamic query.
*Supports full indexing, including internal objects.
*Support query.
*Supports replication and failure recovery.
*Use efficient binary data storage, including large objects (such as videos, etc.).
* Automatically handle fragmentation to support scalability at the cloud computing level.
*Supports RUBY, PYTHON, JAVA, C, PHP, C# and other languages.
*The file storage format is BSON (an extension of JSON).
*Accessible via the web.
The above is the detailed content of What database does python use?. For more information, please follow other related articles on the PHP Chinese website!