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

Data storage and access method and device

A data storage and data access technology, applied in the field of data processing, can solve the problems of low data query efficiency, achieve the effect of improving data access efficiency, strengthening aggregation, and facilitating neighbor query

Pending Publication Date: 2020-07-31
MIGU CO LTD +1
View PDF12 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The inventor found that there are at least the following problems in the prior art: when using the Redis cache database, the spatial data distribution can be cached in the Redis cluster, but when the user needs to query data near a certain spatial location, it is necessary to traverse all the Redis nodes first In the data, data query efficiency is low

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 storage and access method and device
  • Data storage and access method and device
  • Data storage and access method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0027] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention more clear, various implementation modes of the present invention will be described in detail below in conjunction with the accompanying drawings. However, those of ordinary skill in the art can understand that, in each implementation manner of the present invention, many technical details are provided for readers to better understand the present application. However, even without these technical details and various changes and modifications based on the following implementation modes, the technical solution claimed in this application can also be realized.

[0028] The first embodiment of the present invention relates to a kind of data storage method, is applied to Redis cluster, and Redis cluster is divided into a plurality of node families, and each node family comprises a plurality of Redis nodes (ie server nodes), and each Redis node maintains At least one s...

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 the technical field of data processing, and discloses a data storage and access method and device. The data storage method is applied to a Redis cluster, theRedis cluster is divided into a plurality of node families, and the method comprises the following steps: determining the number of a first target node family corresponding to spatial data accordingto the spatial position information of the spatial data to be stored and the number of slots in each node family; determining a slot number of a first target slot in the first target node family according to the number of the first target node family and the spatial position information; and storing the spatial data into a first target slot corresponding to the slot number according to the determined slot number. According to the method and the device, the spatial data with similar spatial positions can be stored into the same slot in the same node family as much as possible, so that the aggregation of the spatial data in the spatial positions is enhanced, a user can conveniently perform neighbor query, and the data access efficiency is improved.

Description

technical field [0001] The embodiments of the present invention relate to the technical field of data processing, and in particular to a data storage and access method and device. Background technique [0002] With the development of the mobile Internet, users will generate a large amount of data with spatial location information when using electronic devices every day. This type of data can be called spatial data. The efficiency of user access to spatial data directly affects the user experience. Data caching is an effective tool to improve data access efficiency. As a mainstream memory database, Redis is widely used as a cache database to improve data access efficiency in Internet scenarios. [0003] The inventor found that there are at least the following problems in the prior art: when using the Redis cache database, the spatial data distribution can be cached in the Redis cluster, but when the user needs to query data near a certain spatial location, it is necessary to ...

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/2455G06F16/27G06F9/50
CPCG06F16/24552G06F16/27G06F9/5083Y02D10/00
Inventor 李宗祥
Owner MIGU CO LTD