Principles of Database Systems: comparison of SQL and NoSQL

  • The difference between SQL and NoSQL

    SQL NoSQL
    Using the relational table to store data, the data patterns having strict constraints, thus difficult to store data error To store key documents using JSON-formatted information, more flexible, but it can also lead to data inconsistency problem occurs
    You need to define the schema of the table before using the table No specific pattern data stored
    Use standardization to reduce data redundancy Use of non-standard storage standardized information to ensure that all information in a document that contains one entry
    JOIN operation support, relevant data using a SQL statement taken from more than one table JOIN operation is not supported
    Meet the data integrity constraints Does not satisfy the integrity constraints, do not allow data validation can be stored to an arbitrary position
    Need to customize transactions to ensure data consistency Transactional operations includes a single document, the document does not have a plurality of operating a transactional
    SQL language Use JSON class
    Easy to maintain but poor scalability Good scalability

Guess you like

Origin www.cnblogs.com/xiaobaizzz/p/12305911.html