Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Database system and database access method

A database and data technology, applied in the database field, can solve problems such as high cancellation rate, tps drop, low concurrency and low conflict throughput, etc.

Active Publication Date: 2019-07-16
HUAWEI TECH CO LTD
View PDF4 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] An embodiment of the present invention provides a database system. The database system calculates the heat of the data of the operation transaction through the switching unit in the self-adaptive module, and selects the corresponding parallel control unit according to the heat, so as to solve the problem that the high cancellation rate causes the overall failure The problem of the tps drop of the execution transaction does not affect the throughput of low concurrency and low conflict at the same time

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Database system and database access method
  • Database system and database access method
  • Database system and database access method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0058] The technical solutions of the present invention will be described in further detail below with reference to the accompanying drawings and embodiments.

[0059] figure 2 It is a schematic structural diagram of a database system in the prior art, such as figure 2 As shown, the database system includes a structured query language (structured query language, SQL) engine 210, a transaction management module 220, a storage engine 230, a log management 240, a buffer 250 and a recovery management module 260.

[0060] The SQL engine 210 is used for parsing and executing SQL statements corresponding to operations such as adding, deleting, modifying, and checking. Syntactic analysis and semantic analysis of SQL statements are all completed in the SQL engine 210, and finally an execution plan will be generated.

[0061] The transaction management module 210 is configured to judge conflicts and ACID attribute guarantees of different transactions in the process of executing the p...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The embodiment of the invention discloses a database system and a database access method. The database system comprises: an SQL engine used for receiving a first transaction, wherein the first transaction comprises corresponding first data; a switching unit which is used for determining the heat degree of the first data segment, wherein the first data segment is a database data segment in which first data falls when the first transaction is executed, and the heat degree of the first data segment is the transaction number of all operations occupied by the transaction number cancelled in unit time on the history of the first data segment; a concurrency control selection unit which is used for selecting the first concurrency control unit when the heat degree of the first data segment is greater than a first threshold value; a first concurrency control unit which is used for determining whether a second transaction exists or not, and executing the first transaction when the second transaction does not exist, wherein the data read by the first transaction is the data written by the second transaction, and the data writing time of the second transaction is later than the data reading time of the first transaction.

Description

technical field [0001] The invention relates to the technical field of databases, in particular to a database system and a database access method. Background technique [0002] Database (Database) is a warehouse built on computer storage devices that organizes, stores and manages data according to the data structure. It is an organized and shareable data collection stored in the computer for a long time. Transaction (Transaction) is a program execution unit (unit) that accesses and may update various data items in the database. It is the basic unit of recovery and concurrency control, and has four attributes: atomicity, consistency, isolation, and persistence. sex. These four attributes are usually called ACID characteristics. In order to ensure the ACID attributes of the database, during the concurrent execution of transactions, a concurrency control mechanism is required to ensure the correct execution of transactions. Concurrency control is mainly used to solve how to e...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F16/25G06F9/46
CPCG06F9/466G06F16/25
Inventor 郭志建朱建峰智雅楠
Owner HUAWEI TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products