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

Database operation method and device

Active Publication Date: 2017-06-16
ALIBABA GRP HLDG LTD
View PDF4 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] However, the MVCC mechanism will increase the storage overhead of the database
For example, in a distributed database system, the processing speed is 100 batches of transactions per second. Suppose a sub-database is delayed for 10 minutes due to a failure, and other sub-databases need to save 10×60×100=60,000 data versions. This will take up a lot of disk capacity on the sub-library

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 operation method and device
  • Database operation method and device
  • Database operation method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0028] In order to make the purposes, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments It is a part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of this application.

[0029] figure 1 It is a deployment diagram of a database application system in the prior art. like figure 1 As shown, the system includes: an application server 10 and at least two databases 20 . At least two databases 20 constitute a distributed database system, and each database 20 serves as a sub-database in the distributed database system. In a distri...

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 invention provides a database operation method and device. The method includes the steps that prediction execution data generated when prediction execution is conducted on a to-be-executed event is obtained, wherein the prediction execution data includes a primary key value of target data required by the to-be-executed event and a value, adopted in the prediction execution process, of the target data; according to the primary key value of the target data, the current value of the target data is loaded from a target sub-database corresponding to the to-be-executed event; when the current value of the target data is different from the value, adopted in the prediction execution process, of the target data, whether the current value of the target data affects the business logic of the to-be-executed event is judged; if the current value of the target data does not affect the business logic of the to-be-executed event, the current value of the target data serves as version data corresponding to the to-be-executed event, and the version data is recorded in the target sub-database. According to the method and the device, the storage cost of multi-version concurrency control can be saved, and the disk capacity required by the database is reduced.

Description

[0001] 【Technical field】 [0002] The present application relates to the technical field of databases, in particular to a method and device for operating a database. [0003] 【Background technique】 [0004] Stand-alone databases can easily meet users' needs for relational queries, and are currently the most commonly used database type in business applications. However, for many applications, stand-alone databases will eventually encounter stand-alone performance bottlenecks, such as transaction processing per second (Transaction PerSecond, TPS), query per second (Query Per Second, QPS), memory capacity, disk A series of system resources such as capacity will encounter various restrictions. The distributed database was born to solve this problem. The data in the original stand-alone database is distributed and stored on multiple data storage nodes connected through the network to obtain larger storage capacity and higher concurrent access. [0005] In a distributed database sy...

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): G06F17/30
CPCG06F16/2329G06F16/25G06F16/283G06F16/957G06F16/2474
Inventor 姜宇
Owner ALIBABA GRP HLDG 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