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

Service providing method for database and database system

A database and main database technology, applied in the computer field, can solve the problems of log loss, log cannot be sent to the standby database in time, network instability, etc., to achieve the effect of improving performance

Active Publication Date: 2017-06-27
ALIBABA GRP HLDG LTD
View PDF15 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] As can be seen from the above, in the prior art database service provision method, in the one-master-slave architecture, there will often occur between the master and the backup due to network instability (such as loss of data packets), network bottlenecks, or the performance of the backup library reaching performance. Bottlenecks (such as peak CPU utilization) that prevent logs from being sent to the standby database in time may lead to log loss

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
  • Service providing method for database and database system
  • Service providing method for database and database system
  • Service providing method for database and database system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0039] 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 making creative efforts belong to the scope of protection of this application.

[0040] In order to facilitate the understanding of the embodiments of the present application, the following will further explain and illustrate with specific embodiments in conjunction with the accompanying drawings, and the embodiments do not constitute a limitation to the embodiments of the present application.

[0041] figure 1 The database syste...

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 relates to a service providing method of a data base, and a database system. The service providing method includes: when a master database server receives a service providing request of a client, the master database server changes data in a database according to the service providing request, writes change information of the database into a first transaction log, and sends the first transaction log to a slave database server; and when a network connection between the master database server and the slave database server is disconnected or time-out, or when the number of accumulated transaction logs which are not sent successively exceeds a preset number value in the master database server, or when the sending time of the first transaction log exceeds the preset time, the master database server transmits the first transaction log or information of an update object corresponding to the first transaction log to a buffer zone. In the embodiment of the invention, when a backup database cannot receive logs temporarily, the master database sends the logs to the buffer zone, and then the logs will not be lost.

Description

technical field [0001] This application relates to the field of computers, in particular to a database service providing method and system. Background technique [0002] Currently, database systems generally adopt a master-slave architecture of one master and one slave to provide high-availability services. Under normal circumstances, external services are provided by the main database server. If the process of the external service performs a change to the data, it will be written to the transaction log before writing the change to the database storage. Each log records the modification of a data record, which contains the primary key of the data record and the specific information of the update operation. The log generated by the master database server is continuously sent to the slave database server through the network connection. After the log is received from the database server, it is played back to synchronize its data with the main database server. For ease of de...

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/2365H04L1/22
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