Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and device for updating data of Mysql database to Es database

A data update and database technology, applied in the computer field, can solve problems such as unavailability, slow information search speed, and affecting the accuracy of data update

Pending Publication Date: 2020-03-27
BEIJING QIHOO TECH CO LTD
View PDF5 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] Usually, the list of items.page needs to use a lot of information. If you read the information directly from the Mysql database, you need to check many data tables, which leads to a slow speed of information search. Therefore, you can consider the database The data in is indexed into the Es (Elastic Search, distributed search server) database
[0003] However, in the prior art, for example, for the update (update) action of the Mysql database, the updated data is usually written directly into the message queue, and the resident process will immediately consume the message as soon as it listens to the message written into the message queue. This message, the data that is prone to update may not be completely written into the message queue, and the resident process will update the incomplete or untrustworthy or unavailable data to the Es database, thus affecting the accuracy of data update
And if you want to write the complete update data into the Es database later, you need to rely on the compensation mechanism to compensate, which will lead to poor real-time data update

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
  • Method and device for updating data of Mysql database to Es database
  • Method and device for updating data of Mysql database to Es database
  • Method and device for updating data of Mysql database to Es database

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0081] Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0082] In order to solve the above-mentioned technical problems, the embodiment of the present invention provides a method for updating the data of the Mysql database to the Es database. figure 1 A schematic flowchart of a method for updating data in the Mysql database to the Es database according to an embodiment of the present invention is shown. see figure 1 , the method at least includes step S102 to step S108.

[0083] Step ...

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 method and device for updating data of a Mysql database to an Es database, and the method comprises the steps: building a local message list based on the Mysql database, and writing a data updating record corresponding to a data updating event into the local message list when the Mysql database generates the data updating event; then, reading the data updating record in the local message list in real time by utilizing a pre-started first-class resident process, and publishing the read data updating record to a Topic corresponding to the message queue; if the Topic message concerned by the Es database is monitored in the message queue by adopting a pre-started second type of resident process, obtaining the monitored Topic message, and updating the Es database basedon the obtained Topic message. Therefore, according to the embodiment of the invention, the data updating record in the Mysql database is firstly written into the local message list of the Mysql database, and then the complete updating data is written into the Es database, so that the data finally updated into the Es database is high-availability complete data.

Description

technical field [0001] The invention relates to the technical field of computers, in particular to a method and a device for updating data in a Mysql database to an Es database. Background technique [0002] Usually, the list of items.page needs to use a lot of information. If you read the information directly from the Mysql database, you need to check many data tables, which leads to a slow speed of information search. Therefore, you can consider the database The data in is indexed into the Es (Elastic Search, distributed search server) database. [0003] However, in the prior art, for example, for the update (update) action of the Mysql database, the updated data is usually written directly into the message queue, and the resident process will immediately consume the message as soon as it listens to the message written into the message queue. This message, the data that is prone to update like this may not be completely written in the message queue, and the resident proce...

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
IPC IPC(8): G06F16/23G06F16/28
Inventor 张久龙
Owner BEIJING QIHOO TECH CO LTD