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

Data storage method and device, storage medium and electronic device

A data storage and data technology, applied in the field of communication, can solve problems such as low data storage efficiency and unbalanced data storage, and achieve the effects of optimizing storage efficiency, balancing the amount of stored data, and improving utilization

Pending Publication Date: 2021-03-02
ZHEJIANG DAHUA TECH CO LTD
View PDF4 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] Embodiments of the present invention provide a data storage method, device, storage medium, and electronic device, so as to at least solve the problem of unbalanced data storage in the related art, resulting in low data storage efficiency

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0028] Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings and in conjunction with the embodiments.

[0029] It should be noted that the terms "first", "second" and the like in the description and claims of the present invention and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific sequence or sequence.

[0030] The method embodiments provided in the embodiments of this application may be executed in a mobile terminal, a computer terminal, or a similar computing device. Take running on a mobile terminal as an example, figure 1 It is a hardware structural block diagram of a mobile terminal of a data storage method according to an embodiment of the present invention. like figure 1 As shown, the mobile terminal may include one or more ( figure 1 Only one is shown in the above) a processor 102 (the processor 102 may include, but is not limited to, ...

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 provides a data storage method and device, a storage medium and an electronic device, and the method comprises the steps: receiving to-be-stored first data, analyzing the first data to determine a target business type of the first data, detecting the average storage capacity of a plurality of fragments included in a first index, and storing the average storage capacity of the plurality of fragments in the first index; storing the first data into a first index under the condition that the average storage amount of a plurality of fragments included in the first index for storing the data of the target service type is smaller than a preset threshold value, and under the condition that the average storage amount of a plurality of fragments included in the firstindex is larger than or equal to the preset threshold value, generating the second index used for storing the data of the target service type, the technical problem that the storage efficiency of thedata is low is solved, and the technical effects that the utilization rate of each index is increased, the storage data volume of each fragment is more balanced, and the storage efficiency is optimized are achieved.

Description

technical field [0001] Embodiments of the present invention relate to the field of communications, and in particular, to a data storage method, device, storage medium, and electronic device. Background technique [0002] Elasticsearch is a distributed data storage and full-text search engine. Physically, an Elasticsearch cluster consists of multiple nodes, each of which stores data. Logically, data is stored in an index, and the index consists of multiple shards, which are distributed on each node of the cluster according to certain rules. [0003] The distribution of shards is balanced based on the number of shards on each node, and the number of shards on each node is roughly the same. [0004] Each index is generally configured with a fixed number of primary shards, and is distributed to different shards according to the hash value of the primary key (id) of the data during storage. However, the number of primary shards must be fixed when building an index. Once config...

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/22G06F16/27
CPCG06F16/2272G06F16/2282G06F16/278
Inventor 黄思文江文龙
Owner ZHEJIANG DAHUA TECH CO LTD