CN112256671B - Data storage method and related equipment - Google Patents

Data storage method and related equipment Download PDF

Info

Publication number
CN112256671B
CN112256671B CN202011134842.8A CN202011134842A CN112256671B CN 112256671 B CN112256671 B CN 112256671B CN 202011134842 A CN202011134842 A CN 202011134842A CN 112256671 B CN112256671 B CN 112256671B
Authority
CN
China
Prior art keywords
data
memory
target
identifier
data channel
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
CN202011134842.8A
Other languages
Chinese (zh)
Other versions
CN112256671A (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.)
Pateo Connect and Technology Shanghai Corp
Original Assignee
Pateo Connect and Technology Shanghai Corp
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 Pateo Connect and Technology Shanghai Corp filed Critical Pateo Connect and Technology Shanghai Corp
Priority to CN202011134842.8A priority Critical patent/CN112256671B/en
Publication of CN112256671A publication Critical patent/CN112256671A/en
Application granted granted Critical
Publication of CN112256671B publication Critical patent/CN112256671B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/21Design, administration or maintenance of databases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/284Relational databases
    • 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/0604Improving or facilitating administration, e.g. storage management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Human Computer Interaction (AREA)
  • Computing Systems (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application discloses a data storage method and related equipment, which are applied to electronic equipment, wherein the method comprises the following steps: receiving first data through a target data channel, wherein the first data carries a data identifier; determining a target memory for storing the first data based on the target data channel and/or the data identification; the first data is stored in the target memory based on the data identification. By adopting the embodiment of the application, the data storage efficiency can be improved.

Description

Data storage method and related equipment
Technical Field
The present application relates to the field of electronic technologies, and in particular, to a data storage method and related devices.
Background
The internet of vehicles can help vehicles to plan a driving route so as to avoid traffic congestion, and the sensor senses the surrounding environment so as to reduce the probability of traffic accident, so that the internet of vehicles becomes an important link for solving the modern traffic problem and realizing intelligent traffic. At present, data acquired by vehicles in the internet of vehicles are often stored in a cloud platform, however, after the cloud platform receives the data acquired by the vehicles, the data are firstly required to be divided according to the types of the data, and then the data are stored according to the types of the data, so that the efficiency of data storage is reduced.
Disclosure of Invention
The embodiment of the application provides a data storage method and related equipment, which are beneficial to improving the efficiency of data storage.
In a first aspect, an embodiment of the present application provides a data storage method, applied to an electronic device, where the method includes:
receiving first data through a target data channel, wherein the first data carries a data identifier;
determining a target memory for storing the first data based on the target data channel and/or the data identification;
the first data is stored in the target memory based on the data identification.
In a second aspect, an embodiment of the present application provides a data storage device, including:
the receiving unit is used for receiving first data through a target data channel, wherein the first data carries a data identifier;
a determining unit, configured to determine a target memory storing the first data based on the target data channel and/or the data identifier;
and a storage unit for storing the first data in the target memory based on the data identification.
In a third aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor, and the programs include instructions for performing steps in the method according to the first aspect of the embodiment of the present application.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, where the computer program causes a computer to perform some or all of the steps described in the method according to the first aspect of the embodiment of the present application.
In a fifth aspect, embodiments of the present application provide a computer program product, wherein the computer program product comprises a non-transitory computer readable storage medium storing a computer program, the computer program being operable to cause a computer to perform some or all of the steps described in the method according to the first aspect of the embodiments of the present application. The computer program product may be a software installation package.
It can be seen that, in the embodiment of the present application, the electronic device first receives first data through the target data channel, where the first data carries a data identifier; then determining a target memory for storing the first data based on the target data channel and/or the data identifier; and finally, storing the first data in the target memory based on the data identifier, wherein the target memory is determined based on the target data channel and/or the data identifier, and the target data is not required to be divided according to the category, so that the efficiency of data storage is improved.
Drawings
In order to more clearly illustrate the embodiments of the application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
FIG. 2 is a schematic flow chart of a data storage method according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of another electronic device according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a data storage device according to an embodiment of the present application.
Detailed Description
In order that those skilled in the art will better understand the present application, a technical solution in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present application without making any inventive effort, shall fall within the scope of the present application.
The following will describe in detail.
The terms "first," "second," "third," and "fourth" and the like in the description and in the claims and drawings are used for distinguishing between different objects and not necessarily for describing a particular sequential or chronological order. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those listed steps or elements but may include other steps or elements not listed or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the application. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments.
In the following, some terms used in the present application are explained for easy understanding by those skilled in the art.
The electronic devices may include various handheld devices, vehicle mounted devices, wearable devices, cloud servers, computing devices, or other processing devices connected to wireless modems, as well as various forms of User Equipment (UE), mobile Stations (MS), terminal devices (terminal devices), etc.
As shown in fig. 1, fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present application. The electronic device includes a processor, memory, signal processor, transceiver, random access memory (Random Access Memory, RAM), communication interface, sensor, and the like. The device comprises a memory, a signal processor, a RAM, a sensor and a communication interface, wherein the memory, the signal processor, the RAM, the sensor and the communication interface are connected with the processor, and the transceiver is connected with the signal processor.
Wherein the sensor comprises at least one of: light sensing sensors, gyroscopes, infrared proximity sensors, fingerprint sensors, pressure sensors, etc. Wherein a light sensor, also called ambient light sensor, is used to detect the ambient light level. The light sensor may comprise a photosensitive element and an analog-to-digital converter. The photosensitive element is used for converting the collected optical signals into electric signals, and the analog-to-digital converter is used for converting the electric signals into digital signals. Optionally, the optical sensor may further include a signal amplifier, where the signal amplifier may amplify the electrical signal converted by the photosensitive element and output the amplified electrical signal to the analog-to-digital converter. The photosensitive element may include at least one of a photodiode, a phototransistor, a photoresistor, and a silicon photocell.
The processor is a control center of the electronic device, and is connected with various parts of the whole electronic device by various interfaces and lines, and executes various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory and calling data stored in the memory, so that the electronic device is monitored as a whole.
The processor may integrate an application processor and a modem processor, wherein the application processor primarily handles operating systems, user interfaces, applications, etc., and the modem processor primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor.
The memory is used for storing software programs and/or modules, and the processor executes the software programs and/or modules stored in the memory so as to execute various functional applications of the electronic device and data processing. The memory may mainly include a memory program area and a memory data area, wherein the memory program area may store an operating system, a software program required for at least one function, and the like; the storage data area may store data created according to the use of the electronic device, etc. In addition, the memory may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
Embodiments of the present application are described in detail below.
As shown in fig. 2, the data storage method provided by the embodiment of the application is applied to the electronic device, and specifically includes the following steps:
step 201: and receiving first data through a target data channel, wherein the first data carries a data identifier.
Wherein, the data identification may be preset.
The data identifier may be used to indicate the type of the terminal device that generated the first data, may be used to indicate the type of the user of the terminal device that generated the first data, etc.
The data identifier may be one or a plurality of data identifiers.
If there are multiple data identifiers, there may or may not be a hierarchical relationship among the multiple data identifiers.
The data identifier may be a letter or a number.
For example, there are 3 data identifiers (data identifier a, data identifier B and data identifier C), where data identifier a is an upper layer of data identifier B and data identifier C, data identifier B and data identifier C are the same layer, data identifier a represents that the terminal device generating the first data is a mobile phone, data identifier B represents that the first data generated by the mobile phone is music data, and data identifier C represents that the first data generated by the mobile phone is radio station data.
For example, there are 2 data identifications (data identification 1 and data identification 2), wherein the data identification 1 and the data identification 2 are the same-level identifications, the data identification 1 represents that the terminal device generating the first data is a mobile phone, and the data identification 2 represents that the terminal device generating the first data is a vehicle-mounted device.
The number of data identifiers corresponding to the different types of first data may be the same or different.
The electronic equipment comprises at least one data channel, and the data types transmitted by different data channels are different.
Step 202: a target memory storing the first data is determined based on the target data channel and/or the data identification.
Wherein different target memories store different types of first data.
Wherein one target data channel corresponds to at least one target memory.
Step 203: the first data is stored in the target memory based on the data identification.
It can be seen that, in the embodiment of the present application, the electronic device first receives first data through the target data channel, where the first data carries a data identifier; then determining a target memory for storing the first data based on the target data channel and/or the data identifier; and finally, storing the first data in the target memory based on the data identifier, wherein the target memory is determined based on the target data channel and/or the data identifier, and the target data is not required to be divided according to the category, so that the efficiency of data storage is improved.
In an implementation manner of the present application, the determining, based on the target data channel and/or the data identifier, a target memory storing the first data includes:
if the target data channel is a first data channel, determining that the target memory is a first memory, wherein the first memory is a first relational memory, and the first data channel is used for transmitting service data;
if the target data channel is a second data channel, determining the target memory based on the data identifier, wherein the second data channel is used for transmitting buried point data;
if the target data channel is a third data channel, determining that the target memory is a second memory, wherein the second memory is a cache memory, and the third data channel is used for transmitting third party callback data;
and if the target data channel is a fourth data channel, determining that the target memory is a third memory, wherein the third memory is a distributed object memory, and the fourth data channel is used for transmitting data in a file form.
The service data may be a maintenance condition, a maintenance person, a maintenance location, or the like.
The embedded point data may be data of a user listening to songs on a vehicle, data of a vehicle function used by the user, behavior data of the user in the vehicle, and the like.
Among them, file forms include TXT files, compression packs, json files, and the like.
The data in the form of a file can be pictures, text, audio and the like.
It can be seen that in the embodiment of the present application, different target data channels transmit different types of data, and the different types of data are stored in different memories, which is beneficial to avoiding the problem of insufficient memory of the memories.
In an implementation of the present application, the data identifier includes a first identifier and a second identifier, where the first identifier is used to represent a type of a terminal device that generates the first data, and the second identifier is used to represent a user of the terminal device;
the determining the target memory based on the data identification includes:
if the first identifier is a first set identifier and the second identifier is a second set identifier, determining that the target memory is a fourth memory, wherein the first set identifier is used for indicating that the terminal equipment is vehicle-mounted terminal equipment, the second set identifier is used for indicating that a user of the terminal equipment is a vehicle owner, and the fourth memory is a column-oriented distributed memory;
and if the first identifier is not the first value and the second identifier is not the second value, determining that the target memory is a fifth memory, wherein the fifth memory is a second relational memory.
The first setting identifier may be represented by a first value, and the second setting identifier may be represented by a second value.
Wherein the first value and the second value may be preset.
The first relational memory may be the same memory as the second relational information device, or may not be the same memory.
It can be seen that in the embodiment of the application, the target memory is a column-oriented distributed memory under the condition that the terminal equipment is a vehicle owner, so that the memory required by the vehicle owner data is ensured, and the vehicle owner data can be accessed at any time.
In an implementation of the present application, the data identifier includes a third identifier;
if the target memory is the first memory, the third identifier is used for representing the type of the first data;
if the target memory is the second memory or the third memory, the third identifier is used for indicating the importance degree of the first data;
if the target memory is the second memory or the third memory, the third identifier is used for representing a scene for generating the first data;
the storing the first data in the target memory based on the data identification includes:
the first data is stored in the target memory based on the third identification.
The device for transmitting the first data determines the type or importance degree of the first data through content analysis of the first data.
The device for transmitting the first data firstly acquires the surrounding environment through the image acquisition device to obtain an environment image, and then carries out image recognition on the environment image to determine the environment for generating the first data.
It can be seen that, in the embodiment of the present application, the third identifier stores the first data, which is favorable for subsequent acquisition of the first data.
In an implementation manner of the present application, before the receiving the first data through the target data channel, the method further includes:
determining a first data amount of the first data;
and if the first data volume is larger than the preset data volume allowed to be transmitted by the target data channel, sending first indication information, wherein the first indication information is used for indicating that the first data volume is larger than the preset data volume.
It can be seen that, in the embodiment of the present application, the first indication information is sent when the first data size is greater than the preset data size, which is favorable for avoiding congestion caused by excessive data size.
Referring to fig. 3, in accordance with the embodiment shown in fig. 2, fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application, as shown in the fig. 3, the electronic device includes a processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor, and the programs include instructions for executing the following steps:
receiving first data through a target data channel, wherein the first data carries a data identifier;
determining a target memory for storing the first data based on the target data channel and/or the data identification;
the first data is stored in the target memory based on the data identification.
In an implementation manner of the present application, in determining a target memory for storing the first data based on the target data channel and/or the data identifier, the program is specifically configured to execute instructions for:
if the target data channel is a first data channel, determining that the target memory is a first memory, wherein the first memory is a first relational memory, and the first data channel is used for transmitting service data;
if the target data channel is a second data channel, determining the target memory based on the data identifier, wherein the second data channel is used for transmitting buried point data;
if the target data channel is a third data channel, determining that the target memory is a second memory, wherein the second memory is a cache memory, and the third data channel is used for transmitting third party callback data;
and if the target data channel is a fourth data channel, determining that the target memory is a third memory, wherein the third memory is a distributed object memory, and the fourth data channel is used for transmitting data in a file form.
In an implementation of the present application, the data identifier includes a first identifier and a second identifier, where the first identifier is used to represent a type of a terminal device that generates the first data, and the second identifier is used to represent a user of the terminal device;
in determining the target memory based on the data identification, the above program is specifically configured to execute instructions for:
if the first identifier is a first set identifier and the second identifier is a second set identifier, determining that the target memory is a fourth memory, wherein the first set identifier is used for indicating that the terminal equipment is vehicle-mounted terminal equipment, the second set identifier is used for indicating that a user of the terminal equipment is a vehicle owner, and the fourth memory is a column-oriented distributed memory;
and if the first identifier is not the first value and the second identifier is not the second value, determining that the target memory is a fifth memory, wherein the fifth memory is a second relational memory.
In an implementation of the present application, the data identifier includes a third identifier;
if the target memory is the first memory, the third identifier is used for representing the type of the first data;
if the target memory is the second memory or the third memory, the third identifier is used for indicating the importance degree of the first data;
if the target memory is the second memory or the third memory, the third identifier is used for representing a scene for generating the first data;
the program is specifically configured to, when the first data is stored in the target memory based on the data identifier, execute instructions for:
the first data is stored in the target memory based on the third identification.
In an implementation manner of the present application, before the first data is received through the target data channel, the program is specifically further configured to execute the following instructions:
determining a first data amount of the first data;
and if the first data volume is larger than the preset data volume allowed to be transmitted by the target data channel, sending first indication information, wherein the first indication information is used for indicating that the first data volume is larger than the preset data volume.
It should be noted that, the specific implementation process of this embodiment may refer to the specific implementation process described in the foregoing method embodiment, which is not described herein.
Referring to fig. 4, fig. 4 is a data transmission device provided in an embodiment of the present application, applied to an electronic apparatus, where the device includes:
a receiving unit 401, configured to receive first data through a target data channel, where the first data carries a data identifier;
a determining unit 402, configured to determine a target memory storing the first data based on the target data channel and/or the data identifier;
a storage unit 403, configured to store the first data in the target memory based on the data identifier.
In an implementation manner of the present application, in determining, based on the target data channel and/or the data identifier, a target memory for storing the first data, the determining unit 402 is specifically configured to execute instructions for:
if the target data channel is a first data channel, determining that the target memory is a first memory, wherein the first memory is a first relational memory, and the first data channel is used for transmitting service data;
if the target data channel is a second data channel, determining the target memory based on the data identifier, wherein the second data channel is used for transmitting buried point data;
if the target data channel is a third data channel, determining that the target memory is a second memory, wherein the second memory is a cache memory, and the third data channel is used for transmitting third party callback data;
and if the target data channel is a fourth data channel, determining that the target memory is a third memory, wherein the third memory is a distributed object memory, and the fourth data channel is used for transmitting data in a file form.
In an implementation of the present application, the data identifier includes a first identifier and a second identifier, where the first identifier is used to represent a type of a terminal device that generates the first data, and the second identifier is used to represent a user of the terminal device;
in determining the target memory based on the data identifier, the determining unit 402 is specifically configured to execute instructions for:
if the first identifier is a first set identifier and the second identifier is a second set identifier, determining that the target memory is a fourth memory, wherein the first set identifier is used for indicating that the terminal equipment is vehicle-mounted terminal equipment, the second set identifier is used for indicating that a user of the terminal equipment is a vehicle owner, and the fourth memory is a column-oriented distributed memory;
and if the first identifier is not the first value and the second identifier is not the second value, determining that the target memory is a fifth memory, wherein the fifth memory is a second relational memory.
In an implementation of the present application, the data identifier includes a third identifier;
if the target memory is the first memory, the third identifier is used for representing the type of the first data;
if the target memory is the second memory or the third memory, the third identifier is used for indicating the importance degree of the first data;
if the target memory is the second memory or the third memory, the third identifier is used for representing a scene for generating the first data;
the storage unit 403 is specifically configured to, when storing the first data in the target memory based on the data identifier, execute instructions for:
the first data is stored in the target memory based on the third identification.
In an implementation of the present application, the data storage device further includes a transmitting unit 404.
In an implementation of the present application, before the first data is received through the target data channel, the determining unit 402 is further configured to execute instructions for:
determining a first data amount of the first data;
the sending unit 404 is configured to execute instructions of:
and if the first data volume is larger than the preset data volume allowed to be transmitted by the target data channel, sending first indication information, wherein the first indication information is used for indicating that the first data volume is larger than the preset data volume.
The receiving unit 401, the determining unit 402, the storage unit 403, and the transmitting unit 404 may be implemented by a processor.
The embodiment of the application also provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program for electronic data exchange, and the computer program causes a computer to execute part or all of the steps described in the electronic device in the embodiment of the method.
Embodiments of the present application also provide a computer program product, wherein the computer program product comprises a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps described by an electronic device in a method as described above. The computer program product may be a software installation package.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied in hardware, or may be embodied in software instructions executed by a processor. The software instructions may be comprised of corresponding software modules that may be stored in random access Memory (Random Access Memory, RAM), flash Memory, read Only Memory (ROM), erasable programmable Read Only Memory (Erasable Programmable ROM), electrically Erasable Programmable Read Only Memory (EEPROM), registers, hard disk, a removable disk, a compact disc Read Only Memory (CD-ROM), or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. In the alternative, the storage medium may be integral to the processor. The processor and the storage medium may reside in an ASIC. In addition, the ASIC may reside in an access network device, a target network device, or a core network device. It is of course also possible that the processor and the storage medium reside as discrete components in an access network device, a target network device, or a core network device.
Those skilled in the art will appreciate that in one or more of the examples described above, the functions described in the embodiments of the present application may be implemented, in whole or in part, in software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present application, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, digital subscriber line (Digital Subscriber Line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., a floppy Disk, a hard Disk, a magnetic tape), an optical medium (e.g., a digital video disc (Digital Video Disc, DVD)), or a semiconductor medium (e.g., a Solid State Disk (SSD)), or the like.
The foregoing detailed description of the embodiments of the present application further illustrates the purposes, technical solutions and advantageous effects of the embodiments of the present application, and it should be understood that the foregoing description is only a specific implementation of the embodiments of the present application, and is not intended to limit the scope of the embodiments of the present application, and any modifications, equivalent substitutions, improvements, etc. made on the basis of the technical solutions of the embodiments of the present application should be included in the scope of the embodiments of the present application.

Claims (8)

1. A data storage method, for application to an electronic device, the method comprising:
receiving first data through a target data channel, wherein the first data carries a data identifier;
determining a target memory for storing the first data based on the target data channel and/or the data identifier, wherein the method specifically comprises the following steps: if the target data channel is a first data channel, determining that the target memory is a first memory, wherein the first memory is a first relational memory, and the first data channel is used for transmitting service data; if the target data channel is a second data channel, determining the target memory based on the data identifier, wherein the second data channel is used for transmitting buried point data; if the target data channel is a third data channel, determining that the target memory is a second memory, wherein the second memory is a cache memory, and the third data channel is used for transmitting third party callback data; if the target data channel is a fourth data channel, determining that the target memory is a third memory, wherein the third memory is a distributed object memory, and the fourth data channel is used for transmitting data in a file form;
the first data is stored in the target memory based on the data identification.
2. The method according to claim 1, wherein the data identification comprises a first identification for representing a type of a terminal device generating the first data and a second identification for representing a user of the terminal device;
the determining the target memory based on the data identification includes:
if the first identifier is a first set identifier and the second identifier is a second set identifier, determining that the target memory is a fourth memory, wherein the first set identifier is used for indicating that the terminal equipment is vehicle-mounted terminal equipment, the second set identifier is used for indicating that a user of the terminal equipment is a vehicle owner, and the fourth memory is a column-oriented distributed memory;
and if the first identifier is not a first value and the second identifier is not a second value, determining that the target memory is a fifth memory, wherein the fifth memory is a second relational memory.
3. A method according to claim 1 or 2, wherein the data identity comprises a third identity;
if the target memory is the first memory, the third identifier is used for representing the type of the first data;
if the target memory is the second memory or the third memory, the third identifier is used for indicating the importance degree of the first data;
if the target memory is the second memory or the third memory, the third identifier is used for representing a scene for generating the first data;
the storing the first data in the target memory based on the data identification includes:
the first data is stored in the target memory based on the third identification.
4. A method according to claim 3, wherein prior to receiving the first data via the target data channel, the method further comprises:
determining a first data amount of the first data;
and if the first data volume is larger than the preset data volume allowed to be transmitted by the target data channel, sending first indication information, wherein the first indication information is used for indicating that the first data volume is larger than the preset data volume.
5. A data storage device, the device comprising:
the receiving unit is used for receiving first data through a target data channel, wherein the first data carries a data identifier;
the determining unit is configured to determine, based on the target data channel and/or the data identifier, a target memory storing the first data, and specifically includes: if the target data channel is a first data channel, determining that the target memory is a first memory, wherein the first memory is a first relational memory, and the first data channel is used for transmitting service data; if the target data channel is a second data channel, determining the target memory based on the data identifier, wherein the second data channel is used for transmitting buried point data; if the target data channel is a third data channel, determining that the target memory is a second memory, wherein the second memory is a cache memory, and the third data channel is used for transmitting third party callback data; if the target data channel is a fourth data channel, determining that the target memory is a third memory, wherein the third memory is a distributed object memory, and the fourth data channel is used for transmitting data in a file form;
and a storage unit for storing the first data in the target memory based on the data identification.
6. An electronic device comprising a processor, a memory, a communication interface, and one or more programs stored in the memory and configured to be executed by the processor, the programs comprising instructions for performing the steps in the method of any of claims 1-4.
7. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program, wherein the computer program is processed to perform the method according to any of claims 1-4.
8. A computer program product, wherein the computer program product comprises a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform part or all of the steps described in the method of any one of claims 1-4.
CN202011134842.8A 2020-10-21 2020-10-21 Data storage method and related equipment Active CN112256671B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011134842.8A CN112256671B (en) 2020-10-21 2020-10-21 Data storage method and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011134842.8A CN112256671B (en) 2020-10-21 2020-10-21 Data storage method and related equipment

Publications (2)

Publication Number Publication Date
CN112256671A CN112256671A (en) 2021-01-22
CN112256671B true CN112256671B (en) 2023-11-24

Family

ID=74263430

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011134842.8A Active CN112256671B (en) 2020-10-21 2020-10-21 Data storage method and related equipment

Country Status (1)

Country Link
CN (1) CN112256671B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108038114A (en) * 2017-10-17 2018-05-15 广东欧珀移动通信有限公司 A kind of path query method, terminal, computer-readable recording medium
WO2019140565A1 (en) * 2018-01-17 2019-07-25 新联智慧信息技术(深圳)有限公司 Cloud storage instruction management method and system
CN110245051A (en) * 2019-06-14 2019-09-17 上海中通吉网络技术有限公司 Data bury point methods, device, equipment and storage medium
CN110377361A (en) * 2019-07-15 2019-10-25 北京奇艺世纪科技有限公司 Data load method, device, computer equipment and storage medium
CN111581216A (en) * 2020-05-09 2020-08-25 北京百度网讯科技有限公司 Data processing method, device, equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10198203B2 (en) * 2016-11-15 2019-02-05 Samsung Electronics Co., Ltd. Method of operating memory device using pseudo-random functions, memory device using the same and memory system including the device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108038114A (en) * 2017-10-17 2018-05-15 广东欧珀移动通信有限公司 A kind of path query method, terminal, computer-readable recording medium
WO2019140565A1 (en) * 2018-01-17 2019-07-25 新联智慧信息技术(深圳)有限公司 Cloud storage instruction management method and system
CN110245051A (en) * 2019-06-14 2019-09-17 上海中通吉网络技术有限公司 Data bury point methods, device, equipment and storage medium
CN110377361A (en) * 2019-07-15 2019-10-25 北京奇艺世纪科技有限公司 Data load method, device, computer equipment and storage medium
CN111581216A (en) * 2020-05-09 2020-08-25 北京百度网讯科技有限公司 Data processing method, device, equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
WiMax网络中数据通道标识的动态分配方案设计;李军;唐鼎;赵志军;吴尽昭;唐晖;;计算机科学(第01期);122-124 *
云数据存储技术在气象数据存储中的应用;陈晴;杨明;肖云;吴京生;滕舟;魏爽;胡永亮;庞俊;;计算机应用与软件(第08期);130-133 *

Also Published As

Publication number Publication date
CN112256671A (en) 2021-01-22

Similar Documents

Publication Publication Date Title
TWI729705B (en) Identity recognition preprocessing, identity recognition method and system, user mobile equipment, recognition server equipment, biometric collection equipment, recognition server and computer equipment
US9185558B2 (en) Authentication server and authentication method by authentication server
CN112491998A (en) Message pushing method and related equipment
JP2024016285A (en) Software upgrade methods, equipment, and systems
CN110536016B (en) Network sharing method and related equipment
CN110392119B (en) Data transmission method and base station
CN112256671B (en) Data storage method and related equipment
WO2020058431A1 (en) Apparatus and method for vehicle searching
CN106156036A (en) A kind of onboard audio processing method and mobile unit
CN102377793A (en) Flash interaction method and device based on mobile communication equipment terminal
CN107819761B (en) Data processing method and device and readable storage medium
CN110913038A (en) IP address determination method, device, server and computer readable storage medium
CN112612517B (en) Data acquisition method and related equipment
CN108040116B (en) Message pushing method, router and computer readable storage medium
CN113300910B (en) Method and system for acquiring use rate, terminal, access point and MEC server
CN113836428A (en) Business pushing method and device, computer equipment and storage medium
CN110740446B (en) Communication configuration method and related equipment
CN110830495A (en) Network access management method and related equipment
CN109246686B (en) Multi-card user address book updating method and device based on cloud technology
CN101677438A (en) Method and device for downloading content
CN105471593B (en) Group conversation method, device and system
CN113542330B (en) Mobile edge calculation data acquisition method and system
CN110062019B (en) Risk control method and terminal equipment
CN114724380B (en) Vehicle speed limit recognition processing method and device, intelligent vehicle-mounted terminal and vehicle networking system
US20200357398A1 (en) Information collection system

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 201821 room 208, building 4, No. 1411, Yecheng Road, Jiading Industrial Zone, Jiading District, Shanghai

Applicant after: Botai vehicle networking technology (Shanghai) Co.,Ltd.

Address before: Room 208, building 4, 1411 Yecheng Road, Jiading Industrial Zone, Jiading District, Shanghai, 201800

Applicant before: SHANGHAI PATEO ELECTRONIC EQUIPMENT MANUFACTURING Co.,Ltd.

GR01 Patent grant
GR01 Patent grant