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

Database transaction processing method and device based on sub-libraries and sub-tables

A technology of sub-database, sub-table, and transaction processing, which is applied in the field of database transaction processing, can solve problems such as simultaneous failure, high cost, and difficult implementation of cross-database transactions, and achieve the effect of avoiding implementation and reducing development costs

Active Publication Date: 2020-02-11
SUNING CLOUD COMPUTING CO LTD
View PDF2 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

At present, the above-mentioned situation is generally improved by means of horizontal expansion of the database, but the horizontal expansion of the database will bring difficulties in the implementation of cross-database transactions
This is because, in a single-database environment, multiple rows of data can be operated at one time, and the characteristics of the database (that is, the atomicity of the database) can ensure that the operation succeeds or fails at the same time, but in a multi-database environment, multiple rows of data in one operation may Distributed in different database instances, it is impossible to guarantee the success or failure of operations at the same time through the characteristics of the database. Distributed transactions must be introduced to ensure that a batch of data in the operation succeeds or fails at the same time
However, whether it is introducing middleware or self-developing distributed transactions, the cost is very high

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 transaction processing method and device based on sub-libraries and sub-tables
  • Database transaction processing method and device based on sub-libraries and sub-tables
  • Database transaction processing method and device based on sub-libraries and sub-tables

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0049] In order to make the purpose, technical solutions and advantages of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only Some, but not all, embodiments of the invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0050] With the development of time and business, the growth of data volume in the database is uncontrollable, and the data in the library and tables will become larger and larger, which will bring higher disk, IO, system overhead, and even performance bottleneck, and the resources of a service are limited after all, so it is necessary to split the database and tables ...

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 discloses a database transaction processing method and device based on sub-libraries and sub-tables. The method comprises the steps of obtaining sub-libraries and sub-table fields of aninitial sub-process of a service according to a pre-constructed mapping table; allocating sub-libraries to the current sub-process according to the sub-library and sub-table fields of the initial sub-process and the number of the sub-libraries, wherein the current sub-process is any sub-process of the service except the initial sub-process; selecting sub-tables from the sub-libraries for the current sub-process according to the sub-library sub-table fields of the initial sub-process and the number of the sub-tables; and updating the data of the current sub-process to the allocated sub-tables,and updating related data in the sub-tables corresponding to other sub-processes of the service. According to the method and the system, the data of all the sub-processes of the service operated eachtime falls into the same database, so that the realization of distributed transactions is avoided, the development cost and the system risk caused by the distributed transactions are reduced, Meanwhile, the characteristics of the database can be utilized to ensure that the operated service data is successful or failed at the same time.

Description

technical field [0001] The invention relates to the technical field of database transaction processing, in particular to a database transaction processing method and device based on sub-database and sub-table. Background technique [0002] With the development of mobile technology, the Internet has penetrated into all aspects of people's lives, and the share of online economic activities continues to grow. The access of a large number of users and services will inevitably lead to excessive pressure on the system and reduce the response speed of the system, thereby affecting user experience. However, the competition among major e-commerce companies is fierce. If the website response is not timely, or the application has obvious delays, it will lead to poor user experience and even lead to problems such as loss of users. [0003] In some current application systems, because the database is a single database, database performance has become a bottleneck for system performance ...

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): G06Q30/06G06F16/25G06F16/23G06F16/2453
CPCG06Q30/0601G06F16/252G06F16/256G06F16/2379G06F16/2453
Inventor 王君王康龙秦刚司孝波钱津津
Owner SUNING CLOUD COMPUTING 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