CN111274586A - Method and device for saving data - Google Patents

Method and device for saving data Download PDF

Info

Publication number
CN111274586A
CN111274586A CN201811472945.8A CN201811472945A CN111274586A CN 111274586 A CN111274586 A CN 111274586A CN 201811472945 A CN201811472945 A CN 201811472945A CN 111274586 A CN111274586 A CN 111274586A
Authority
CN
China
Prior art keywords
attributes
database
stored
data
attribute
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.)
Granted
Application number
CN201811472945.8A
Other languages
Chinese (zh)
Other versions
CN111274586B (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.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology 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 Beijing Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201811472945.8A priority Critical patent/CN111274586B/en
Publication of CN111274586A publication Critical patent/CN111274586A/en
Application granted granted Critical
Publication of CN111274586B publication Critical patent/CN111274586B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2221/00Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/21Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/2107File encryption

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Bioethics (AREA)
  • Databases & Information Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a method and a device for storing data, and relates to the technical field of computers. One embodiment of the method comprises: acquiring data of attributes to be saved and temporary storage positions of the attributes to be saved; inquiring the database storage positions of all the attributes according to the mapping relation between the temporary storage positions of all the attributes and the database storage positions and the temporary storage positions of the attributes to be stored; and generating a control instruction according to the data of the attributes to be saved and the database storage positions of all the attributes, and sending the control instruction to the database. The implementation mode reduces resource occupation, improves the accuracy of data storage and improves the experience degree of users.

Description

Method and device for saving data
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for storing data.
Background
Each commodity has attributes similar to the following: whether shelf life is managed, whether it is a luxury product, whether it is refrigerated, whether it is fragile, and/or whether it is quality checked, etc. The existing way to save these attributes is to create a field in the database, where one character stores one attribute of the goods.
In the process of implementing the invention, the inventor finds that at least the following problems exist in the prior art: firstly, manually memorizing the storage position of a database of each attribute of a commodity, and saving or modifying the data of each attribute in the database through memorization, thereby causing low accuracy of data saving and poor user experience; secondly, the storage mode of the database is embodied externally, and the safety of the data is not high; thirdly, the process of saving data is complex and occupies too many resources.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method and an apparatus for storing data, which can improve accuracy and security of data storage, improve user experience, and reduce resource occupation.
To achieve the above object, according to a first aspect of embodiments of the present invention, there is provided a method of saving data.
The method for storing data, which is applied to the server, of the embodiment of the invention comprises the following steps: acquiring data of attributes to be saved and temporary storage positions of the attributes to be saved; inquiring the database storage positions of all the attributes according to the mapping relation between the temporary storage positions of all the attributes and the database storage positions and the temporary storage positions of the attributes to be stored; and generating a control instruction according to the data of the attributes to be saved and the database storage positions of all the attributes, and sending the control instruction to the database.
In one embodiment, the method further comprises: the method comprises the steps of establishing a mapping relation between temporary storage positions of all attributes and storage positions of a database in advance, wherein all the attributes comprise attributes to be stored and stored attributes; inquiring the database storage positions of all the attributes according to the mapping relation between the temporary storage positions of all the attributes and the database storage position and the temporary storage positions of the attributes to be stored, wherein the method comprises the following steps: inquiring the database storage position of the attribute to be stored according to the temporary storage position of the attribute to be stored and the mapping relation between the temporary storage position of the attribute to be stored and the database storage position; and inquiring the database storage position of the stored attribute according to the database storage position of the attribute to be stored and the database storage positions of all the attributes.
In one embodiment, generating a control command according to the data of the attributes to be saved and the database storage locations of all the attributes includes: and generating a control instruction according to the data of the attributes to be saved, the database storage position of the attributes to be saved and the database storage position of the saved attributes.
In one embodiment, the pre-establishing a mapping relationship between the temporary storage locations of all attributes and the storage locations of the database includes: creating a storage device, defining and marking the attribute stored in each storage unit in the storage device, and taking the position relation of each storage unit relative to the storage device as the temporary storage position of the attribute; acquiring a database storage position of each attribute, and establishing a mapping relation between the temporary storage positions of all the attributes and the database storage position according to the corresponding relation between the temporary storage position of each attribute and the database storage position; the defined and marked storage device is sent to the user terminal.
In one embodiment, after sending the defined and marked storage device to the user terminal, the method further comprises: and receiving a storage device returned by the user terminal, wherein the returned storage device comprises data of the attribute to be stored and a temporary storage position of the attribute to be stored.
To achieve the above object, according to a second aspect of an embodiment of the present invention, there is provided a method of saving data.
The method for storing data, which is provided by the embodiment of the invention, is applied to a database and comprises the following steps: receiving a control instruction, wherein the control instruction comprises data of attributes to be stored and database storage positions of all the attributes; and saving the data of the attributes to be saved according to the database storage positions of all the attributes.
In one embodiment, the database storage locations of all attributes include a database storage location of an attribute to be saved and a database storage location of a saved attribute; saving the data of the attributes to be saved according to the database storage positions of all the attributes, wherein the step of saving the data of the attributes to be saved comprises the following steps: acquiring the data of the saved attributes according to the database storage position of the saved attributes; sorting the data of the stored attributes and the data of the attributes to be stored according to the position relation between the storage positions of the database of the stored attributes and the storage positions of the database of the attributes to be stored to obtain an array; saving the array after splicing.
In one embodiment, saving the concatenated array includes: splicing the arrays into a new character string; the new character string replaces an original character string stored in the database.
To achieve the above object, according to a third aspect of the embodiments of the present invention, there is provided an apparatus for storing data.
The device for storing data of the embodiment of the invention is applied to a server and comprises the following components: the device comprises an acquisition unit, a storage unit and a processing unit, wherein the acquisition unit is used for acquiring data of attributes to be stored and temporary storage positions of the attributes to be stored; the query unit is used for querying the database storage positions of all the attributes according to the mapping relation between the temporary storage positions of all the attributes and the database storage positions and the temporary storage positions of the attributes to be stored; and the processing unit is used for generating a control instruction according to the data of the attributes to be saved and the database storage positions of all the attributes, and sending the control instruction to the database.
In one embodiment, the apparatus further comprises: the device comprises a setting unit, a storage unit and a processing unit, wherein the setting unit is used for pre-establishing the mapping relation between the temporary storage positions of all attributes and the storage positions of a database, and all attributes comprise attributes to be stored and stored attributes; the query unit is specifically configured to: inquiring the database storage position of the attribute to be stored according to the temporary storage position of the attribute to be stored and the mapping relation between the temporary storage position of the attribute to be stored and the database storage position; and inquiring the database storage position of the stored attribute according to the database storage position of the attribute to be stored and the database storage positions of all the attributes.
In one embodiment, the processing unit is specifically configured to: and generating a control instruction according to the data of the attributes to be saved, the database storage position of the attributes to be saved and the database storage position of the saved attributes.
In one embodiment, the setting unit is specifically configured to: creating a storage device, defining and marking the attribute stored in each storage unit in the storage device, and taking the position relation of each storage unit relative to the storage device as the temporary storage position of the attribute; acquiring a database storage position of each attribute, and establishing a mapping relation between the temporary storage positions of all the attributes and the database storage position according to the corresponding relation between the temporary storage position of each attribute and the database storage position; the defined and marked storage device is sent to the user terminal.
In an embodiment, the obtaining unit is further specifically configured to: and receiving a storage device returned by the user terminal, wherein the returned storage device comprises data of the attribute to be stored and a temporary storage position of the attribute to be stored.
To achieve the above object, according to a fourth aspect of the embodiments of the present invention, there is provided an apparatus for storing data.
The device for storing data of the embodiment of the invention is applied to a database and comprises the following components: the receiving unit is used for receiving a control instruction, wherein the control instruction comprises data of attributes to be stored and database storage positions of all the attributes; and the saving unit is used for saving the data of the attributes to be saved according to the database storage positions of all the attributes.
In one embodiment, the database storage locations of all attributes include a database storage location of an attribute to be saved and a database storage location of a saved attribute; the storage unit is specifically configured to: acquiring the data of the saved attributes according to the database storage position of the saved attributes; sorting the data of the stored attributes and the data of the attributes to be stored according to the position relation between the storage positions of the database of the stored attributes and the storage positions of the database of the attributes to be stored to obtain an array; saving the array after splicing.
In an embodiment, the saving unit is further specifically configured to: splicing the arrays into a new character string; the new character string replaces an original character string stored in the database.
To achieve the above object, according to a fifth aspect of embodiments of the present invention, there is provided an electronic apparatus.
An electronic device of an embodiment of the present invention includes: one or more processors; the storage device is used for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors implement the method for saving data provided by the embodiment of the invention.
To achieve the above object, according to a sixth aspect of embodiments of the present invention, there is provided a computer-readable medium.
A computer-readable medium of an embodiment of the present invention stores thereon a computer program, which when executed by a processor implements the method for saving data provided by an embodiment of the present invention.
One embodiment of the above invention has the following advantages or benefits: the data of the attributes to be saved and the temporary storage positions of the data are acquired, and the mapping relation between the temporary storage positions of all the attributes and the storage positions of the database is utilized, so that the generated control instruction controls the database to save the data of the attributes to be saved by self in a control instruction mode, the step of inquiring the data of all the attributes of the commodity from the database is omitted, a user can directly set the data of the attributes, the original storage data does not need to be considered, the step of saving the data is simplified, the resource occupation is reduced, and the user experience is improved. Through the temporary storage position, the attribute storage mode of the database is not reflected to the outside, and the data security is improved. By defining and marking the attributes stored in the storage unit and showing the attributes and the temporary storage positions of the attributes to the user, the problem that data storage is prone to errors caused by setting and storing data according to a database storage position mode of manually memorizing the attributes is solved, errors are reduced, and the accuracy of data storage is improved.
Further effects of the above-mentioned non-conventional alternatives will be described below in connection with the embodiments.
Drawings
The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:
FIG. 1 is a schematic diagram of the main flow of a method of saving data according to an embodiment of the invention;
FIG. 2 is a schematic diagram of the storage structures of string field and varchar field in the embodiment of the present invention;
FIG. 3 is a schematic diagram of a main flow of a method of saving data according to another embodiment of the present invention;
FIG. 4 is a signaling interaction diagram of a method of saving data according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of the main blocks of an apparatus for saving data according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of the main blocks of an apparatus for saving data according to another embodiment of the present invention;
FIG. 7 is an exemplary system architecture diagram in which embodiments of the present invention may be employed;
fig. 8 is a schematic structural diagram of a computer system suitable for implementing a terminal device or a server according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present invention are described below with reference to the accompanying drawings, in which various details of embodiments of the invention are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
It should be noted that the embodiments and features of the embodiments may be combined with each other without conflict.
Goods have many attributes, such as: whether shelf life is managed, whether luxury goods are managed, whether refrigeration is managed, whether fragile goods are easily sold, whether liquid is special-shaped, whether unmovable or not, whether non-unpacking is performed or not, whether quality inspection is performed or not and the like. The database extension field is required when new attributes are to be saved and the database extension field must suspend database services. The more attributes are saved, the longer the pause time is, thus causing the expansion difficulty and the occupation of excessive database resources and the change of the database structure.
The existing way of saving these attributes can solve the above problems, which are as follows: by taking the idea of bitmap (bitmap) as an example, a field is created in advance in a database, the field is a long character string (varchar) field, the varchar field has 500 characters, and one character can store one attribute, for example, the attribute of shelf life management is stored in the first character of the varchar field, if the 1 st character stores '0', the commodity is not shelf life management, and if the 1 st character stores '1', the commodity is shelf life management; the attribute of luxury goods is stored in the second character, if the 2 nd character is stored as '0', it means that the goods is not luxury goods, and if the 2 nd character is stored as '1', it means that the goods is luxury goods. In practice, only a few characters in the varchar field are used, and when a new attribute needs to be stored, the unused characters are stored into the new attribute, so that the expansion is easy, the occupation of database resources is reduced, and the database structure is not changed.
However, in the existing storage method, it is manually memorized in which character of the database each attribute is stored, and accordingly, data of each attribute is set for the commodity, and the data is stored in the database after the setting. In the process, errors are easy to occur when the data with the attributes are set according to manual memory; and once one attribute is set incorrectly, multiple attributes may be set incorrectly. Finally, the accuracy of data storage is not high, and the user experience is poor.
The storage mode of the database is embodied externally, namely the storage mode of the database is known by all users using the database, and the security of the data cannot be guaranteed.
When a user needs to modify the data of the attributes, the user terminal firstly queries the data of all the attributes of the commodity from the database and presents the data to the user, the user manually memorizes which character of each attribute is stored in the database, the data of the commodity attributes are modified at the user terminal according to the data, and the modified data are sent to the database for storage by the user terminal. Therefore, the data of all the attributes of the commodity must be searched from the database to complete the modification of the attribute data, and finally, the process of storing the data is complex, and excessive resources are occupied.
In order to solve the problems in the prior art, a first embodiment of the present invention provides a method for storing data, as shown in fig. 1, which is applied to a server and includes:
step S101, acquiring data of attributes to be saved and temporary storage positions of the attributes to be saved.
When the method is specifically implemented, the data of the attribute to be stored and the temporary storage position of the attribute to be stored are obtained by using a reflection mechanism of java language. It should be understood that the first embodiment can be used to store data for the attributes of the goods to be modified, as well as for the first time.
And S102, inquiring the database storage positions of all the attributes according to the mapping relation between the temporary storage positions of all the attributes and the database storage positions and the temporary storage positions of the attributes to be stored.
It should be understood that the database storage location is within the database and the temporary storage location is not within the database. Therefore, the mode of storing the attributes of the database is not embodied outside, and the user cannot know the mode of storing the attributes of the database, so that the safety of the data is further improved. In addition, the mode of the second embodiment can be referred to for the detailed implementation of this step.
And S103, generating a control instruction according to the data of the attributes to be saved and the database storage positions of all the attributes, and sending the control instruction to the database.
In specific implementation, because the language adopted by the user terminal is java, the language adopted by the server for implementing the method of the embodiment of the invention is java, and the database must use SQL statements. Therefore, after the java-format control instruction is generated, the java-format control instruction is converted into the control instruction of the SQL statement. Therefore, the database can rapidly store the data of the attributes to be stored according to the control instruction of the SQL statement, and the storage speed is improved. In addition, the tool used by the transformation control instruction may be an objectwrapprefactor (which is a factory object for generating objects) mechanism within MyBatis (MyBatis is a good piece of persistent layer framework). In addition, the detailed implementation of this step can refer to the second embodiment. The control instruction is generated according to the data of the attributes to be saved and the database storage positions of all the attributes and is sent to the database, so that the step of inquiring the data of all the attributes of the commodity from the database is omitted, the step of saving the data is further simplified, the resource occupation is further reduced, and the user experience degree is further improved
It should be noted that, the data storage problem of the marked attribute of the commodity is solved by all the embodiments of the present invention, wherein the commodity has many attributes, such as whether to manage batches, whether to be luxury, whether to be fragile and weight, whether to be marked for attributes such as whether to manage batches, whether to be luxury and whether to be fragile, and whether to be unmarked for attributes such as weight.
In order to solve the problems in the prior art, a second embodiment of the present invention provides a method for storing data, which is applied to a server and includes:
the first step is to pre-establish the mapping relation between the temporary storage positions of all attributes and the storage positions of a database, wherein all attributes comprise attributes to be saved and saved attributes.
In this step, the specific implementation may be: creating a storage device, defining and marking the attribute stored in each storage unit in the storage device, and taking the position relation of each storage unit relative to the storage device as the temporary storage position of the attribute; acquiring a database storage position of each attribute, and establishing a mapping relation between the temporary storage positions of all the attributes and the database storage position according to the corresponding relation between the temporary storage position of each attribute and the database storage position; the defined and marked storage device is sent to the user terminal. It should be understood that the attributes to be saved are user-modified attributes and the saved attributes are user-unmodified attributes. In addition, because the attributes and the temporary storage positions of the attributes are displayed for the user, the user can directly set the data of the attributes and the temporary storage positions of the attributes according to the method without manually memorizing the database storage positions of each attribute, the problem that data storage is easy to make mistakes due to the fact that the data are set and stored according to the database storage position mode of manually memorizing the attributes is solved, the error occurrence is further reduced, and the accuracy of data storage is further improved. In addition, the attribute storage mode of the database is not externally embodied, and the externally embodied mode is only a temporary storage mode, so that the data security is improved. Secondly, because the corresponding relation between the temporary storage position and the database storage position is established, the data of the modified attribute and the database storage position thereof are directly determined according to the modification of the user, and the instruction is generated accordingly, the database is controlled to be automatically stored in an instruction mode, so that the step of inquiring the data of all the attributes of the commodity from the database can be omitted, the user can directly set the data of the attribute without considering the original storage data, the step of storing the data is further simplified, the resource occupation is further reduced, and the user experience is further improved.
The following describes a specific implementation process of this step with reference to fig. 2 by using a specific example:
a string field is created in the server (string is the data type of the stored character string in the java language), and 500 characters exist in the string field. In addition, any character of the string field can be used to store the attribute, as long as the same character does not store both attributes. Defining and marking that the first character in the string field is stored with the attribute two, the second character in the string field is stored with the attribute one, and the third character in the string field is stored with the attribute three according to the characteristics of the commodity, so that the temporary storage position of the attribute one is the second character of the string field, the temporary storage position of the attribute two is the first character of the string field, and the temporary storage position of the attribute three is the third character of the string field.
Acquiring a database storage position of the attribute I, specifically, a third character of a varchar (the varchar is used for storing a character string data type with variable length in the database) field in the database; acquiring a database storage position of the attribute II, specifically a second character of a varchar field in the database; and acquiring the storage position of the database with the attribute III, specifically the first character of the varchar field in the database. Thus, the storage location of attribute one: the second character of string field has mapping relation with the third character of varchar field in database, and the storage position of attribute two: the first character of string field has mapping relation with the second character of varchar field in database, and the storage position of attribute three: the third character of string field has a mapping relationship with the first character of varchar field in the database.
And sending the defined and marked string field to the user terminal.
In the case of not affecting the embodiment of the present invention, a person skilled in the art can flexibly create a storage device, which is not limited to creating a string field provided in the embodiment of the present invention. E.g., create a data table, etc.
It should be noted that the java language is a language generally used by the user terminal, the preferred server also adopts the java language, the data type of the character string stored in the java language is string, a string field is created in the server, and the defined and marked string field is sent to the user terminal, so that the user terminal can conveniently input data of the attribute to be stored, and the server can also quickly obtain the operation result of the user terminal, such as the data of the attribute to be stored, thereby improving the speed of storing the data.
And secondly, acquiring data of the attributes to be saved and the temporary storage positions of the attributes to be saved.
In this step, the specific implementation may be: and receiving a storage device returned by the user terminal, wherein the returned storage device comprises data of the attribute to be stored and a temporary storage position of the attribute to be stored. Illustratively, data is obtained from string field characters returned by the user terminal by using a reflection mechanism of java language; when data is acquired from the characters, the acquired data is used as data of the attribute to be saved, and the position relation of the characters relative to the string field is used as a temporary storage position of the attribute to be saved. Of course, there may be a plurality of attributes to be saved, and the temporary storage locations and data of all the attributes to be saved can be obtained according to the above manner.
And thirdly, inquiring the database storage position of the attribute to be stored according to the temporary storage position of the attribute to be stored and the mapping relation between the temporary storage position of the attribute to be stored and the database storage position.
It should be noted that, in the first step, a mapping relationship between the temporary storage locations of all attributes and the storage location of the database is established, so that, in this step, the storage location of the database of the attribute to be saved can be queried by using the temporary storage location of the attribute to be saved.
And fourthly, inquiring the database storage position of the stored attribute according to the database storage position of the attribute to be stored and the database storage positions of all the attributes.
In this step, the specific implementation may be: and eliminating the database storage positions of the attributes to be saved in the database storage positions of all the attributes, wherein the rest database storage positions are used as the inquired database storage positions of the saved attributes. Because all the attributes only comprise the attributes to be saved and the saved attributes, the storage positions of the database with the attributes to be saved are removed, and the rest storage positions of the database are the storage positions of the database with the saved attributes.
It should be understood that those skilled in the art can flexibly obtain the database storage location of the saved attribute without affecting the embodiment of the present invention. Illustratively, the data of the attributes to be saved is obtained, and simultaneously the temporary storage location of the saved attributes is also obtained, and the database storage location of the saved attributes is queried according to the temporary storage location of the saved attributes and the mapping relationship between the temporary storage location of the saved attributes and the database storage location, so as to obtain the database storage location of the saved attributes. In specific implementation, the process of obtaining the temporary storage location of the saved attribute may be: acquiring data from string field characters returned by the user terminal by using a java language reflection mechanism; and when the data cannot be acquired, taking the position relation of the character relative to the string field as the temporary storage position of the saved attribute. Of course, there may be more than one saved attribute, and the temporary storage locations of all the saved attributes can be obtained in the above manner.
And fifthly, generating a control instruction according to the data of the attributes to be saved, the database storage position of the attributes to be saved and the database storage position of the saved attributes.
It should be understood that the second embodiment is described by taking the example of saving the data of the attribute of the commodity to be modified, and the process for saving the data of the attribute of the commodity to the database for the first time is similar to that of the second embodiment, except that the related steps of the saved attribute are not involved.
In order to solve the problems in the prior art, a third embodiment of the present invention provides a method for saving data, as shown in fig. 3, the method, applied to a database, including:
step S301, receiving a control instruction, wherein the control instruction comprises data of attributes to be stored and database storage positions of all the attributes;
in concrete implementation, the implementation of this step can refer to the implementation of the fourth embodiment.
And S302, saving the data of the attributes to be saved according to the database storage positions of all the attributes.
It should be noted that, since the character storing the attribute in the database is of char type, the data of the attribute may be not only boolean value (i.e., yes or no), but also an enumeration type (e.g., heavy, particularly heavy, or light) within 255 value ranges. In all embodiments of the present invention, only the boolean type is described, and the other types are not described. In addition, the fourth embodiment can be referred to for the detailed implementation of this step. It should be understood that the third embodiment can be used to store data of the attributes of the goods to be modified, and can also be used to store data of the attributes of the goods for the first time. Moreover, the database stores the data according to the received data of the attributes to be stored and the storage positions of the database of all the attributes, so that the step of inquiring the data of all the attributes of the commodity from the database is omitted, the step of storing the data is further simplified, the resource occupation is further reduced, and the user experience is further improved.
In order to solve the problems in the prior art, a fourth embodiment of the present invention provides a method for storing data, which is applied to a database, and includes:
the method comprises the steps of firstly, receiving a control instruction, wherein the control instruction comprises data of attributes to be saved and database storage positions of all the attributes, and the database storage positions of all the attributes comprise the database storage positions of the attributes to be saved and the database storage positions of the saved attributes.
And secondly, acquiring the data of the saved attributes according to the storage position of the database of the saved attributes.
And thirdly, sorting the data of the stored attributes and the data of the attributes to be stored according to the position relation between the storage positions of the database of the stored attributes and the storage positions of the database of the attributes to be stored to obtain an array.
And fourthly, saving the spliced array.
In this step, the specific implementation may be: splicing the arrays into a new character string; the new character string replaces an original character string stored in the database. It should be noted that, in the embodiment of the present invention, the data of the attribute to be saved is saved to the original position of the attribute to be saved by the database, and the data of the attribute to be saved is not saved to the original position in the database, so that the accuracy of data saving is ensured.
In addition, the database acquires the data of the stored attributes by using the control instruction, the data of the attributes to be stored and the data of the stored attributes are sequenced and spliced according to a database storage mode, and the spliced new character string replaces the original character string, so that the database automatically stores the data of the attributes to be stored according to the control instruction, the step of inquiring the data of all the attributes of the commodity from the database is omitted, a user can directly set the data of the attributes, the original stored data does not need to be considered, the step of storing the data is further simplified, the resource occupation is further reduced, and the user experience degree is further improved.
The following describes a specific process of the embodiment of the present invention with a specific example, with reference to fig. 2:
receiving data of an attribute to be stored, namely data 0 of an attribute I, wherein a database storage position of the attribute to be stored is a third character of a varchar field in a database, and a database storage position of the attribute to be stored is a database storage position of an attribute II (a second character of the varchar field in the database) and a database storage position of an attribute III (a first character of the varchar field in the database).
Using a built-in function substring (i, i) of the database to acquire data of an attribute III from a first character of a varchar field in the database, wherein the data of the attribute III is 0; and (3) acquiring data of an attribute two from the second character of the varchar field in the database by using a built-in function substring (i, i) of the database, wherein the data of the attribute two is 1.
And sequencing the data of the first attribute, the data of the second attribute and the data of the third attribute according to the relation that the third attribute is stored in the first character of the varchar field, the second attribute is stored in the second character of the varchar field and the third attribute is stored in the first attribute in the third character of the varchar field to obtain an array, wherein the array is the data of the third attribute, the data of the second attribute and the data of the first attribute.
And splicing the arrays into a new character string through a concat function of the database (the concat function is a function for splicing the character strings in the database), wherein the new character string is 010, and the new character string occupies a varchar field.
Assuming that the original data of attribute one stored in the third character of the varchar field is 1, the original string stored in the varchar field in the database is 011, and the new string 010 replacing the original string stored in the varchar field in the database is 011.
It should be noted that, at present, the built-in function backing (i, i) of the database can only obtain data from one character of the varchar field at a time, when the character does not store data, the built-in function backing (i, i) of the database cannot obtain data, and the built-in function backing (i, i) removes another character in the varchar field to obtain data until all characters of the varchar field in the database are obtained by the built-in function backing (i, i) once.
It should be understood that the fourth embodiment is described by taking the example of saving the data of the attribute of the commodity to be modified, and the process of the fourth embodiment is similar to that of the fourth embodiment for the case that the database saves the data of the attribute of the commodity for the first time, except that the related steps of the saved attribute are not involved.
In the embodiment of the invention, the data of the attributes to be saved and the temporary storage positions thereof are obtained, and the mapping relation between the temporary storage positions of all the attributes and the storage positions of the database is utilized, so that the generated control instruction controls the database to save the data of the attributes to be saved by self in a control instruction mode, thereby omitting the step of inquiring the data of all the attributes of the commodity from the database, enabling a user to directly set the data of the attributes, not considering the original storage data, simplifying the step of saving the data, reducing the resource occupation and improving the user experience. Through the temporary storage position, the attribute storage mode of the database is not reflected to the outside, and the data security is improved. By defining and marking the attributes stored in the storage unit and showing the attributes and the temporary storage positions of the attributes to the user, the problem that data storage is prone to errors caused by setting and storing data according to a database storage position mode of manually memorizing the attributes is solved, errors are reduced, and the accuracy of data storage is improved.
In the above description, the first embodiment or the second embodiment describes specific implementation contents of the server, and the third embodiment or the fourth embodiment describes specific implementation contents of the database, for the convenience of understanding of the reader, the following describes an interaction process among the user terminal, the server, and the database by using a specific example, with reference to fig. 4, specifically as follows: the server for executing the method for saving data provided by the embodiment of the invention sends the defined and marked string field to the user terminal. And the user terminal receives the defined and marked string field and displays the string field to a user, the user terminal stores the data of the attribute to be stored, which is input by the user, to the corresponding position of the string field and returns the stored string field to the server, and the user inputs the data of the attribute to be stored according to the presented mark and the actual requirement. Therefore, the user does not need to manually remember which attribute is stored in which position, and can directly modify the attribute, so that the experience degree of the user is improved. The server receives string fields returned by the user terminal, generates a control instruction by using a mapping relation between the storage positions of the string fields of the attributes and the storage positions of the varchar fields, and sends the control instruction to the database, and the specific implementation process of the process can refer to the first embodiment or the second embodiment. The database stores the data of the attribute to be stored in the varchar field according to the control instruction, and the specific storage process of the database may refer to the third embodiment or the fourth embodiment.
The specific processes of the method for saving data are described above with reference to fig. 1-4, and the apparatus for saving data is described below with reference to fig. 5-6.
In order to solve the problems in the prior art, a fifth embodiment of the present invention provides an apparatus for storing data, as shown in fig. 5, the apparatus, applied to a server, including:
an obtaining unit 501, configured to obtain data of an attribute to be saved and a temporary storage location of the attribute to be saved.
The query unit 502 is configured to query the database storage locations of all the attributes according to the mapping relationship between the temporary storage locations of all the attributes and the database storage location, and the temporary storage locations of the attributes to be stored.
The processing unit 503 is configured to generate a control instruction according to the data of the attributes to be saved and the database storage locations of all the attributes, and send the control instruction to the database.
It should be understood that the manner of implementing the fifth embodiment is the same as that of implementing the first embodiment and will not be described again here.
In order to solve the problems in the prior art, a sixth embodiment of the present invention provides an apparatus for storing data, which is applied to a server, and includes:
the setting unit is used for establishing the mapping relation between the temporary storage positions of all attributes and the storage positions of the database in advance, wherein all the attributes comprise attributes to be saved and saved attributes.
In this unit, in implementation, the setting unit is further specifically configured to: creating a storage device, defining and marking the attribute stored in each storage unit in the storage device, and taking the position relation of each storage unit relative to the storage device as the temporary storage position of the attribute; acquiring a database storage position of each attribute, and establishing a mapping relation between the temporary storage positions of all the attributes and the database storage position according to the corresponding relation between the temporary storage position of each attribute and the database storage position; the defined and marked storage device is sent to the user terminal.
And the acquisition unit is used for acquiring the data of the attribute to be saved and the temporary storage position of the attribute to be saved.
In this unit, in a specific implementation, the obtaining unit is further specifically configured to: and receiving a storage device returned by the user terminal, wherein the returned storage device comprises data of the attribute to be stored and a temporary storage position of the attribute to be stored.
The query unit is used for querying the database storage position of the attribute to be stored according to the temporary storage position of the attribute to be stored and the mapping relation between the temporary storage position of the attribute to be stored and the database storage position; and inquiring the database storage position of the stored attribute according to the database storage position of the attribute to be stored and the database storage positions of all the attributes.
And the processing unit is used for generating a control instruction according to the data of the attributes to be saved, the database storage position of the attributes to be saved and the database storage position of the saved attributes.
It should be understood that the manner of implementing the sixth embodiment is the same as that of implementing the second embodiment and will not be described again.
In order to solve the problems in the prior art, a seventh embodiment of the present invention provides an apparatus for storing data, as shown in fig. 6, the apparatus, applied to a database, including:
the receiving unit 601 is configured to receive a control instruction, where the control instruction includes data of an attribute to be saved and a database storage location of all attributes.
A saving unit 602, configured to save the data of the attribute to be saved according to the database storage locations of all the attributes.
It should be understood that the seventh embodiment is implemented in the same manner as the third embodiment and will not be described herein.
In order to solve the problems in the prior art, an eighth embodiment of the present invention provides an apparatus for storing data, which is applied to a database, and includes:
the receiving unit is used for receiving a control instruction, wherein the control instruction comprises data of the attributes to be saved and database storage positions of all the attributes, and the database storage positions of all the attributes comprise the database storage positions of the attributes to be saved and the database storage positions of the saved attributes.
The saving unit is used for acquiring the data of the saved attributes according to the database storage position of the saved attributes; sorting the data of the stored attributes and the data of the attributes to be stored according to the position relation between the storage positions of the database of the stored attributes and the storage positions of the database of the attributes to be stored to obtain an array; saving the array after splicing.
In this unit, when implemented, the saving unit is further configured to: splicing the arrays into a new character string; the new character string replaces an original character string stored in the database.
It should be understood that the manner of implementing the eighth embodiment is the same as that of implementing the fourth embodiment, and thus, the description thereof is omitted.
Fig. 7 illustrates an exemplary system architecture 700 to which the method of saving data or the apparatus for saving data of embodiments of the present invention may be applied.
As shown in fig. 7, the system architecture 700 may include terminal devices 701, 702, 703, a network 704, and a server 705. The network 704 serves to provide a medium for communication links between the terminal devices 701, 702, 703 and the server 705. Network 704 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
A user may use the terminal devices 701, 702, 703 to interact with a server 705 over a network 704, to receive or send messages or the like. The terminal devices 701, 702, 703 may have installed thereon various communication client applications, such as a shopping-like application, a web browser application, a search-like application, an instant messaging tool, a mailbox client, social platform software, etc. (by way of example only).
The terminal devices 701, 702, 703 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The server 705 may be a server providing various services, such as a background management server (for example only) providing support for shopping websites browsed by users using the terminal devices 701, 702, 703. The backend management server may analyze and perform other processing on the received data such as the product information query request, and feed back a processing result (for example, target push information, product information — just an example) to the terminal device.
It should be noted that the method for saving data provided by the embodiment of the present invention is generally executed by the server 705, and accordingly, the apparatus for saving data is generally disposed in the server 705.
It should be understood that the number of terminal devices, networks, and servers in fig. 7 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring now to FIG. 8, shown is a block diagram of a computer system 800 suitable for use with a terminal device implementing an embodiment of the present invention. The terminal device shown in fig. 8 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 8, the computer system 800 includes a Central Processing Unit (CPU)801 that can perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)802 or a program loaded from a storage section 808 into a Random Access Memory (RAM) 803. In the RAM803, various programs and data necessary for the operation of the system 800 are also stored. The CPU 801, ROM 802, and RAM803 are connected to each other via a bus 804. An input/output (I/O) interface 805 is also connected to bus 804.
The following components are connected to the I/O interface 805: an input portion 806 including a keyboard, a mouse, and the like; an output section 807 including a signal such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage portion 808 including a hard disk and the like; and a communication section 809 including a network interface card such as a LAN card, a modem, or the like. The communication section 809 performs communication processing via a network such as the internet. A drive 810 is also connected to the I/O interface 805 as necessary. A removable medium 811 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 810 as necessary, so that a computer program read out therefrom is mounted on the storage section 808 as necessary.
In particular, according to the embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program can be downloaded and installed from a network through the communication section 809 and/or installed from the removable medium 811. The computer program executes the above-described functions defined in the system of the present invention when executed by the Central Processing Unit (CPU) 801.
It should be noted that the computer readable medium shown in the present invention can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present invention may be implemented by software or hardware. The described units may also be provided in a processor, and may be described as: a processor includes an acquisition unit, a query unit, and a processing unit. The names of these units do not in some cases constitute a limitation to the unit itself, and for example, the acquisition unit may also be described as a "unit that acquires data of an attribute to be saved and a temporary storage location of the attribute to be saved".
As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be separate and not incorporated into the device. The computer readable medium carries one or more programs which, when executed by a device, cause the device to comprise: acquiring data of attributes to be saved and temporary storage positions of the attributes to be saved; inquiring the database storage positions of all the attributes according to the mapping relation between the temporary storage positions of all the attributes and the database storage positions and the temporary storage positions of the attributes to be stored; and generating a control instruction according to the data of the attributes to be saved and the database storage positions of all the attributes, and sending the control instruction to the database.
According to the technical scheme of the embodiment of the invention, the data of the attributes to be stored and the temporary storage positions thereof are obtained, and the mapping relation between the temporary storage positions of all the attributes and the storage positions of the database is utilized, so that the generated control instruction controls the database to automatically store the data of the attributes to be stored in a control instruction mode, the step of inquiring the data of all the attributes of the commodity from the database is omitted, a user can directly set the data of the attributes, the original storage data is not required to be considered, the step of storing the data is simplified, the resource occupation is reduced, and the user experience is improved. Through the temporary storage position, the attribute storage mode of the database is not reflected to the outside, and the data security is improved. By defining and marking the attributes stored in the storage unit and showing the attributes and the temporary storage positions of the attributes to the user, the problem that data storage is prone to errors caused by setting and storing data according to a database storage position mode of manually memorizing the attributes is solved, errors are reduced, and the accuracy of data storage is improved.
The above-described embodiments should not be construed as limiting the scope of the invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions can occur, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (18)

1. A method for storing data, applied to a server, includes:
acquiring data of attributes to be saved and temporary storage positions of the attributes to be saved;
inquiring the database storage positions of all the attributes according to the mapping relation between the temporary storage positions of all the attributes and the database storage positions and the temporary storage positions of the attributes to be stored;
and generating a control instruction according to the data of the attributes to be saved and the database storage positions of all the attributes, and sending the control instruction to the database.
2. The method of claim 1, further comprising: the method comprises the steps of establishing a mapping relation between temporary storage positions of all attributes and storage positions of a database in advance, wherein all the attributes comprise attributes to be stored and stored attributes;
inquiring the database storage positions of all the attributes according to the mapping relation between the temporary storage positions of all the attributes and the database storage position and the temporary storage positions of the attributes to be stored, wherein the method comprises the following steps:
inquiring the database storage position of the attribute to be stored according to the temporary storage position of the attribute to be stored and the mapping relation between the temporary storage position of the attribute to be stored and the database storage position;
and inquiring the database storage position of the stored attribute according to the database storage position of the attribute to be stored and the database storage positions of all the attributes.
3. The method of claim 2, wherein generating control instructions according to the data of the attributes to be saved and the database storage locations of all the attributes comprises:
and generating a control instruction according to the data of the attributes to be saved, the database storage position of the attributes to be saved and the database storage position of the saved attributes.
4. The method of claim 2, wherein pre-establishing a mapping relationship between the temporary storage locations of all attributes and the storage locations of the database comprises:
creating a storage device, defining and marking the attribute stored in each storage unit in the storage device, and taking the position relation of each storage unit relative to the storage device as the temporary storage position of the attribute;
acquiring a database storage position of each attribute, and establishing a mapping relation between the temporary storage positions of all the attributes and the database storage position according to the corresponding relation between the temporary storage position of each attribute and the database storage position;
the defined and marked storage device is sent to the user terminal.
5. The method of claim 4, wherein after sending the defined and marked storage device to the user terminal, the method further comprises:
and receiving a storage device returned by the user terminal, wherein the returned storage device comprises data of the attribute to be stored and a temporary storage position of the attribute to be stored.
6. A method for storing data, applied to a database, comprising:
receiving a control instruction, wherein the control instruction comprises data of attributes to be stored and database storage positions of all the attributes;
and saving the data of the attributes to be saved according to the database storage positions of all the attributes.
7. The method of claim 6, wherein the database storage locations for all attributes comprise a database storage location for an attribute to be saved and a database storage location for a saved attribute;
saving the data of the attributes to be saved according to the database storage positions of all the attributes, wherein the step of saving the data of the attributes to be saved comprises the following steps:
acquiring the data of the saved attributes according to the database storage position of the saved attributes;
sorting the data of the stored attributes and the data of the attributes to be stored according to the position relation between the storage positions of the database of the stored attributes and the storage positions of the database of the attributes to be stored to obtain an array;
saving the array after splicing.
8. The method of claim 7, wherein saving the concatenated array comprises:
splicing the arrays into a new character string;
the new character string replaces an original character string stored in the database.
9. An apparatus for storing data, applied to a server, comprising:
the device comprises an acquisition unit, a storage unit and a processing unit, wherein the acquisition unit is used for acquiring data of attributes to be stored and temporary storage positions of the attributes to be stored;
the query unit is used for querying the database storage positions of all the attributes according to the mapping relation between the temporary storage positions of all the attributes and the database storage positions and the temporary storage positions of the attributes to be stored;
and the processing unit is used for generating a control instruction according to the data of the attributes to be saved and the database storage positions of all the attributes, and sending the control instruction to the database.
10. The apparatus of claim 9, further comprising:
the device comprises a setting unit, a storage unit and a processing unit, wherein the setting unit is used for pre-establishing the mapping relation between the temporary storage positions of all attributes and the storage positions of a database, and all attributes comprise attributes to be stored and stored attributes;
the query unit is specifically configured to:
inquiring the database storage position of the attribute to be stored according to the temporary storage position of the attribute to be stored and the mapping relation between the temporary storage position of the attribute to be stored and the database storage position;
and inquiring the database storage position of the stored attribute according to the database storage position of the attribute to be stored and the database storage positions of all the attributes.
11. The apparatus according to claim 10, wherein the processing unit is specifically configured to:
and generating a control instruction according to the data of the attributes to be saved, the database storage position of the attributes to be saved and the database storage position of the saved attributes.
12. The apparatus according to claim 10, wherein the setting unit is specifically configured to:
creating a storage device, defining and marking the attribute stored in each storage unit in the storage device, and taking the position relation of each storage unit relative to the storage device as the temporary storage position of the attribute;
acquiring a database storage position of each attribute, and establishing a mapping relation between the temporary storage positions of all the attributes and the database storage position according to the corresponding relation between the temporary storage position of each attribute and the database storage position;
the defined and marked storage device is sent to the user terminal.
13. The apparatus according to claim 12, wherein the obtaining unit is further configured to:
and receiving a storage device returned by the user terminal, wherein the returned storage device comprises data of the attribute to be stored and a temporary storage position of the attribute to be stored.
14. An apparatus for storing data, applied to a database, comprising:
the receiving unit is used for receiving a control instruction, wherein the control instruction comprises data of attributes to be stored and database storage positions of all the attributes;
and the saving unit is used for saving the data of the attributes to be saved according to the database storage positions of all the attributes.
15. The apparatus of claim 14, wherein the database storage locations for all attributes comprise a database storage location for an attribute to be saved and a database storage location for a saved attribute;
the storage unit is specifically configured to:
acquiring the data of the saved attributes according to the database storage position of the saved attributes;
sorting the data of the stored attributes and the data of the attributes to be stored according to the position relation between the storage positions of the database of the stored attributes and the storage positions of the database of the attributes to be stored to obtain an array;
saving the array after splicing.
16. The apparatus according to claim 15, wherein the saving unit is further configured to:
splicing the arrays into a new character string;
the new character string replaces an original character string stored in the database.
17. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-8.
18. A computer-readable medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1-8.
CN201811472945.8A 2018-12-04 2018-12-04 Method and device for storing data Active CN111274586B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811472945.8A CN111274586B (en) 2018-12-04 2018-12-04 Method and device for storing data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811472945.8A CN111274586B (en) 2018-12-04 2018-12-04 Method and device for storing data

Publications (2)

Publication Number Publication Date
CN111274586A true CN111274586A (en) 2020-06-12
CN111274586B CN111274586B (en) 2024-04-05

Family

ID=71001301

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811472945.8A Active CN111274586B (en) 2018-12-04 2018-12-04 Method and device for storing data

Country Status (1)

Country Link
CN (1) CN111274586B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103023978A (en) * 2012-11-20 2013-04-03 青岛海信传媒网络技术有限公司 Application property information synchronization method and system with application aggregation platform
CN105718515A (en) * 2016-01-14 2016-06-29 神策网络科技(北京)有限公司 Data storage system and method and data analysis system and method
WO2017092470A1 (en) * 2015-12-01 2017-06-08 中兴通讯股份有限公司 Data storage method and device
CN107038207A (en) * 2017-02-20 2017-08-11 阿里巴巴集团控股有限公司 A kind of data query method, data processing method and device
CN108388598A (en) * 2018-02-01 2018-08-10 平安科技(深圳)有限公司 Electronic device, date storage method and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103023978A (en) * 2012-11-20 2013-04-03 青岛海信传媒网络技术有限公司 Application property information synchronization method and system with application aggregation platform
WO2017092470A1 (en) * 2015-12-01 2017-06-08 中兴通讯股份有限公司 Data storage method and device
CN105718515A (en) * 2016-01-14 2016-06-29 神策网络科技(北京)有限公司 Data storage system and method and data analysis system and method
CN107038207A (en) * 2017-02-20 2017-08-11 阿里巴巴集团控股有限公司 A kind of data query method, data processing method and device
CN108388598A (en) * 2018-02-01 2018-08-10 平安科技(深圳)有限公司 Electronic device, date storage method and storage medium

Also Published As

Publication number Publication date
CN111274586B (en) 2024-04-05

Similar Documents

Publication Publication Date Title
CN109976667B (en) Mirror image management method, device and system
CN109388626B (en) Method and apparatus for assigning numbers to services
CN108011949B (en) Method and apparatus for acquiring data
CN107918617B (en) Data query method and device
CN107656748B (en) Application publishing method and device
CN111752960B (en) Data processing method and device
CN111126948A (en) Processing method and device for approval process
CN111782235A (en) Data upgrading and querying method and device
CN109960212B (en) Task sending method and device
CN112597126A (en) Data migration method and device
CN113190517B (en) Data integration method and device, electronic equipment and computer readable medium
CN114817146A (en) Method and device for processing data
CN108833147B (en) Configuration information updating method and device
US20230206756A1 (en) Method and system of controlling traffic lighting apparatus, electronic device and storage medium
CN115905322A (en) Service processing method and device, electronic equipment and storage medium
CN113076343B (en) Data query method, device, equipment and storage medium
CN111274586B (en) Method and device for storing data
CN115102948A (en) Automatic downloading method, device and equipment of map tiles and storage medium
CN110704481A (en) Method and device for displaying data
CN110109919B (en) Method and device for determining logic information
CN112711572A (en) Online capacity expansion method and device suitable for sub-warehouse and sub-meter
CN113127416A (en) Data query method and device
CN113704242A (en) Data processing method and device
CN110851192A (en) Method and device for responding to configuration of degraded switch
CN112559001A (en) Method and device for updating application

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