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

MongoDB middleware, data storage method and data migration method

A middleware and data technology, applied in the database field, can solve the problems of complex data migration and single storage field in MongoDB cluster, and achieve the effect of improving performance and avoiding data duplication and omission.

Pending Publication Date: 2021-12-28
SICHUAN CHANGHONG NETWORK TECH CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Aiming at the deficiencies in the prior art, the present invention provides a MongoDB middleware, a data storage method and a data migration method to solve the technical problems of single MongoDB cluster storage field and complex data migration in related technologies

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
  • MongoDB middleware, data storage method and data migration method
  • MongoDB middleware, data storage method and data migration method
  • MongoDB middleware, data storage method and data migration method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0028] In order to make the purpose, technical solutions and beneficial effects of the present invention more clear, the technical solutions in the present invention will be further described below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0029] see figure 1 , the first aspect, the present invention provides a kind of data storage method based on MongoDB middleware, comprising:

[0030] S101, configure the storage policy of sub-database and sub-table of the MongoDB storage database, the sub-database adopts the principle of sub-database of a single field, and the sub-table adopts the principle of sub-table of single or multiple fields;

[0031] S102, associate the storage policy with the MongoDB storage resource pool, and perform caching and initialization;

[0032] S103, according to the storage polic...

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 MongoDB middleware, a data storage method and a data migration method. On one hand, a storage strategy configured with a MongoDB storage database is set in the MongoDB middleware, and the MongoDB middleware is associated with the MongoDB storage database, so that the MongoDB storage database can be subjected to multi-field fragmentation by modifying the storage strategy, and the MongoDB middleware can be subjected to multi-field fragmentation; and, in the query process, through the storage strategy, corresponding libraries (servers) and tables are accessed, data are obtained from the libraries (servers) and tables, and the data query performance is greatly improved. On the other hand, the original MongoDB storage database is migrated and stored to a new server only by modifying the storage strategy of the middleware, so that the problem that data migration can be realized only by mutual cooperation of a front end and a rear end in the prior art is avoided, and meanwhile, the problems of data repetition and omission caused by manual migration are avoided.

Description

technical field [0001] The invention relates to the technical field of databases, in particular to a MongoDB middleware, a data storage method, and a data migration method. Background technique [0002] In the field of the Internet and the Internet of Things, MongoDB is widely used as a data storage method in various business scenarios. However, as the amount of stored data continues to increase, the query performance of stand-alone data storage also decreases, which makes it impossible to meet actual business needs. The shard storage strategy in the cluster environment provided by MongoDB (referred to as MongoDB cluster storage) is also gradually applied in actual business. [0003] However, in the process of actual use, there are also two problems. One: MongoDB cluster storage itself can only be segmented according to a single field, and the data is stored in different servers, which achieves data sub-database processing, but The fact that sub-table operations in data st...

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): G06F16/11G06F16/182G06F16/21G06F16/22
CPCG06F16/182G06F16/22G06F16/214G06F16/119
Inventor 王昆刘锐锋潘党威
Owner SICHUAN CHANGHONG NETWORK TECH CO LTD