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

Method and system for storing data on the basis of document database

A technology for storing data and databases, applied in the field of data storage systems, can solve problems such as system slowdown, database deadlock, downtime, etc., and achieve the effect of improving website speed, ensuring consistency, and improving experience

Inactive Publication Date: 2016-06-08
BEIJING NONGXIN INTERNET TECH
View PDF5 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, as the number of pigs managed by the system increases, the amount of data recorded in daily production is also increasing. In this way, there will be a large number of operations and requirements such as inserting data and querying real-time data, which will easily lead to database Deadlocks, downtime, etc. occur; resulting in slowing down of the system and eventually being unable to continue to provide services

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 system for storing data on the basis of document database
  • Method and system for storing data on the basis of document database
  • Method and system for storing data on the basis of document database

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0020] Such as figure 1 As shown, this method of storing data based on a document database includes the following steps:

[0021] (1) The MSSQL database server receives a request to write data;

[0022] (2) Evenly distribute data requests on several MongoDb database server nodes through a consistent hash algorithm;

[0023] (3) Add the code written in the several libraries into a transaction to complete data synchronization, thereby ensuring the consistency of data in MongoDb and MSSQL.

[0024] Further, as figure 2 As shown, the step (2) includes the following sub-steps:

[0025] (2.1) look for MongoDb database server node, if find this node then execute step (2.4), otherwise execute step (2.2);

[0026] (2.2) Obtain a submap larger than the current node;

[0027] (2.3) Take out the first node from the submap, and this node is the node that is larger than and the nearest to the ion map;

[0028] (2.4) Take the node as the desired node;

[0029] (2.5) end.

[0030] Sp...

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 method for storing data on the basis of a document database. The method can avoid the phenomena of database timeout and deadlock caused by a great quantity of data operations and requests, can independently store increasing data on a plurality of servers so as to quicken website speed to improve user experience. The method comprises the following steps: (1) a MSSQL (Structured Query Language) database server receives a data writing request; (2) through a consistent Hash algorithm, data requests are evenly distributed on a plurality of MongoDb database server nodes; and (3) codes which are written into a plurality of libraries are added into one affair to finish data synchronization so as to guarantee the consistency of data in MongoDb and MSSQL. The invention also provides a system for storing the data on the basis of the document database.

Description

technical field [0001] The invention belongs to the technical field of data storage, and in particular relates to a method for storing data based on a document-type database and a system for storing data based on a document-type database. Background technique [0002] With the rapid development of computer information technology and Internet technology, their applications have gradually penetrated into various fields of people's production and life. As an important part of animal husbandry production, pig farming has of course introduced modern technology. The production management of modern pig farms has changed from relying on manual input of pig farm data to batch entry through excel forms. [0003] However, as the number of pigs managed by the system increases, the amount of data recorded in daily production is also increasing. In this way, there will be a large number of operations and requirements such as inserting data and querying real-time data, which will easily l...

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/27
Inventor 张传民刘江叶波
Owner BEIJING NONGXIN INTERNET TECH
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