CN111931003A - Object management method and device, computer equipment and storage medium - Google Patents

Object management method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN111931003A
CN111931003A CN202010633829.0A CN202010633829A CN111931003A CN 111931003 A CN111931003 A CN 111931003A CN 202010633829 A CN202010633829 A CN 202010633829A CN 111931003 A CN111931003 A CN 111931003A
Authority
CN
China
Prior art keywords
version
information
identification information
latest version
latest
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.)
Pending
Application number
CN202010633829.0A
Other languages
Chinese (zh)
Inventor
吴香安
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Tatfook Network Tech Co Ltd
Original Assignee
Shenzhen Tatfook Network Tech Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Tatfook Network Tech Co Ltd filed Critical Shenzhen Tatfook Network Tech Co Ltd
Priority to CN202010633829.0A priority Critical patent/CN111931003A/en
Publication of CN111931003A publication Critical patent/CN111931003A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/901Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types

Landscapes

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

Abstract

The application discloses an object management method, an object management device, computer equipment and a storage medium, wherein the management method comprises the following steps: receiving the latest version information of the object, and generating latest version path information according to the latest version information; acquiring an index value of an object, and acquiring the last version identification information of the object according to the index value; generating latest version identification information according to the latest version path information and the last version identification information; storing the latest version information according to the latest version path information, storing the latest version path information and the last version identification information according to the latest version identification information, and storing the latest version identification information according to the index value. By the mode, the latest version information and the historical version information of the object can be associated layer by layer, and the historical version of the object can be traced and managed.

Description

Object management method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of computer information storage technologies, and in particular, to an object management method and apparatus, a computer device, and a storage medium.
Background
With the rapid development of computer technology, the internet industry has emerged, the amount of information data is larger and larger, data iteration is more and more frequent, in order to realize rapid storage and reading of data files, a user can select an object storage system to store the data, but object storage usually adopts a hash value obtained by a first-level hash algorithm as a storage path of object storage to store, and each different version data of a storage object is independently stored in an object storage device, so that traceability and management of a historical version of the object cannot be realized.
Disclosure of Invention
In order to solve the above technical problem, the present application provides an object management method, an object management apparatus, a computer device, and a storage medium, which can implement traceability and management of an object history version.
In a first aspect, the present application provides an object management method, including: receiving the latest version information of the object, and generating latest version path information according to the latest version information; acquiring an index value of an object, and acquiring the last version identification information of the object according to the index value; generating latest version identification information according to the latest version path information and the last version identification information; storing the latest version information according to the latest version path information, storing the latest version path information and the last version identification information according to the latest version identification information, and storing the latest version identification information according to the index value.
The step of generating the latest path information according to the latest version information includes: and calculating the latest version information by adopting a hash algorithm to generate a corresponding hash value as the latest path information.
And the index value and the object are in unique corresponding relation.
The step of storing the latest version identification information according to the index value includes: and taking the index value as a storage path, and storing the latest version identification information by covering the last version identification information.
The step of generating the latest version identification information according to the latest path information and the last version identification information includes: and calculating the latest path information by adopting a hash algorithm to generate a corresponding hash value as the latest version identification information.
The management method further comprises the following steps: and receiving a specified version information reading request of the object, and sending the specified version information to the client.
The method comprises the following steps of receiving a request for reading the specified version information of an object and sending the specified version information to a client, wherein the step comprises the following steps: acquiring the latest version identification information of the object according to the index value; acquiring the last version identification information of the object according to the latest version identification information, and repeating the steps until the specified version identification information of the object is acquired; acquiring path information of the specified version according to the identification information of the specified version; and acquiring the specified version information according to the specified version path information, and sending the specified version information to the client.
In a second aspect, the present application provides an object management apparatus, comprising: the path information generating module is used for receiving the latest version information of the object and generating the latest version path information according to the latest version information; the acquisition module is used for acquiring an index value of the object and acquiring the last version identification information of the object according to the index value; the identification information generating module is used for generating latest version identification information according to the latest version path information and the last version identification information; and the storage module is used for storing the latest version information according to the latest version path information, storing the latest version path information and the last version identification information according to the latest version identification information, and storing the latest version identification information according to the index value.
In a third aspect, the present application is directed to a computer device comprising a memory and a processor coupled to the memory;
wherein the memory is used for storing a computer program, and the processor is used for executing the computer program and realizing the object management method when executing the computer program.
In a fourth aspect, the present application proposes a computer storage medium for storing a computer program which, when executed by a processor, is adapted to implement the object management method described above.
The beneficial effect of this application is: different from the situation of the prior art, the method comprises the steps of receiving the latest version information of the object, generating the latest version path information according to the latest version information, obtaining the index value of the object, and obtaining the last version identification information of the object according to the index value; generating latest version identification information according to the latest version path information and the last version identification information; storing the latest version information according to the latest version path information, storing the latest version path information and the last version identification information according to the latest version identification information, and storing the latest version identification information according to the index value. By constructing the version identification information, the latest version information and the historical version information of the object can be associated layer by layer, and the traceability and management of the historical version of the object are realized.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic flowchart of an embodiment of an object management method provided in the present application;
FIG. 2a is a schematic view of a display interface for reading the subject application;
FIG. 2b is another schematic view of a display interface for reading the subject application;
fig. 3 is a flowchart illustrating an embodiment of an object version information reading step in the object management method provided in the present application;
FIG. 4 is a diagram illustrating an embodiment of an object storage process in the object management method provided in the present application;
FIG. 5 is a diagram illustrating an embodiment of an object reading process in the object management method provided in the present application;
FIG. 6 is a schematic structural diagram of an embodiment of an object management apparatus provided in the present application;
FIG. 7 is a schematic block diagram of an embodiment of a computer apparatus of the present application;
FIG. 8 is a schematic structural diagram of an embodiment of a computer storage medium according to the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The flow diagrams depicted in the figures are merely illustrative and do not necessarily include all of the elements and operations/steps, nor do they necessarily have to be performed in the order depicted. For example, some operations/steps may be decomposed, combined or partially combined, so that the actual execution sequence may be changed according to the actual situation. In addition, although the division of the functional blocks is made in the device diagram, in some cases, it may be divided in blocks different from those in the device diagram.
The application provides an object management method, an object management device, computer equipment and a storage medium, which can be applied to the technical field of object storage. The execution main body of the object management method in the embodiment of the application may be an object management device, and the object management device may be arranged at a terminal or a server side in an object management system, where the terminal may be an electronic device such as a notebook computer, a desktop computer, a personal digital assistant, and the like; the servers may be independent servers or server clusters.
Referring to fig. 1, fig. 1 is a schematic flowchart of an embodiment of an object management method provided in the present application, which specifically includes the following steps:
s11: and receiving the latest version information of the object, and generating latest version path information according to the latest version information.
Specifically, the object is data content that a user needs to store, the object is a discrete data unit, and may exist in the form of a file, a document, audio, video, or a picture, the object may have multiple versions, according to the storage sequence, the version stored for the first time is an initial version, the version currently needing to be stored is a latest version, and the version information includes information such as version content, version number, object name, and the like.
When a user accesses an object storage system through an application program or a webpage on a terminal device to store the latest version of an object, an object management device receives the latest version information and generates a corresponding unique identifier according to the latest version information, and the unique identifier can be used as storage path information to store the latest version information, namely, the actual storage path of the latest version information can be obtained through the path information, so that the latest version information of the object can be obtained.
In some embodiments, generating the latest version path information from the latest version information may include: and calculating the latest version information by adopting a hash algorithm to generate a corresponding hash value as the latest version path information.
Specifically, the object management apparatus may map the latest version information to a unique numerical value, i.e., a hash value, by using a hash algorithm, and use the unique hash value as the storage path information of the latest version information. The hash values calculated by the hash algorithm for different version information are different, so that path information uniquely corresponding to the version information can be obtained by the hash algorithm for each different version information. The hash algorithm may be, but is not limited to, MD4, MD5, and SHA-1.
S12: and acquiring an index value of the object, and acquiring the last version identification information of the object according to the index value.
In a specific embodiment, the index value of the object and the object are in a unique corresponding relationship, and the version information of the object can be searched and acquired through the index value. Specifically, when the user uploads the initial version of the object for the first time, the object management device receives the initial version information of the object, and generates the index value of the object according to the initial version information of the object. In some embodiments, the index value may be a string of data or a character string customized by the user, and may be stored as the version identification information storage path of the object. For example, when a user uploads an object for the first time, the user customizes to input a string of data, and the data can be used as an index value of the object. In another embodiment, the index value may also be a numeric value or a character string generated by the object storage device according to the initial version information of the object, for example, after the user uploads the initial version of the object, the object storage device receives the initial version of the object, generates a corresponding string of data as the index value according to the object and returns the string of data to the user, and when the new version information of the object needs to be stored again next time, the index value is still used as the storage path to store the new version identification information of the object. Therefore, when the user stores the latest version of the object, the last version identification information of the object can be obtained according to the index value by obtaining the index value of the object.
S13: and generating the latest version identification information according to the latest version path information and the last version identification information.
And after the last version identification information of the object is acquired, generating the latest version identification information according to the latest version path information and the last version identification information. It should be noted that, when the user uploads the initial version of the object, the step of generating the initial version identification information is to generate the initial version identification information according to the initial version path information because the previous version identification information is empty.
In some embodiments, generating the latest version identification information from the latest version path information and the last version identification information may include: and calculating the path information of the latest version and the identification information of the previous version by adopting a hash algorithm to generate a corresponding hash value as the identification information of the latest version.
S14: storing the latest version information according to the latest version path information, storing the latest version path information and the last version identification information according to the latest version identification information, and storing the latest version identification information according to the index value.
Specifically, the latest version information is stored by taking the latest version path information as a storage path, the latest version identification information is stored by taking the latest version identification information as the storage path, and the latest identification information is stored by taking an index value as the storage path.
In some embodiments, the step of storing the latest version identification information according to the index value includes: and taking the index value as a storage path, and storing the latest version identification information by covering the last version identification information. For example, when the second version identification information is stored, the original version identification information that has been previously stored under the index value is deleted, and the second version identification information is stored under this storage path.
In some embodiments, the step of storing the latest version path information and the previous version identification information according to the latest version identification information may be to directly store the latest version path information and the previous version identification information by using the latest version identification information as a storage path, or may be to generate a data table when the latest version identification information is generated according to the latest version path information and the previous version identification information, and store the latest version path information and the previous version identification information in the data table corresponding to the latest version identification information, so as to query by using the latest version identification information as a query identifier, thereby obtaining the latest version path information and the previous version identification information.
The above steps are explained below by a specific example.
When a user uploads an object for the first time, the object storage device receives initial version information of the object, generates an index value uniquely corresponding to the object, generates initial version path information according to the initial version information, generates initial version identification information according to the initial version path information, stores the initial version information of the object by taking the initial version path information as a storage path, stores the initial version path information by taking the initial version identification information as the storage path, and stores the initial version identification information by taking the index value as the storage path.
When the user uploads the object for the second time, the object storage device receives second version information of the object, generates second version path information according to the second version information, obtains initial version identification information by obtaining an index value, generates second version identification information according to the second version path information and the initial version identification information, and finally stores the second version information of the object by taking the second version path information as a storage path, stores the second version path information and the first version identification information by taking the second version identification information as the storage path, and stores the second version identification information by taking the index value as the storage path.
And analogizing in sequence, when the user uploads the object for the Nth time, the object storage device receives the Nth version information of the object, generates the Nth path information according to the Nth version information, obtains the N-1 th identification information by obtaining the index value, generates the Nth identification information according to the Nth path information and the N-1 th identification information, finally stores the Nth version information of the object by taking the Nth version path information as the storage path, stores the Nth version path information and the N-1 th version identification information by taking the Nth version identification information as the storage path, and stores the Nth version identification information by taking the index value as the storage path, wherein N is a natural number greater than 1.
The object management method disclosed by the embodiment of the application comprises the following steps: receiving the latest version information of the object, generating the latest version path information according to the latest version information, acquiring the index value of the object, and acquiring the last version identification information of the object according to the index value; generating latest version identification information according to the latest version path information and the last version identification information, and storing the latest version information according to the latest version path information; and storing the latest version identification information according to the index value. By the method, the latest version information and the historical version information of the object are associated layer by layer in a multi-level linear file index (namely version identification information), the whole storage history of the object can be recorded, and the traceability and management of the historical version of the object are realized.
Based on the object management method in the foregoing embodiment, the version information of the object may be stored, and in order to quickly read the historical version information of the object, in some embodiments, the object management method provided in the present application further includes an object version information reading step: and receiving a specified version information reading request of the object, and sending the specified version information to the client.
Specifically, when a user accesses the object storage system through an application program or a web page on the terminal device and needs to read the specified version information of the object, the user can determine the specified version information of the object to be read by clicking the display content on the terminal device, so as to send a read request to the object management device, and correspondingly, the object management device receives the read request and sends the specified version information to the client through request analysis and data reading.
Referring to fig. 2a, fig. 2a is a schematic view of a display interface for reading an object provided by the present application.
As shown in fig. 2a, the display interface 20 includes a forward button 21 and a backward button 22, the display interface currently displays the version information of the latest version, when the user clicks the forward button 21, the version information of the current version is overwritten by the version information of the previous version, only the version information of the previous version of the current version is displayed, and the user clicks the backward button 22 to display only the version information of the next version of the current version. The version information is, for example, a version number, a file name and size of the version information, a storage time, and the like. Therefore, the user can display the version information needing to be read on the display interface by clicking the corresponding button for a plurality of times, and then determines the version information as the specified version information by clicking the version information, and sends the read request of the specified version information to the object management device.
For example, in fig. 2a, the version information of the latest version includes version number: version 11, filename of version information: my 11 year-old birthday, version information is 150 mega (M) in size, and the user clicking on the forward button 21 may display version information of version 10, which includes version number: version 10, filename of version information: the size of the version information of my 10 year-old birthday is 100 megabytes (M), the version information of the 11 th version is covered by the version information of the 10 th version, the version information of the 10 th version can be covered by clicking the back button 22 by a user, the version information of the 11 th version is displayed, and the like, the version information of the 2 nd version can be determined as the specified version information by clicking the version information of the 2 nd version by the user.
Referring to fig. 2b, fig. 2b is another schematic view of a display interface for reading an object provided by the present application.
As shown in fig. 2b, after the user clicks the forward button, the version information of the current version is not covered by the version information of the previous version, but is displayed together with the version information of the previous version, for example, the version information of a plurality of versions including the latest version is sequentially displayed in the order of versions, and similarly, after the user clicks the backward button, the version information of the current version is not covered by the version information of the next version.
In other embodiments, all the historical version information of the object may be displayed on the display interface or displayed in a page turning manner, and the user may select the historical version information.
Referring to fig. 3, fig. 3 is a schematic flowchart of an embodiment of an object version information reading step in the object management method provided in the present application, which specifically includes the following steps:
s351: a request to read specified version information of an object is received.
Specifically, the object management device receives a request for reading information of a specified version of an object, analyzes the request, and obtains a version number and an index value of the specified version of the object through analysis.
S352: and acquiring the latest version identification information of the object according to the index value.
The object management device performs query according to the index value, and can obtain the latest version identification information of the object.
Specifically, since the latest version identification information of the object is stored using the index value as a storage path in the past, the object management apparatus can read the latest version identification information of the object using the index value as a read path when the object is read.
S353: and acquiring the last version identification information of the object according to the latest version identification information, and repeating the steps until the specified version identification information of the object is acquired.
Specifically, since the latest version identification information is generated according to the latest version path information and the previous version identification information, and the latest version path information and the previous version identification information are stored with the latest version identification information as a storage identifier, when the object is read, the object management device may further acquire the previous version identification information of the object according to the latest version identification information, and so on, and repeat the step of acquiring the previous version identification information until the specified version identification information of the object is acquired or the previous version identification information is empty.
For example, the version stored in the object storage system is the fifth version, and the object that the user needs to read is the content of the third version, the object management apparatus obtains the fourth version identification information of the object according to the fifth version identification information, and then continues to obtain the third version identification information of the object according to the fourth version identification information until the third version identification information is obtained.
S354: and acquiring the path information of the specified version according to the identification information of the specified version.
Specifically, since the latest version identification information is generated according to the latest version path information and the previous version identification information, and the latest version path information and the previous version identification information are stored with the latest version identification information as a storage identifier, the object management apparatus can acquire the specified version path information according to the specified version identification information when the object is read.
S355: and acquiring the specified version information according to the specified version path information, and sending the specified version information to the client.
Specifically, since the specified version information is stored with the specified version path information as the storage path in the object storage operation, the object management apparatus may acquire the specified version information from the specified version path information and transmit the specified version information to the client when the object is read.
In some embodiments, when the user determines that the specified version information of the object needs to be read, the user may select to read only the specified version information, and ignore the other version information not to be read, in the information reading process in this mode, the object management device does not read the specified version information according to the specified version path information until the specified version identification information is read, and the other specified version information is not read. According to the embodiment, only the specified version information is read, so that other historical version information of the read object is avoided, the reading amount can be reduced, and the reading speed of the version information is improved.
In other embodiments, when the user determines that the specified version information of the object needs to be read, the user may select to read the specified version information and other version information at the same time, and in the information reading process in this mode, the object management device may obtain the current version path information while obtaining the previous version identification information according to the current version identification information, and may obtain different version information according to different version path information, so that when the specified version identification information is not read, in each process of sequentially querying the previous version identification information, the step of reading the current version information according to the current version path information that is obtained at the same time is performed. According to the embodiment, the user can read all historical version information including the specified version to the latest version of the object at one time, and the historical version query and reading efficiency is improved.
The object management method disclosed in the embodiment of the present application further includes an object version information reading step on the basis of the stored object: receiving a specified version information reading request of an object, acquiring latest version identification information of the object according to an index value, acquiring last version identification information of the object according to the latest version identification information, and repeating the steps until the specified version identification information of the object is acquired, acquiring specified version path information according to the specified version identification information, acquiring the specified version information according to the specified version path information, and sending the specified version information to a client. According to the method, the latest version information and the historical version information of the object are associated layer by layer in the object storage mode of multi-level linear file indexes (namely version identification information), and the whole storage history of the object is recorded, so that the specified version information can be quickly read through the layer-by-layer indexes when the object is read, and the traceability and management of the historical version of the object are realized.
Referring to fig. 4, fig. 4 is a schematic diagram illustrating an object storage process in the object management method according to an embodiment of the present disclosure.
The object management device receives initial version information and an index value { value _1, Key } of an object uploaded by a user, calculates the value _1 by adopting a hash algorithm to obtain a unique corresponding hash value sha _1 as initial version path information, takes the Key as the index value corresponding to the object, can obtain previous version identification information of the object according to the Key, defaults the previous version identification information to be NULL because the version is the initial version of the object, calculates the sha _1 and the NULL by adopting the hash algorithm to obtain the unique corresponding hash value commit sha _1 as latest version identification information, stores the value _1 by taking the sha _1 as a storage path, stores the sha and the NULL by taking the commit sha _1 as the storage path, and stores the latest version identification information by taking the Key as the storage path.
The object management device receives second version information and an index value { value _2, Key } of an object uploaded by a user, calculates the value _2 by adopting a hash algorithm to obtain a uniquely corresponding hash value sha _2 as second version path information, acquires last version identification information commit _1 of the object according to Key, calculates the sha _2 and the commit sha _1 by adopting the hash algorithm to obtain the uniquely corresponding hash value commit sha _2 as latest version identification information, stores the value _2 by taking the sha _2 as a storage path, stores the sha _2 and the commit sha _1 by taking the commit _2 as a storage path, and stores the latest version identification information commit sha _2 by taking the Key as a storage path.
And analogizing in sequence, the object management device receives the N-th version information and the index value { value _ N, Key } of the object uploaded by the user, calculates the value _ N by adopting a hash algorithm to obtain a unique corresponding hash value sha _ N as the N-th version path information, acquires the last version identification information commit _ N-1 of the object according to Key, calculates the sha _ N and the commit _ N-1 by adopting the hash algorithm to obtain the unique corresponding hash value commit Sha _ N as the latest version identification information, stores the value _ N by taking the sha _ N as a storage path, stores the sha _ N and the commit Sha _ N-1 by taking the commit _ N as a storage path, and stores the latest version identification information by taking the Key as a storage path.
Referring to fig. 5, fig. 5 is a schematic diagram illustrating an embodiment of an object reading process in the object management method according to the present application.
The object management device receives a specified version information reading request of an object, acquires an index value key corresponding to the object, acquires N version identification information CommitSha _ N of the object according to the key, can read N version path information and N-1 version identification information { sha _ N, commit _ N-1} by taking the CommitSha _ N as a reading path, can read N version information value _ N according to sha _ N, or can read N-1 version path information and N-2 version identification information { sha _ N-1 and commit _ N-2} by taking the CommitSha _ N-1 as a reading path, can read N-1 version information value _ N-1 according to sha _ N-1, or can continue reading according to the commit _ Sha _ N-2, and so on, can read initial version identification information commit _1, and can read initial version identification information { sha _1 and initial path information { commit _1 and commit _1 of the commit _ N-1 as a reading path NULL, reading the initial version information value _1 in sha _1, indicating that the initial version has been read currently in empty identification information because the initial version has no next version, and stopping reading the next version identification information.
Referring to fig. 6, fig. 6 is a schematic structural diagram of an embodiment of an object management device according to the present application.
In this embodiment, the object management apparatus 600 includes a path information generating module 601, an obtaining module 602, an identification information generating module 603, and a storage module 604.
The path information generating module 601 is configured to receive latest version information of an object, and generate latest version path information according to the latest version information; the obtaining module 602 is configured to obtain an index value of an object, and obtain previous version identification information of the object according to the index value; the identification information generating module 603 is configured to generate latest version identification information according to the latest version path information and the previous version identification information; the storage module 604 is configured to store the latest version information according to the latest version path information, and store the latest version identification information according to the index value.
In some embodiments, the path information generating module 601 is specifically configured to: and calculating the latest version information by adopting a hash algorithm to generate a corresponding hash value as the latest path information.
In some embodiments, the index value has a unique correspondence with the object.
In some embodiments, the storage module 604 is specifically configured to: and taking the index value as a storage path, and storing the latest version identification information by covering the last version identification information.
In some embodiments, the identification information generating module 603 is specifically configured to: and calculating the latest path information by adopting a hash algorithm to generate a corresponding hash value as the latest version identification information.
In some embodiments, the object management apparatus 600 further comprises a communication module for: and receiving a specified version information reading request of the object, and sending the specified version information to the client.
In some embodiments, the communication module is specifically configured to: acquiring the latest version identification information of the object according to the index value; acquiring the last version identification information of the object according to the latest version identification information, and repeating the steps until the specified version identification information of the object is acquired; acquiring path information of the specified version according to the identification information of the specified version; and acquiring the specified version information according to the specified version path information, and sending the specified version information to the client.
For the description of each module in the object management apparatus 600 of the present application, reference may be made to the corresponding location in the foregoing method embodiment, and details are not described here again.
Referring to fig. 7, fig. 7 is a schematic structural diagram of an embodiment of a computer apparatus according to the present application. In this embodiment, the computer device 700 includes a memory 701 and a processor 702 coupled to the memory 701; wherein the memory 701 is adapted to store a computer program, and the processor 702 is adapted to execute the computer program and to carry out the steps of any of the embodiments as described above when executing the computer program. The computer device 700 may be a server or a terminal device in the above-described method embodiments.
Processor 702 may also be referred to as a CPU (Central Processing Unit). The processor 702 may also be an integrated circuit chip having signal processing capabilities. The processor 702 may also be a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Referring to fig. 8, fig. 8 is a schematic structural diagram of an embodiment of a computer storage medium according to the present application, in which a computer storage medium 800 is used to store a computer program 801, and the computer program 801 is used to implement the steps of any of the above embodiments when being executed by a processor.
The computer storage medium 800 may be a medium that can store the computer program 801, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk, or may be a server that stores the computer program 801, and the server may transmit the stored computer program 801 to another device for operation or may self-operate the stored computer program 801.
The above description is only an example of the present application and is not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings, or which are directly or indirectly applied to other related technical fields, are intended to be included within the scope of the present application.

Claims (10)

1. An object management method, characterized in that the management method comprises:
receiving the latest version information of an object, and generating latest version path information according to the latest version information;
acquiring an index value of the object, and acquiring the last version identification information of the object according to the index value;
generating latest version identification information according to the latest version path information and the last version identification information;
storing the latest version information according to the latest version path information, storing the latest version path information and the last version identification information according to the latest version identification information, and storing the latest version identification information according to the index value.
2. The method of claim 1, wherein the step of generating the latest path information according to the latest version information comprises:
and calculating the latest version information by adopting a hash algorithm to generate a corresponding hash value as the latest path information.
3. The method of claim 1, wherein the index value has a unique correspondence with the object.
4. The method according to claim 1, wherein the step of storing the latest version identification information according to the index value comprises:
and with the index value as a storage path, storing the latest version identification information in a manner of covering the last version identification information.
5. The method according to claim 1, wherein the step of generating the latest version identification information based on the latest path information and the last version identification information comprises:
and calculating the latest path information by adopting a hash algorithm to generate a corresponding hash value as the latest version identification information.
6. The method of claim 1, wherein the managing method further comprises: and receiving a specified version information reading request of the object, and sending specified version information to the client.
7. The method according to claim 6, wherein the step of receiving a read request for the specified version information of the object and sending the specified version information to the client comprises:
acquiring the latest version identification information of the object according to the index value;
acquiring the last version identification information of the object according to the latest version identification information, and repeating the steps until the specified version identification information of the object is acquired;
acquiring the path information of the specified version according to the identification information of the specified version;
and acquiring the specified version information according to the specified version path information, and sending the specified version information to the client.
8. An object management apparatus, comprising
The path information generating module is used for receiving the latest version information of the object and generating the latest version path information according to the latest version information;
the acquisition module is used for acquiring an index value of the object and acquiring the last version identification information of the object according to the index value;
the identification information generating module is used for generating latest version identification information according to the latest version path information and the last version identification information;
and the storage module is used for storing the latest version information according to the latest version path information, storing the latest version path information and the last version identification information according to the latest version identification information, and storing the latest version identification information according to the index value.
9. A computer device, comprising a memory and a processor coupled to the memory;
wherein the memory is adapted to store a computer program and the processor is adapted to execute the computer program and when executing the computer program to implement the object management method according to any of claims 1-7.
10. A computer storage medium for storing a computer program which, when executed by a processor, is adapted to implement the object management method of any one of claims 1-7.
CN202010633829.0A 2020-07-02 2020-07-02 Object management method and device, computer equipment and storage medium Pending CN111931003A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010633829.0A CN111931003A (en) 2020-07-02 2020-07-02 Object management method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010633829.0A CN111931003A (en) 2020-07-02 2020-07-02 Object management method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111931003A true CN111931003A (en) 2020-11-13

Family

ID=73317278

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010633829.0A Pending CN111931003A (en) 2020-07-02 2020-07-02 Object management method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111931003A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113064886A (en) * 2021-03-04 2021-07-02 广州中国科学院计算机网络信息中心 Method for storing and managing identification resources

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160012070A1 (en) * 2014-07-08 2016-01-14 Netapp, Inc. Methods for managing a request to list previous versions of an object and devices thereof
CN108132965A (en) * 2017-11-23 2018-06-08 努比亚技术有限公司 A kind of approaches to IM, server, terminal and computer readable storage medium
CN110222500A (en) * 2019-06-14 2019-09-10 深圳前海微众银行股份有限公司 Method for edition management, device, equipment and computer readable storage medium
CN110865828A (en) * 2018-08-28 2020-03-06 成都鼎桥通信技术有限公司 Data upgrading method, device, equipment and computer readable storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160012070A1 (en) * 2014-07-08 2016-01-14 Netapp, Inc. Methods for managing a request to list previous versions of an object and devices thereof
CN108132965A (en) * 2017-11-23 2018-06-08 努比亚技术有限公司 A kind of approaches to IM, server, terminal and computer readable storage medium
CN110865828A (en) * 2018-08-28 2020-03-06 成都鼎桥通信技术有限公司 Data upgrading method, device, equipment and computer readable storage medium
CN110222500A (en) * 2019-06-14 2019-09-10 深圳前海微众银行股份有限公司 Method for edition management, device, equipment and computer readable storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113064886A (en) * 2021-03-04 2021-07-02 广州中国科学院计算机网络信息中心 Method for storing and managing identification resources
CN113064886B (en) * 2021-03-04 2023-08-29 广州中国科学院计算机网络信息中心 Method for storing and marking management of identification resource

Similar Documents

Publication Publication Date Title
Pardalos et al. Computational aspects of a branch and bound algorithm for quadratic zero-one programming
CN110347651B (en) Cloud storage-based data synchronization method, device, equipment and storage medium
US8645349B2 (en) Indexing structures using synthetic document summaries
US20110029581A1 (en) Load-Balancing and Scaling for Analytics Data
US20140164391A1 (en) Data block saving system and method
US20100332531A1 (en) Batched Transfer of Arbitrarily Distributed Data
US10990598B2 (en) Aggregating quantile metrics in multidimensional data sets
CN111083214A (en) Method, device, client, server and system for updating application software
CN111273863B (en) Cache management
CN111611622A (en) Block chain-based file storage method and electronic equipment
CN111522574B (en) Differential packet generation method and related equipment
CN111931003A (en) Object management method and device, computer equipment and storage medium
US10289619B2 (en) Data processing with streaming data
CN116842012A (en) Method, device, equipment and storage medium for storing Redis cluster in fragments
CN109271224B (en) Method and apparatus for determining position
Chang et al. Nonnegative quadratic Bézier triangular patches
CN116132448A (en) Data distribution method based on artificial intelligence and related equipment
CN113608688B (en) Data migration method, device, equipment and storage medium
CN113505153B (en) Memorandum backup method based on iOS system and related equipment
Mabe et al. Visualizing webpage changes over time
CN112597119A (en) Method and device for generating processing log and storage medium
Ugrin-Šparac Stochastic investigations of pseudo-random number generators
CN113411364A (en) Resource acquisition method and device and server
CN113448957A (en) Data query method and device
CN114629895B (en) File fragment breakpoint continuous transmission method, device, terminal equipment and medium

Legal Events

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