CN110309328B - Data storage method and device, electronic equipment and storage medium - Google Patents

Data storage method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN110309328B
CN110309328B CN201810210939.9A CN201810210939A CN110309328B CN 110309328 B CN110309328 B CN 110309328B CN 201810210939 A CN201810210939 A CN 201810210939A CN 110309328 B CN110309328 B CN 110309328B
Authority
CN
China
Prior art keywords
stored
partition
picture
data
pictures
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810210939.9A
Other languages
Chinese (zh)
Other versions
CN110309328A (en
Inventor
魏运运
彭齐荣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Intellifusion Technologies Co Ltd
Original Assignee
Shenzhen Intellifusion Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Intellifusion Technologies Co Ltd filed Critical Shenzhen Intellifusion Technologies Co Ltd
Priority to CN201810210939.9A priority Critical patent/CN110309328B/en
Publication of CN110309328A publication Critical patent/CN110309328A/en
Application granted granted Critical
Publication of CN110309328B publication Critical patent/CN110309328B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/51Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0608Saving storage space on storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/061Improving I/O performance
    • G06F3/0611Improving I/O performance in relation to response time
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • G06F3/0644Management of space entities, e.g. partitions, extents, pools

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a data storage method, which comprises the following steps: acquiring attribute data of a picture to be stored; determining at least one partition type according to the attribute data of the picture to be stored; calculating the number of the pictures to be stored corresponding to each partition type in the at least one partition type according to the attribute data of the pictures to be stored; and generating a storage partition according to the number of the pictures to be stored corresponding to each partition type. The invention also provides a data storage device, electronic equipment and a storage medium. The invention can save storage resources, reduce query time and realize dynamic partition creation.

Description

Data storage method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of data processing, and in particular, to a data storage method and apparatus, an electronic device, and a storage medium.
Background
At present, when picture data is stored, the data is mainly stored in a partition mode. In the prior art, partitioning is mainly performed according to attribute data of picture data, for example, object types, software versions, picture quality, snapshot time and the like of pictures are partitioned, and a lot of created partitions may have no data, but the partitions are queried during query, which wastes time and resources. In addition, when new picture data is received, it is not possible to create a partition dynamically based on the new picture data.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a data storage method, an electronic device and a storage medium, which can save storage resources, reduce query time, and enable dynamic partition creation.
A method of data storage, the method comprising:
acquiring attribute data of a picture to be stored;
determining at least one partition type according to the attribute data of the picture to be stored;
calculating the number of the pictures to be stored corresponding to each partition type in the at least one partition type according to the attribute data of the pictures to be stored;
and generating a storage partition according to the number of the pictures to be stored corresponding to each partition type.
According to a preferred embodiment of the present invention, the determining at least one partition type according to the attribute data of the picture to be stored includes:
acquiring the object type in the picture to be stored;
acquiring a software version corresponding to the picture to be stored;
and combining the object type in the picture to be stored and the software version corresponding to the picture to be stored, and determining the at least one partition type.
According to a preferred embodiment of the present invention, the generating a storage partition according to the number of pictures to be stored corresponding to each partition type includes:
screening the partition types with the number of the pictures to be stored larger than a number threshold value according to the number of the pictures to be stored corresponding to each partition type;
and generating a storage partition corresponding to the screened partition type.
According to a preferred embodiment of the invention, the method further comprises:
when the storage partition is not generated and new picture data are received, storing the new picture data in a cache;
after the storage partition is established, acquiring target attribute data of the new picture data;
and storing the new picture data according to the target attribute data.
According to a preferred embodiment of the present invention, the storing the new picture data according to the target attribute data includes:
determining whether a target partition matching the target attribute data is stored in the storage partition;
when the target partition exists in the storage partition, storing the new picture data in the target partition;
generating the target partition when the target partition does not exist in the storage partition.
A data storage device, the device comprising:
the acquisition module is used for acquiring attribute data of the picture to be stored;
the determining module is used for determining at least one partition type according to the attribute data of the picture to be stored;
the calculation module is used for calculating the number of the pictures to be stored corresponding to each partition type in the at least one partition type according to the attribute data of the pictures to be stored;
and the generating module is used for generating storage partitions according to the number of the pictures to be stored corresponding to each partition type.
According to a preferred embodiment of the present invention, the determining, by the determining module, at least one partition type according to the attribute data of the picture to be stored includes:
acquiring the object type in the picture to be stored;
acquiring a software version corresponding to the picture to be stored;
and combining the object type in the picture to be stored and the software version corresponding to the picture to be stored, and determining the at least one partition type.
According to a preferred embodiment of the present invention, the generating, by the generating module, a storage partition according to the number of pictures to be stored corresponding to each partition type includes:
screening the partition types with the number of the pictures to be stored larger than a number threshold value according to the number of the pictures to be stored corresponding to each partition type;
and generating a storage partition corresponding to the screened partition type.
An electronic device comprising a memory for storing at least one instruction and a processor for executing the at least one instruction to implement the data storage method of any of the embodiments.
A computer readable storage medium having stored thereon at least one instruction which, when executed by a processor, implements the data storage method of any of the embodiments.
According to the technical scheme, the attribute data of the picture to be stored is acquired; determining at least one partition type according to the attribute data of the picture to be stored; calculating the number of the pictures to be stored corresponding to each partition type in the at least one partition type according to the attribute data of the pictures to be stored; and generating a storage partition according to the number of the pictures to be stored corresponding to each partition type. The invention can save storage resources, reduce query time and realize dynamic partition creation.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a flow chart of a preferred embodiment of the data storage method of the present invention.
FIG. 2 is a functional block diagram of a preferred embodiment of a data storage device according to the present invention.
FIG. 3 is a block diagram of an electronic device according to at least one embodiment of the invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
FIG. 1 is a flow chart of a data storage method according to a preferred embodiment of the present invention. The order of the steps in the flow chart may be changed and some steps may be omitted according to different needs.
And S10, the electronic equipment acquires the attribute data of the picture to be stored.
In the present invention, the electronic device communicates with a plurality of terminal devices, including, but not limited to: the terminal equipment stores the captured pictures in the electronic equipment or a database communicated with the electronic equipment.
In a preferred embodiment of the present invention, the attribute data of the picture to be stored includes, but is not limited to: the type of the object, the software version corresponding to the picture to be stored, and the like. The object types include, but are not limited to: residents, police and comprehensive staff and key staff. The software version corresponding to the picture to be stored comprises an algorithm version used for capturing the picture to be stored.
The number of the pictures to be stored may be one or more. Therefore, the types of the objects in the picture to be stored may be various, and the software version corresponding to the picture to be stored may include a plurality of software versions.
S11, the electronic device determines at least one partition type according to the attribute data of the picture to be stored.
In a preferred embodiment of the present invention, one storage partition corresponds to one partition type, and each partition type is obtained by combining according to the attribute data of the picture to be stored. For example, the first storage partition is used for storing the pictures of the ensemble personnel and the software version V1.0, the second storage partition is used for storing the pictures of the ensemble personnel and the software version V2.0, and the like. Wherein the attribute data includes, but is not limited to: object type and software version.
Preferably, the determining at least one partition type according to the attribute data of the picture to be stored includes:
(a1) and acquiring the object type in the picture to be stored.
(a2) And acquiring a software version corresponding to the picture to be stored.
(a3) And combining the object type in the picture to be stored and the software version corresponding to the picture to be stored, and determining the at least one partition type.
The number of the at least one partition type is multiple because there may be multiple types of objects in the picture to be stored, and the software version corresponding to the picture to be stored may include multiple software versions. For example, if there are 6 types of object types in the picture to be stored and there are 2 types of software versions corresponding to the picture to be stored, the number of the at least one partition type is 12.
And S12, the electronic device calculates the number of the pictures to be stored corresponding to each partition type in the at least one partition type according to the attribute data of the pictures to be stored.
In a preferred embodiment of the present invention, since the number of pictures to be stored corresponding to a possible partition type in the at least one partition type is 0, the number of pictures to be stored corresponding to each partition type needs to be counted, so as to exclude the partition type with the number of pictures to be stored being 0.
And S13, the electronic equipment generates a storage partition according to the number of the pictures to be stored corresponding to each partition type.
In a preferred embodiment of the present invention, the generating a storage partition according to the number of pictures to be stored corresponding to each partition type includes:
(b1) and screening the partition types with the number of the pictures to be stored larger than a number threshold value according to the number of the pictures to be stored corresponding to each partition type.
Preferably, the number threshold is 0.
(b2) And generating a storage partition corresponding to the screened partition type.
And each screened partition type corresponds to one storage partition, and the picture to be stored is stored in the corresponding storage partition according to the attribute data of the picture to be stored. For example, if a certain partition type is a combination of the ensemble personnel and the software version V1.0, the certain partition type corresponds to the storage partition for storing the pictures of the ensemble personnel and the software version V1.0. Each storage partition generated in this way stores pictures, and a storage partition with the number of pictures of 0 does not need to be generated, so that storage resources are saved. In addition, in the query process, because the storage partitions with the picture number of 0 are not generated, the storage partitions with the picture number of 0 are not queried, so that the time is saved.
Preferably, when the storage partition is not generated and new picture data is received, the method further includes:
(c1) and storing the new picture data in a cache.
(c2) And acquiring target attribute data of the new picture data after the storage partition is established.
(c3) And storing the new picture data according to the target attribute data.
Preferably, the storing the new picture data according to the target attribute data includes:
(c31) determining whether a target partition matching the target attribute data is stored in the storage partition.
And matching the partition type of the target partition with the partition type of each storage partition in the storage partitions, and determining that the target partition exists in the storage partitions when one partition type in the storage partitions is the same as the partition type of the target partition. Determining that the target partition does not exist in the storage partition when none of the partition types in the storage partition is the same as the partition type of the target partition.
(c32) When the target partition exists in the storage partition, storing the new picture data in the target partition.
(c33) Generating the target partition when the target partition does not exist in the storage partition.
Through the embodiment, the partition can be dynamically established according to the object type of the data and the software version corresponding to the data, so that the partition can be dynamically established.
The method includes the steps that attribute data of a picture to be stored are obtained; determining at least one partition type according to the attribute data of the picture to be stored; calculating the number of the pictures to be stored corresponding to each partition type in the at least one partition type according to the attribute data of the pictures to be stored; and generating a storage partition according to the number of the pictures to be stored corresponding to each partition type. The invention can save storage resources, reduce query time and realize dynamic partition creation.
Referring to FIG. 3, a functional block diagram of a preferred embodiment of the data storage device of the present invention is shown. The data storage device 11 includes an obtaining module 100, a determining module 101, a calculating module 102, a generating module 103, and a storing module 104. The unit referred to in the present invention refers to a series of computer program segments, stored in a memory, that can be executed by a processor of the data storage device 11 and that can perform a fixed function. In the present embodiment, the functions of the units will be described in detail in the following embodiments.
The obtaining module 100 obtains attribute data of a picture to be stored.
In the present invention, the electronic device communicates with a plurality of terminal devices, including, but not limited to: the terminal equipment stores the captured pictures in the electronic equipment or a database communicated with the electronic equipment.
In a preferred embodiment of the present invention, the attribute data of the picture to be stored includes, but is not limited to: the type of the object, the software version corresponding to the picture to be stored, and the like. The object types include, but are not limited to: residents, police and comprehensive staff and key staff. The software version corresponding to the picture to be stored comprises an algorithm version used for capturing the picture to be stored.
The number of the pictures to be stored may be one or more. Therefore, the types of the objects in the picture to be stored may be various, and the software version corresponding to the picture to be stored may include a plurality of software versions.
And the electronic equipment determines at least one partition type according to the attribute data of the picture to be stored.
In a preferred embodiment of the present invention, one storage partition corresponds to one partition type, and each partition type is obtained by combining according to the attribute data of the picture to be stored. For example, the first storage partition is used for storing the pictures of the ensemble personnel and the software version V1.0, the second storage partition is used for storing the pictures of the ensemble personnel and the software version V2.0, and the like. Wherein the attribute data includes, but is not limited to: object type and software version.
Preferably, the determining module 101 determines at least one partition type according to the attribute data of the picture to be stored, including:
(a1) and acquiring the object type in the picture to be stored.
(a2) And acquiring a software version corresponding to the picture to be stored.
(a3) And combining the object type in the picture to be stored and the software version corresponding to the picture to be stored, and determining the at least one partition type.
The number of the at least one partition type is multiple because there may be multiple types of objects in the picture to be stored, and the software version corresponding to the picture to be stored may include multiple software versions. For example, if there are 6 types of object types in the picture to be stored and there are 2 types of software versions corresponding to the picture to be stored, the number of the at least one partition type is 12.
The calculating module 102 calculates the number of the pictures to be stored corresponding to each partition type in the at least one partition type according to the attribute data of the pictures to be stored.
In a preferred embodiment of the present invention, since the number of pictures to be stored corresponding to a possible partition type in the at least one partition type is 0, the number of pictures to be stored corresponding to each partition type needs to be counted, so as to exclude the partition type with the number of pictures to be stored being 0.
The generating module 103 generates storage partitions according to the number of pictures to be stored corresponding to each partition type.
In a preferred embodiment of the present invention, the generating module 103 generates the storage partition according to the number of the pictures to be stored corresponding to each partition type, including:
(b1) and screening the partition types with the number of the pictures to be stored larger than a number threshold value according to the number of the pictures to be stored corresponding to each partition type.
Preferably, the number threshold is 0.
(b2) And generating a storage partition corresponding to the screened partition type.
And each screened partition type corresponds to one storage partition, and the picture to be stored is stored in the corresponding storage partition according to the attribute data of the picture to be stored. For example, if a certain partition type is a combination of the ensemble personnel and the software version V1.0, the certain partition type corresponds to the storage partition for storing the pictures of the ensemble personnel and the software version V1.0. Each storage partition generated in this way stores pictures, and a storage partition with the number of pictures of 0 does not need to be generated, so that storage resources are saved. In addition, in the query process, because the storage partitions with the picture number of 0 are not generated, the storage partitions with the picture number of 0 are not queried, so that the time is saved.
Preferably, when the storage partition is not generated and new picture data is received, the apparatus further includes:
the storage module 104 stores the new picture data in a cache.
The obtaining module 100 obtains the target attribute data of the new picture data after the storage partition is established.
The storage module 104 stores the new picture data according to the target attribute data.
Preferably, the storing module 104 stores the new picture data according to the target attribute data, including:
(c31) determining whether a target partition matching the target attribute data is stored in the storage partition.
And matching the partition type of the target partition with the partition type of each storage partition in the storage partitions, and determining that the target partition exists in the storage partitions when one partition type in the storage partitions is the same as the partition type of the target partition. Determining that the target partition does not exist in the storage partition when none of the partition types in the storage partition is the same as the partition type of the target partition.
(c32) When the target partition exists in the storage partition, storing the new picture data in the target partition.
(c33) Generating the target partition when the target partition does not exist in the storage partition.
Through the embodiment, the partition can be dynamically established according to the object type of the data and the software version corresponding to the data, so that the partition can be dynamically established.
The method includes the steps that attribute data of a picture to be stored are obtained; determining at least one partition type according to the attribute data of the picture to be stored; calculating the number of the pictures to be stored corresponding to each partition type in the at least one partition type according to the attribute data of the pictures to be stored; and generating a storage partition according to the number of the pictures to be stored corresponding to each partition type. The invention can save storage resources, reduce query time and realize dynamic partition creation.
The integrated unit implemented in the form of a software functional module may be stored in a computer-readable storage medium. The software functional module is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute some steps of the method according to each embodiment of the present invention.
As shown in fig. 3, the electronic device 3 comprises at least one transmitting means 31, at least one memory 32, at least one processor 33, at least one receiving means 34 and at least one communication bus. Wherein the communication bus is used for realizing connection communication among the components.
The electronic device 3 is a device capable of automatically performing numerical calculation and/or information processing according to a preset or stored instruction, and its hardware includes, but is not limited to, a microprocessor, an Application Specific Integrated Circuit (ASIC), a Programmable Gate Array (FPGA), a Digital Signal Processor (DSP), an embedded device, and the like. The electronic device 3 may also comprise a network device and/or a user device. Wherein the network device includes, but is not limited to, a single network server, a server group consisting of a plurality of network servers, or a Cloud Computing (Cloud Computing) based Cloud consisting of a large number of hosts or network servers, wherein Cloud Computing is one of distributed Computing, a super virtual computer consisting of a collection of loosely coupled computers.
The electronic device 3 may be, but is not limited to, any electronic product that can perform human-computer interaction with a user through a keyboard, a touch pad, a voice control device, or the like, for example, a tablet computer, a smart phone, a Personal Digital Assistant (PDA), an intelligent wearable device, an image pickup device, a monitoring device, or other terminals.
The Network where the electronic device 3 is located includes, but is not limited to, the internet, a wide area Network, a metropolitan area Network, a local area Network, a Virtual Private Network (VPN), and the like.
The receiving device 34 and the transmitting device 31 may be wired transmitting ports, or may be wireless devices, for example, including antenna devices, for performing data communication with other devices.
The memory 32 is used to store program code. The Memory 32 may be a circuit having a storage function, such as a RAM (Random-Access Memory), a FIFO (First In First Out), or the like, which is not In a physical form In the integrated circuit. Alternatively, the memory 32 may be a memory in a physical form, such as a memory bank, a TF Card (Trans-flash Card), a smart media Card (smart media Card), a secure digital Card (secure digital Card), a flash memory Card (flash Card), and so on.
The processor 33 may comprise one or more microprocessors, digital processors. The processor 33 may call program code stored in the memory 32 to perform the associated functions. For example, the units illustrated in fig. 2 are program codes stored in the memory 32 and executed by the processor 33 to implement a data storage method. The processor 33 is also called a Central Processing Unit (CPU), and is an ultra-large scale integrated circuit, which is an operation Core (Core) and a Control Core (Control Unit).
Embodiments of the present invention also provide a computer-readable storage medium having stored thereon computer instructions, which, when executed by an electronic device comprising one or more processors, cause the electronic device to perform a data storage method as described above for the method embodiments.
As described in connection with fig. 1, the memory 32 in the electronic device 1 stores a plurality of instructions to implement a data storage method, and the processor 33 can execute the plurality of instructions to implement:
acquiring attribute data of a picture to be stored; determining at least one partition type according to the attribute data of the picture to be stored; calculating the number of the pictures to be stored corresponding to each partition type in the at least one partition type according to the attribute data of the pictures to be stored; and generating a storage partition according to the number of the pictures to be stored corresponding to each partition type.
In any embodiment, a plurality of instructions corresponding to the data storage method are stored in the memory 32 and executed by the processor 33, which will not be described in detail herein.
The above-described characteristic means of the present invention may be realized by an integrated circuit and control functions of realizing the data storage method described in any of the above-described embodiments. That is, the integrated circuit according to the present invention is mounted on the electronic device, and causes the electronic device to function as:
acquiring attribute data of a picture to be stored; determining at least one partition type according to the attribute data of the picture to be stored; calculating the number of the pictures to be stored corresponding to each partition type in the at least one partition type according to the attribute data of the pictures to be stored; and generating a storage partition according to the number of the pictures to be stored corresponding to each partition type.
The functions that can be realized by the data storage method in any embodiment can be installed in the electronic device through the integrated circuit of the present invention, so that the electronic device can perform the functions that can be realized by the data storage method in any embodiment, and therefore, the detailed description is omitted here.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (8)

1. A method of data storage, the method comprising:
acquiring attribute data of a picture to be stored;
determining at least one partition type according to the attribute data of the picture to be stored; the attribute data comprise an object type and a software version, and the partition type is obtained by combining the object type and the software version of the picture to be stored;
calculating the number of the pictures to be stored corresponding to each partition type in the at least one partition type according to the attribute data of the pictures to be stored;
screening out the partition types with the number of pictures to be stored larger than 0 according to the number of the pictures to be stored corresponding to each partition type, and excluding the partition types with the number of the pictures to be stored being 0;
and generating a storage partition corresponding to the screened partition type.
2. The data storage method of claim 1, wherein the determining at least one partition type according to the attribute data of the picture to be stored comprises:
acquiring the object type in the picture to be stored;
acquiring a software version corresponding to the picture to be stored;
and combining the object type in the picture to be stored and the software version corresponding to the picture to be stored, and determining the at least one partition type.
3. The data storage method of claim 1, wherein the method further comprises:
when the storage partition is not generated and new picture data are received, storing the new picture data in a cache;
after the storage partition is established, acquiring target attribute data of the new picture data;
and storing the new picture data according to the target attribute data.
4. The data storage method of claim 3, wherein said storing the new picture data according to the target attribute data comprises:
determining whether a target partition matching the target attribute data is stored in the storage partition;
when the target partition exists in the storage partition, storing the new picture data in the target partition;
generating the target partition when the target partition does not exist in the storage partition.
5. A data storage device, characterized in that the device comprises:
the acquisition module is used for acquiring attribute data of the picture to be stored;
the determining module is used for determining at least one partition type according to the attribute data of the picture to be stored; the attribute data comprise an object type and a software version, and the partition type is obtained by combining the object type and the software version of the picture to be stored;
the calculation module is used for calculating the number of the pictures to be stored corresponding to each partition type in the at least one partition type according to the attribute data of the pictures to be stored;
the generating module is used for screening the partition types with the number of the pictures to be stored larger than 0 according to the number of the pictures to be stored corresponding to each partition type, and excluding the partition types with the number of the pictures to be stored being 0; and generating a storage partition corresponding to the screened partition type.
6. The data storage device of claim 5, wherein the determining module determines at least one partition type according to the attribute data of the picture to be stored comprises:
acquiring the object type in the picture to be stored;
acquiring a software version corresponding to the picture to be stored;
and combining the object type in the picture to be stored and the software version corresponding to the picture to be stored, and determining the at least one partition type.
7. An electronic device, comprising a memory for storing at least one instruction and a processor for executing the at least one instruction to implement the data storage method of any one of claims 1-4.
8. A computer-readable storage medium storing at least one instruction which, when executed by a processor, implements a data storage method as claimed in any one of claims 1 to 4.
CN201810210939.9A 2018-03-14 2018-03-14 Data storage method and device, electronic equipment and storage medium Active CN110309328B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810210939.9A CN110309328B (en) 2018-03-14 2018-03-14 Data storage method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810210939.9A CN110309328B (en) 2018-03-14 2018-03-14 Data storage method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110309328A CN110309328A (en) 2019-10-08
CN110309328B true CN110309328B (en) 2022-03-25

Family

ID=68073621

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810210939.9A Active CN110309328B (en) 2018-03-14 2018-03-14 Data storage method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110309328B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114168081A (en) * 2021-12-09 2022-03-11 中国电信股份有限公司 High-dimensional feature storage method and device, storage medium and electronic equipment
CN114661249B (en) * 2022-05-26 2022-09-27 深圳高灯计算机科技有限公司 Data storage method and device, computer equipment and storage medium

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100591754B1 (en) * 2003-06-11 2006-06-22 삼성전자주식회사 Image processing device and method for reverse playback of digital video stream
CN101556584A (en) * 2008-04-10 2009-10-14 深圳市万水千山网络发展有限公司 Computer system and method for achieving picture transaction
CN103049460A (en) * 2011-10-17 2013-04-17 天津市亚安科技股份有限公司 Video surveillance scene information classifying and storing method and search method
CN103312730A (en) * 2012-03-07 2013-09-18 腾讯科技(深圳)有限公司 Picture storage method, server, terminal and picture storage system
CN102902784B (en) * 2012-09-29 2016-03-02 北京奇虎科技有限公司 Web page classification storage system and method
KR20140048604A (en) * 2012-10-16 2014-04-24 최용재 System and method for charging customized moving picture lecture
EP2952003B1 (en) * 2013-01-30 2019-07-17 Intel Corporation Content adaptive partitioning for prediction and coding for next generation video
CN105095483A (en) * 2015-08-14 2015-11-25 北京铭嘉实咨询有限公司 Image code recognition method and system

Also Published As

Publication number Publication date
CN110309328A (en) 2019-10-08

Similar Documents

Publication Publication Date Title
US11122128B2 (en) Method and device for customer resource acquisition, terminal device and storage medium
CN110019876B (en) Data query method, electronic device and storage medium
AU2014235300B2 (en) Multi-layered storage administration for flexible placement of data
WO2021217863A1 (en) Order identifier generation method and apparatus, server, and storage medium
CN108985954B (en) Method for establishing association relation of each identifier and related equipment
JP2021500649A (en) Computer implementation methods, computer program products, and systems for storing records in shard database shard tables, computer implementation methods, computer program products, and systems for retrieving records from shard database shard tables. System, as well as a system for storing shard databases
CN109948734B (en) Image clustering method and device and electronic equipment
CN108804242B (en) Data counting and duplicate removal method, system, server and storage medium
CN111740868B (en) Alarm data processing method and device and storage medium
CN110708369B (en) File deployment method and device for equipment nodes, scheduling server and storage medium
CN112163412B (en) Data verification method and device, electronic equipment and storage medium
CN110309328B (en) Data storage method and device, electronic equipment and storage medium
CN109522282B (en) Picture management method, device, computer device and storage medium
CN114091704B (en) Alarm suppression method and device
CN109710502B (en) Log transmission method, device and storage medium
CN108363727B (en) Data storage method and device based on ZFS file system
JP6501924B2 (en) Method and server for canceling alert
CN110119429B (en) Data processing method, data processing device, computer equipment and storage medium
CN111767481B (en) Access processing method, device, equipment and storage medium
CN113760982A (en) Data processing method and device
CN111897819A (en) Data storage method and device, electronic equipment and storage medium
CN116089658A (en) Object commonality extraction method and device, storage medium and electronic equipment
CN111431764B (en) Node determining method, device, system and medium
US20190251285A1 (en) Method and electronic device for identifying a pseudo wireless access point
CN108573042B (en) Report synchronization method, electronic equipment and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant