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

Data management method and device, server and storage medium

A data management and server technology, applied in the field of data processing, to achieve the effect of improving the utilization rate of shards

Active Publication Date: 2020-09-15
NANJING LINGXING TECH CO LTD
View PDF3 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] At present, data is stored in the cache of the Redis server, and with the increase in the frequency of use and dependence on the Redis server, the data in the cache increases exponentially, which is extremely important for managing the massive data stored in the cache of the Redis server big challenge

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
  • Data management method and device, server and storage medium
  • Data management method and device, server and storage medium
  • Data management method and device, server and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0027] figure 1 It is a flow chart of a data management method provided by Embodiment 1 of the present invention. This embodiment is applicable to the data management of a distributed system. The method can be executed by a data management device, which can use software / hardware way to achieve. The device may be configured in an application server performing data management. Such as figure 1 As shown, the method specifically includes:

[0028] Step S110, acquiring routing rule data.

[0029] Wherein, the routing rule data is used to indicate the mapping relationship between the key of the business data and the database number, and the key of the business data may be a route named according to the business data.

[0030] The database number is the number of the database shard. For example, the database is fragmented to obtain a set number of database fragments. Wherein, the set number is an empirical value, and the number of slices to divide the database can be determined...

Embodiment 2

[0048] figure 2 It is a flowchart of another data management method in Embodiment 2 of the present invention. This embodiment is optimized on the basis of the above-mentioned embodiments, such as figure 2 As shown, the method includes:

[0049] Step S210, creating a Redis connection pool.

[0050] The Redis connection pool is connected between the application server and the Redis server, and is used to store the connection relationship between the application server and the Redis server. The application server pre-establishes the Redis connection pool. When the connection needs to be used, the application server obtains the established connection from the Redis connection pool through a certain algorithm, and returns it to the connection pool after use, which eliminates the need for database connections. time.

[0051] Step S220, judging whether the Redis connection pool has been created, if yes, execute step S230, otherwise return to execute step S210.

[0052] Exemplar...

Embodiment 3

[0064] image 3 It is a flow chart of another data management method in Embodiment 3 of the present invention. This embodiment is optimized on the basis of the above embodiments, such as image 3 As shown, the method includes:

[0065] Step S310, querying the setting database according to a preset frequency to obtain routing rule data.

[0066] The setting database is a common database pre-connected with the application server for storing routing rule data, and the setting database may be a relational database management system, such as MySQL.

[0067] Exemplarily, the routing rule data is stored in MySQL in advance, and when the application in the business center is started, the application server queries MySQL, and loads the routing rule data in MySQL into the memory of the application server.

[0068] Optionally, the application server may regularly read the routing rule data in the setting database. For example, the application server cooperates with the scheduled tasks...

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 discloses a data management method and device, a server and a storage medium. The data management method comprises the steps: acquiring routing rule data are acquired,wherein the routing rule data are used for indicating the mapping relation between keys of service data and database numbers, and the database codes are the numbers of database fragments; obtaining adata management request, and determining a key of to-be-managed data according to the data management request; and judging whether to send a data management request to the Redis server or not according to the key of the to-be-managed data and the key of the service data. The data management method determines a key of to-be-managed data according to a data management request, routs the data management request to a corresponding database fragment in the Redis server according to the key of the to-be-managed data and the key of the service data, and achieves that the service data is stored into the pre-specified database fragments, and the service data in each database fragment is independently managed, so that the fragment utilization rate of data caching and the balanced utilization rate ofthe database are improved.

Description

technical field [0001] Embodiments of the present invention relate to data processing technologies, and in particular, to a data management method, device, server, and storage medium. Background technique [0002] As the data synchronization of Internet distributed systems is increasingly used and dependent on Redis servers, many applications need to be implemented with the help of Redis servers. [0003] At present, data is stored in the cache of the Redis server, and with the increase in the frequency of use and dependence on the Redis server, the data in the cache increases exponentially, which is extremely important for managing the massive data stored in the cache of the Redis server big challenge. Therefore, how to effectively manage the cached data of the Redis server has become an urgent problem to be solved. Contents of the invention [0004] Embodiments of the present invention provide a data management method, device, server, and storage medium, which can impr...

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/21G06F16/22
CPCG06F16/21G06F16/22
Inventor 王子榕董见雷
Owner NANJING LINGXING TECH CO LTD