Traditional Culture Encyclopedia - Traditional culture - What are the differences between hbase and relational databases in terms of storage methods
What are the differences between hbase and relational databases in terms of storage methods
Column storage is different from traditional relational databases in that data is stored in tables on a row-by-row basis. One of the important benefits of the column approach is that the entire database is automatically indexed because the selection rules in a query are defined by columns.
Storing each field's data aggregated by columns can greatly reduce the amount of data read when the query requires only a few fields, and a field's data aggregated, then it's easier to design better compression/decompression algorithms for this aggregated storage.
The difference between traditional (Oracle) row storage and (Hbase) column storage.
Mainly in the following aspects: 1. Data types. Relational databases use a relational model with a rich variety of data types and storage methods. HBase uses a simpler data model, which stores data as an uninterpreted string, the user can be different formats of structured and unstructured data are serialized into a string saved in HBase, the user needs to write their own program to parse the string into different data types. 2. Data manipulation. Relational database contains rich operations, such as insert, delete, update, query, etc., which will involve complex multi-table connection, usually with the help of primary and foreign key associations between multiple tables to achieve the HBase operation there is no complex table-to-table relationship, only a simple insert, query, delete, empty, etc., because HBase in the design of the avoidance of complex relationships between tables, usually only a single-table primary key associations to achieve the HBase operation. Because HBase is designed to avoid complex table-to-table relationships, it usually uses only single-table primary key queries.
- Related articles
- In a traditional society that emphasizes "parental order", what is marriage like for women?
- Smooth sailing ornaments Feng Shui Smooth sailing ornaments Feng Shui explanation
- How to understand the objectivity and certainty of legal reasoning
- The Distribution of Power Levels in fantasy novel
- Organize and implement the plan of vocational education activity week.
- The influence of culture is first and foremost the influence of what
- What are some short sentences praising Qingdao?
- Lanzhou Bayi Basketball Gym Address
- How to choose the traditional fishing line group?
- What dances have both national style and modern dance?