Information processing method and device, equipment and storage medium
By splitting the archival identifiers and updating the stored record information, the problem of low efficiency in archival information processing was solved, achieving efficient determination of archival storage results, reducing database operations, and ensuring the continuity and uniqueness of archives.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- CHINA CONSTRUCTION BANK
- Filing Date
- 2023-03-06
- Publication Date
- 2026-06-05
AI Technical Summary
Existing technologies for processing archival information require comparing archival identification fields one by one, resulting in low information processing efficiency, excessive database input/output operations, and impact on performance and time.
By splitting the file identifiers, we obtain the first identifier and the second identifier. We then use the information from the stored records to obtain the range and quantity of the identifiers and update the stored records as needed, thus reducing the need for database traversal and sorting.
It improves information processing efficiency, reduces database input/output operations, ensures the continuity and uniqueness of archive storage results, and avoids impacting database performance.
Smart Images

Figure CN116226182B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the fields of big data technology and financial technology, and in particular to an information processing method, apparatus, device, medium and program product. Background Technology
[0002] When processing archival information, to ensure the continuity of the stored archive identifiers, the process typically involves traversing the archive identifier fields in the database and then comparing each record's identifier field to sort the archive information. This method, because it requires comparing each archive identifier field individually, involves numerous database input / output operations, resulting in low information processing efficiency. Summary of the Invention
[0003] In view of the above problems, this disclosure provides an information processing method, apparatus, device, medium and program product.
[0004] According to one aspect of this disclosure, an information processing method is provided, comprising:
[0005] In response to receiving the identifier of the first file, the identifier of the first file is split according to a predetermined format to obtain a first identifier and a second identifier. The first identifier represents information about the target file set used to store the first file; the second identifier represents the storage order information of the first file within the target file set. Based on the first identifier, by querying storage record information, the first identifier range information and the first storage quantity information of files already stored in the target file set are obtained. If it is determined that the second identifier exceeds the first identifier range information, the first identifier range information and the first storage quantity information are modified according to the second identifier to obtain second identifier range information and second storage quantity information. Based on the second identifier range information and the second storage quantity information, storage result information is obtained.
[0006] According to embodiments of this disclosure, based on a first identifier, by querying storage record information, the first identifier range information and the first storage quantity information of files already stored in the target file set are obtained, including:
[0007] Based on the first identifier, the target file set and the first storage quantity information are determined by querying the stored record information. Based on the target file set, the range information of the first identifier is obtained.
[0008] According to embodiments of this disclosure, a first identifier range information is obtained based on a target file set, including:
[0009] By querying the stored record information, the minimum and maximum order identifiers of the stored files in the target file set are obtained. Based on the minimum and maximum order identifiers of the stored files, the first identifier range information is obtained.
[0010] According to embodiments of this disclosure, the above information processing method further includes: when it is determined that the first identifier does not exist in the stored record information, creating target stored record information corresponding to the first identifier based on the first identifier and the second identifier.
[0011] According to embodiments of this disclosure, the identifier range information includes a first minimum order identifier and a first maximum order identifier of the stored files. If it is determined that a second identifier exceeds the identifier range information, the first identifier range information and the first storage quantity information are modified based on the second identifier to obtain second identifier range information and second storage quantity information, including:
[0012] If the second identifier is less than the first minimum order identifier, it is determined that the second identifier exceeds the identifier range information. The second identifier range information is obtained based on the second identifier and the first maximum order identifier. The second storage quantity information is obtained based on the quantity information of the first file and the first storage quantity information.
[0013] According to embodiments of this disclosure, the information processing method further includes: determining that the second identifier exceeds the identifier range information when the second identifier is greater than the first sequence identifier; and obtaining the second identifier range information based on the second identifier and the first minimum sequence identifier.
[0014] According to embodiments of this disclosure, the second identifier range information includes a second minimum order identifier of the stored files and a second maximum order identifier of the stored files. Based on the second identifier range information and the second storage quantity information, storage result information is obtained, including:
[0015] The third storage quantity information is obtained based on the second minimum order identifier and the second maximum order identifier. If the third storage quantity information and the second storage quantity information are equal, the storage result is determined to be that the stored files have continuity.
[0016] According to embodiments of this disclosure, the above information processing method further includes:
[0017] Retrieve archive cache record information. Based on the first identifier and the second identifier range information, obtain the record information to be cached. If the record information to be cached does not exist in the archive cache record information, associate and store the first identifier with the second identifier range information.
[0018] Another aspect of this disclosure provides an information processing apparatus, comprising: a processing module, a query module, a modification module, and a first obtaining module. The processing module is configured to, in response to receiving an identifier of a first file, split the identifier of the first file according to a predetermined format to obtain a first identifier and a second identifier, wherein the first identifier represents information about a target file set for storing the first file; and the second identifier represents storage order information of the first file in the target file set. The query module is configured to, based on the first identifier, query storage record information to obtain first identifier range information and first storage quantity information of files already stored in the target file set. The modification module is configured to, if it is determined that the second identifier exceeds the first identifier range information, modify the first identifier range information and the first storage quantity information according to the second identifier to obtain second identifier range information and second storage quantity information. The first obtaining module is configured to obtain storage result information based on the second identifier range information and the second storage quantity information.
[0019] According to embodiments of this disclosure, the query module includes a first query unit and a first acquisition unit. The first query unit is used to determine a target file set and a first storage quantity information by querying stored record information based on a first identifier. The first acquisition unit is used to obtain first identifier range information based on the target file set.
[0020] According to embodiments of this disclosure, the first obtaining unit includes a first obtaining subunit and a second obtaining subunit. The first obtaining subunit is used to obtain the minimum order identifier and the maximum order identifier of the stored files in the target file set by querying stored record information. The second obtaining subunit is used to obtain first identifier range information based on the minimum order identifier and the maximum order identifier of the stored files.
[0021] According to an embodiment of this disclosure, the information processing apparatus further includes a creation module, configured to create target storage record information corresponding to the first identifier based on the first identifier and the second identifier when it is determined that the first identifier does not exist in the stored record information.
[0022] According to embodiments of this disclosure, the identification range information includes a first minimum order identifier and a first maximum order identifier of the stored files. The modification module includes a first determining unit, a second obtaining unit, and a third obtaining unit. The first determining unit is used to determine that the second identifier exceeds the identification range information if the second identifier is less than the first minimum order identifier. The second obtaining unit is used to obtain the second identification range information based on the second identifier and the first maximum order identifier. The third obtaining unit is used to obtain the second storage quantity information based on the quantity information of the first files and the first storage quantity information.
[0023] According to embodiments of this disclosure, the aforementioned modification module further includes a second determining unit and a fourth obtaining unit. The second determining unit is configured to determine that the second identifier exceeds the identifier range if the second identifier is greater than the first sequential identifier. The fourth obtaining unit is configured to obtain the second identifier range information based on the second identifier and the first minimum sequential identifier.
[0024] According to embodiments of this disclosure, the second identifier range information includes a second minimum order identifier and a second maximum order identifier of the stored files. The obtaining module includes a fifth obtaining unit and a third determining unit. The fifth obtaining unit is used to obtain third storage quantity information based on the second minimum order identifier and the second maximum order identifier. The third determining unit is used to determine that the stored files have continuity if the third storage quantity information and the second storage quantity information are equal.
[0025] According to embodiments of this disclosure, the information processing apparatus further includes: an acquisition module, a second acquisition module, and a storage module. The acquisition module is used to acquire archive cache record information. The second acquisition module is used to obtain record information to be cached based on a first identifier and a second identifier range information. The storage module is used to associate and store the first identifier with the second identifier range information when no cache record information to be stored exists in the archive cache record information.
[0026] Another aspect of this disclosure provides an electronic device comprising: one or more processors; and a memory for storing one or more programs, wherein, when the one or more programs are executed by the one or more processors, the one or more processors perform the methods described above.
[0027] Another aspect of this disclosure provides a computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, cause the processor to perform the methods described above.
[0028] Another aspect of this disclosure provides a computer program product including a computer program that, when executed by a processor, implements the methods described above.
[0029] According to the information processing method, apparatus, equipment, medium, and program products provided in this disclosure, the identifier of a first file is split according to a predetermined format to obtain a first identifier and a second identifier. By querying stored record information, the first identifier range information and the first storage quantity information of files already stored in the target file set are obtained based on the first identifier. Since the first identifier range represents the identifier range of the stored files, when the received second identifier of the first file exceeds the identifier range of the stored files, the stored first identifier range and the first storage quantity are updated in a timely manner. Then, the storage result of the stored files is determined using the updated storage quantity and the second identifier range. This at least partially solves the problem of low information processing efficiency caused by sorting all file identifiers one by one in related technologies, and realizes the technical effect of obtaining the storage result of stored files without sorting all file identifiers, effectively improving information processing efficiency and reducing the number of input / output operations performed on the database. Attached Figure Description
[0030] The foregoing contents, as well as other objects, features, and advantages of this disclosure, will become clearer from the following description of embodiments with reference to the accompanying drawings, in which:
[0031] Figure 1 The illustrations depict application scenarios of information processing methods, apparatuses, devices, media, and program products according to embodiments of the present disclosure.
[0032] Figure 2 A flowchart illustrating an information processing method according to an embodiment of the present disclosure is shown schematically.
[0033] Figure 3 A schematic diagram of a storage record information table according to an embodiment of the present disclosure is shown;
[0034] Figure 4 The illustration schematically shows a logical diagram of an information processing method according to an embodiment of the present disclosure;
[0035] Figure 5 The illustration shows a logical diagram of an information processing method according to other embodiments of the present disclosure;
[0036] Figure 6 A schematic block diagram of an information processing apparatus according to an embodiment of the present disclosure is shown; and
[0037] Figure 7 A block diagram schematically illustrates an electronic device suitable for implementing an information processing method according to an embodiment of the present disclosure. Detailed Implementation
[0038] The embodiments of the present disclosure will now be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the disclosure. In the following detailed description, numerous specific details are set forth to provide a thorough understanding of the embodiments of the present disclosure for ease of explanation. However, it will be apparent that one or more embodiments may be practiced without these specific details. Furthermore, descriptions of well-known structures and techniques are omitted in the following description to avoid unnecessarily obscuring the concepts of the present disclosure.
[0039] The terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit this disclosure. The terms “comprising,” “including,” etc., as used herein indicate the presence of the stated features, steps, operations, and / or components, but do not exclude the presence or addition of one or more other features, steps, operations, or components.
[0040] All terms used herein (including technical and scientific terms) have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein are to be interpreted in a manner consistent with the context of this specification, and not in an idealized or overly rigid way.
[0041] When using expressions such as "at least one of A, B, and C", they should generally be interpreted in accordance with the meaning that is commonly understood by a person skilled in the art (e.g., "a system having at least one of A, B, and C" should include, but is not limited to, a system having A alone, a system having B alone, a system having C alone, a system having A and B, a system having A and C, a system having B and C, and / or a system having A, B, and C, etc.).
[0042] In the technical solutions disclosed herein, the collection, storage, use, processing, transmission, provision, disclosure, and application of data (including but not limited to user personal information) comply with the provisions of relevant laws and regulations, necessary confidentiality measures have been taken, and they do not violate public order and good morals.
[0043] When archival management institutions process archival information received from different business systems, the timing of this information varies, resulting in mostly unordered archival identifiers for each batch of information to be processed. Therefore, it is essential to ensure the continuity and uniqueness of archived documents during the processing of archival information.
[0044] Faced with massive amounts of unordered archival information from different business systems, the traditional method is to first load the archival information to be archived into a temporary database table, and then sort the archival numbers in the temporary database table. Next, a database traversal loop is used to compare the previous archival number record with the next archival number record to determine whether the archival numbers are consecutive or duplicated.
[0045] This information processing method involves a large number of input / output operations to the database. As the amount of information to be processed increases, it not only affects the performance of the database, but also takes a long time to process the information.
[0046] In view of this, embodiments of the present disclosure provide an information processing method, comprising: in response to receiving an identifier of a first file, splitting the identifier of the first file according to a predetermined format to obtain a first identifier and a second identifier, wherein the first identifier represents information about a target file set used to store the first file; and the second identifier represents storage order information of the first file in the target file set. Based on the first identifier, by querying storage record information, obtaining first identifier range information and first storage quantity information of files already stored in the target file set. If it is determined that the second identifier exceeds the first identifier range information, modifying the first identifier range information and the first storage quantity information according to the second identifier to obtain second identifier range information and second storage quantity information. Based on the second identifier range information and the second storage quantity information, obtaining storage result information.
[0047] Figure 1 The diagram illustrates an application scenario of the information processing method according to an embodiment of the present disclosure.
[0048] like Figure 1 As shown, application scenario 100 according to this embodiment may include a first terminal device 101, a second terminal device 102, a third terminal device 103, a network 104, and a server 105. The network 104 serves as a medium for providing a communication link between the first terminal device 101, the second terminal device 102, the third terminal device 103, and the server 105. The network 104 may include various connection types, such as wired or wireless communication links, or fiber optic cables, etc.
[0049] Users can interact with server 105 via network 104 using at least one of the first terminal device 101, second terminal device 102, and third terminal device 103 to receive or send messages, etc. Various communication client applications can be installed on the first terminal device 101, second terminal device 102, and third terminal device 103, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social media platform software, etc. (for example only).
[0050] The first terminal device 101, the second terminal device 102, and the third terminal device 103 can be various electronic devices with displays and support web browsing, including but not limited to smartphones, tablets, laptops, and desktop computers.
[0051] Server 105 can be a server that provides various services, such as a backend management server that supports websites browsed by users using the first terminal device 101, the second terminal device 102, and the third terminal device 103 (this is just an example). The backend management server can analyze and process data such as received user requests, and feed back the processing results (such as web pages, information, or data obtained or generated according to user requests) to the terminal devices.
[0052] It should be noted that the information processing method provided in this embodiment can generally be executed by server 105. Correspondingly, the information processing apparatus provided in this embodiment can generally be located in server 105. The information processing method provided in this embodiment can also be executed by a server or server cluster that is different from server 105 and capable of communicating with the first terminal device 101, the second terminal device 102, the third terminal device 103, and / or server 105. Correspondingly, the information processing apparatus provided in this embodiment can also be located in a server or server cluster that is different from server 105 and capable of communicating with the first terminal device 101, the second terminal device 102, the third terminal device 103, and / or server 105.
[0053] It should be understood that Figure 1 The number of terminal devices, networks, and servers shown is merely illustrative. Depending on implementation needs, any number of terminal devices, networks, and servers can be included.
[0054] The following will be based on Figure 1 The described scene, through Figures 2-5 The information processing method of the disclosed embodiments will be described in detail.
[0055] Figure 2 A flowchart illustrating an information processing method according to an embodiment of the present disclosure is shown schematically.
[0056] like Figure 2 As shown, the information processing method of this embodiment 200 includes operations S210 to S240.
[0057] In operation S210, in response to receiving the identifier of the first file, the identifier of the first file is split according to a predetermined format to obtain a first identifier and a second identifier, wherein the first identifier represents the information of the target file set used to store the first file; and the second identifier represents the storage order information of the first file in the target file set.
[0058] In operation S220, based on the first identifier, the first identifier range information and the first storage quantity information of the files already stored in the target file set are obtained by querying the storage record information.
[0059] In operation S230, if it is determined that the second identifier exceeds the range information of the first identifier, the range information of the first identifier and the first storage quantity information are changed according to the second identifier to obtain the range information of the second identifier and the second storage quantity information.
[0060] In operation S240, storage result information is obtained based on the second identifier range information and the second storage quantity information.
[0061] According to embodiments of this disclosure, the identifier of the first file generally includes a record group number, a catalog number, and a file number. The record group number represents a unique identifier for the filing institution within the archives management institution. The files stored by the filing institution in the archives management institution may include multiple file sets, each file set belonging to a classification category. The catalog number represents the number of that classification category. Each file set may include multiple files, and each file is generally numbered sequentially to obtain a file number.
[0062] According to embodiments of this disclosure, the first identifier may include the archival group number and catalog number of the first file, and the second identifier may include the file number of the first file.
[0063] For example, in the file identifier "01-A0122-6", "01" represents the record group number, "A0122" represents the catalog number, and "6" represents the file number. If the file identifier is split, the first identifier is "01-A0122" and the second identifier is "6".
[0064] According to embodiments of this disclosure, the storage record information may store associated storage information of the archival number and the case file number.
[0065] Figure 3 A schematic diagram of a storage record information table according to an embodiment of the present disclosure is shown.
[0066] like Figure 3 As shown, the storage record information of this embodiment 300 may include four storage items: record number-catalog number, minimum case number, maximum case number, and quantity.
[0067] For example, in a storage record with record number-catalog number "01-A0122", the minimum file number can be "1", meaning that among the 5 files currently stored with record number-catalog number "01-A0122", the file with the smallest file number has a file number of "1", that is, the file identifier of the file with the smallest file number is "01-A0122-1". The file with the largest file number has a file number of "5", that is, the file identifier of the file with the largest file number is "01-A0122-5".
[0068] According to embodiments of this disclosure, based on a first identifier, by querying stored record information, the range information of the first identifier and the first storage quantity information of files already stored in the target file set are obtained. For example, the first identifier can be "01-A0122", and by querying such... Figure 3 The first identifier range obtained from the storage record information shown can be the identifier range of the case file number, i.e., "1 to 5", and the first storage quantity information can be "5".
[0069] For example, the identifier of the first file can be "01-A0122-6". After splitting, the first identifier obtained is "01-A0122", and the second identifier is "6". The second identifier "6" exceeds the range of the first identifier "1~5". The second identifier "6" can be used to replace the maximum value in the range of the first identifier "1~5" to obtain the range of the second identifier "1~6", and the first storage quantity information is changed from "5" to "6".
[0070] According to embodiments of this disclosure, storage result information can be obtained based on the second identifier range information and the second storage quantity information. For example, the second identifier range can be "1 to 6", and the second storage quantity information can be "6". Since the second identifier range represents the range of case file numbers corresponding to the record number-catalog number "01-A0122", the continuity of the stored files corresponding to the record number-catalog number "01-A0122" can be determined by whether the difference between the boundary values of the second identifier range plus 1 equals the second storage quantity information.
[0071] Since each time an identifier of a file is processed, the storage record information in the storage record table is modified accordingly, when the case number of the file identifier to be stored exceeds the identifier range of the case number in the storage record information, the boundary value of the identifier range of the case number is changed accordingly. After all files are loaded, the data in the storage record information table can be used to determine whether the stored files are consecutive, thus solving the problem of traversing and sorting the database in related technologies and improving information processing efficiency.
[0072] According to embodiments of this disclosure, the above operation S220 may include the following operations:
[0073] Based on the first identifier, the target file set and the first storage quantity information are determined by querying the stored record information. Based on the target file set, the range information of the first identifier is obtained.
[0074] For example: the first identifier could be "01-A0122", which can be queried as follows: Figure 3 The storage record information shown indicates that the target archive set is the archive set with record number "01" and catalog number "A0122".
[0075] According to embodiments of this disclosure, obtaining the first identifier range information based on the target file set may include the following operations:
[0076] By querying the stored record information, the minimum and maximum order identifiers of the stored files in the target file set are obtained. Based on the minimum and maximum order identifiers of the stored files, the first identifier range information is obtained.
[0077] For example, if the smallest file number of the currently stored files in the target file set is "1" and the largest file number is "6", the first identifier range information can be determined to be "1 to 6".
[0078] According to embodiments of this disclosure, by splitting the identifier of the first file and separating the case file number, which corresponds one-to-one with the number of files, from other identifiers, it is possible to simultaneously change the range of case file number identifiers and the number of files stored while reading each file identifier, so as to determine the continuity of stored files using the stored record information without having to sort all file identifiers.
[0079] According to embodiments of this disclosure, the above information processing method further includes: when it is determined that the first identifier does not exist in the stored record information, creating target stored record information corresponding to the first identifier based on the first identifier and the second identifier.
[0080] For example, the identifier of the first file could be "01-A0125-5". By splitting the identifier of the first file, we get the first identifier as "01-A0125" and the second identifier as "5". Through methods such as... Figure 3 The stored record information shown includes the following archive sets with the archival group number-catalog number: “01-A0122”, “01-A0123”, “01-A0124”, and “01-A0125”. “01-A0125” does not exist.
[0081] The target storage record information created based on the first and second identifiers can be: a record group number-catalog number of "01-A0125", a minimum case file number of "5", or a maximum case file number of "5". When the next record group number-catalog number of "01-A0125" is received, the case file number of the newly received record is compared with the currently stored case file number "5", and the storage record information for the record group number-catalog number of "01-A0125" is updated.
[0082] For example: The newly created target storage record information is a record number-catalog number of "01-A0125" and a minimum file number of "5". The newly received file with record number-catalog number of "01-A0125" has a file number of "3". The minimum file number can be changed to "3" and the maximum file number can be changed to "5".
[0083] According to embodiments of this disclosure, by creating target storage record information corresponding to the first identifier, the storage record information can be updated in real time when each file identifier to be stored is read.
[0084] According to embodiments of this disclosure, the identifier range information includes a first minimum order identifier and a first maximum order identifier of the stored files. If it is determined that the second identifier exceeds the identifier range information, the first identifier range information and the first storage quantity information are modified based on the second identifier to obtain the second identifier range information and the second storage quantity information. This can include the following operations:
[0085] If the second identifier is less than the first minimum order identifier, it is determined that the second identifier exceeds the identifier range information. The second identifier range information is obtained based on the second identifier and the first maximum order identifier. The second storage quantity information is obtained based on the quantity information of the first file and the first storage quantity information.
[0086] According to embodiments of this disclosure, the first maximum sequence identifier represents the maximum value of the case file number, and the first minimum sequence identifier represents the minimum value of the case file number.
[0087] For example, the identifier for the first file could be "01-A0123-3", such as... Figure 3 The minimum case file number in the storage record information shown is "6", the maximum case file number is "11", and the first storage quantity information is "6". The second identifier "3" is less than the minimum case file number "6". The minimum case file number in the storage record information can be changed to "3", while the maximum case file number remains unchanged. Then the range of the second identifier is "3 to 11".
[0088] Since the storage record information is processed once by reading the identifier of each file in this embodiment, the quantity information of the first file is 1. After changing the maximum or minimum value of the file number, 1 is added to the current storage quantity to obtain the second storage quantity information. For example, in the storage record information of the record number-catalog number "01-A0123", the first storage quantity information is "6", and after changing the maximum or minimum value of the file number, the second storage quantity information is "7".
[0089] If the second identifier is greater than the first sequence identifier, it is determined that the second identifier exceeds the identifier range information. The second identifier range information is obtained based on the second identifier and the first minimum sequence identifier.
[0090] For example, the identifier for the first file could be "01-A0123-13", such as... Figure 3 The minimum case file number in the shown storage record information is "6", the maximum case file number is "11", and the first storage quantity information is "6". The second identifier "13" is greater than the maximum case file number "11". Therefore, the maximum case file number in the storage record information can be changed to "13", while the minimum case file number remains unchanged. The range of the second identifier is then "6~13". The processing scheme for the first storage quantity information is as described above: after changing the maximum or minimum case file number, add 1 to the current storage quantity to obtain the second storage quantity information. This will not be elaborated upon further here.
[0091] According to embodiments of this disclosure, by comparing the case file number of each file with the identifier range of the case file number in the stored record information, the identifier range of the case file number is changed in real time, reducing the looping comparison process of file identifiers in traditional database traversal methods. Furthermore, the case file number comparison process in this disclosure embodiment is performed on cached stored record information, without involving input / output operations on database fields; therefore, it does not affect database performance.
[0092] According to embodiments of this disclosure, the second identifier range information includes the second minimum order identifier of the stored files and the second maximum order identifier of the stored files. Obtaining storage result information based on the second identifier range information and the second storage quantity information may include the following operations:
[0093] The third storage quantity information is obtained based on the second minimum order identifier and the second maximum order identifier. If the third storage quantity information and the second storage quantity information are equal, the storage result is determined to be that the stored files have continuity.
[0094] For example, if the second minimum sequence identifier can be "1" and the second maximum sequence identifier can be "104", then the third storage quantity information can be "104". By querying the storage record information, if the second storage quantity information is "104", it indicates that the stored files are continuous. If the second storage quantity information is not "104", it indicates that the stored files are not continuous.
[0095] Figure 4 The illustration shows a logical diagram of an information processing method according to an embodiment of the present disclosure.
[0096] like Figure 4As shown, this embodiment 400 includes operations S410 to S490.
[0097] In operation S410, in response to receiving the identifier of the first file, the identifier of the first file is split according to a predetermined format to obtain the first identifier and the second identifier.
[0098] In operation S420, based on the first identifier, the first identifier range information and the first storage quantity information of the files already stored in the target file set are obtained by querying the storage record information.
[0099] In operation S430, determine whether the second identifier exceeds the range of the first identifier. If yes, then execute operation S440. If not, then execute operation S450.
[0100] In operation S440, the first identifier range information and the first storage quantity information are changed according to the second identifier to obtain the second identifier range information and the second storage quantity information.
[0101] In operation S450, the first storage quantity information is changed to obtain the second identifier range information and the second storage quantity information.
[0102] In operation S460, the third storage quantity information is obtained based on the second minimum order identifier and the second maximum order identifier.
[0103] In operation S470, it is determined whether the second storage quantity information and the third storage quantity information are equal. If yes, operation S480 is executed; otherwise, operation S490 is executed.
[0104] In operation S480, it is determined that the stored files have continuity.
[0105] In operation S490, it was determined that the stored files do not have continuity.
[0106] According to embodiments of this disclosure, the information processing method further includes: obtaining archive cache record information; obtaining record information to be cached based on a first identifier and a second identifier range; and storing the first identifier and the second identifier range information in association if no record information to be cached exists in the archive cache record information.
[0107] According to embodiments of this disclosure, the archive cache record information can be a temporary record table established in the cache. After changing the first identifier range, it can be determined whether the archive identifier of the first archive is unique by determining whether there is archive cache record information containing the first identifier and the second identifier range information in the temporary record table. If it is determined that there is no cache record information to be stored in the archive cache record information, the first identifier and the second identifier range information are associated and stored in the archive cache record information.
[0108] For example: If there is a record in the archive cache record information: the record number of the archival group number is “01-A0122” and the identifier range is “1-6”, and the record information to be cached is: the record number of the archival group number is “01-A0122” and the identifier range is “1-5”, it means that the record does not exist in the archive cache record information, and the record can be stored in the archive cache record information.
[0109] Figure 5 The illustration shows a logical diagram of an information processing method according to other embodiments of the present disclosure.
[0110] like Figure 5 As shown, this embodiment 500 includes operations S510 to S590.
[0111] In operation S510, in response to receiving the identifier of the first file, the identifier of the first file is split according to a predetermined format to obtain the first identifier and the second identifier.
[0112] In operation S520, based on the first identifier, the first identifier range information and the first storage quantity information of the files already stored in the target file set are obtained by querying the storage record information.
[0113] In operation S530, determine whether the second identifier exceeds the range of the first identifier. If yes, then execute operation S540; otherwise, execute operation S550.
[0114] In operation S540, the first identifier range information and the first storage quantity information are changed according to the second identifier to obtain the second identifier range information and the second storage quantity information.
[0115] In operation S550, the first storage quantity information is changed to obtain the second identifier range information and the second storage quantity information.
[0116] During operation of S560, the information of the record to be cached is obtained based on the range information of the first identifier and the second identifier;
[0117] In operation S570, determine whether there is any cached record information to be stored in the file cache record information. If yes, then execute operation S580; otherwise, execute operation S590.
[0118] In operation S580, the range information of the first identifier and the second identifier are associated and stored.
[0119] When operating S590, a message indicating that the file identifier is duplicated appears.
[0120] According to embodiments of this disclosure, by utilizing archive cache record information and comparing the information to be cached with the information in the archive cache record, the uniqueness of the archive identifier in the stored archive set can be achieved.
[0121] Based on the above information processing method, this disclosure also provides an information processing apparatus. The following will be combined with... Figure 6 The device is described in detail.
[0122] Figure 6 A schematic block diagram of an information processing apparatus according to an embodiment of the present disclosure is shown.
[0123] like Figure 6 As shown, the information processing device 600 of this embodiment includes a processing module 610, a query module 620, a change module 630, and an acquisition module 640.
[0124] The processing module 610 is configured to, in response to receiving the identifier of the first file, split the identifier of the first file according to a predetermined format to obtain a first identifier and a second identifier, wherein the first identifier represents information about the target file set used to store the first file; and the second identifier represents the storage order information of the first file in the target file set. In one embodiment, the processing module 610 may be used to perform the operation S210 described above, which will not be repeated here.
[0125] The query module 620 is used to obtain the first identifier range information and the first storage quantity information of the files already stored in the target file set by querying the stored record information based on the first identifier. In one embodiment, the query module 620 can be used to perform the operation S220 described above, which will not be repeated here.
[0126] The modification module 630 is used to modify the first identifier range information and the first storage quantity information according to the second identifier when it is determined that the second identifier exceeds the range information of the first identifier, thereby obtaining the second identifier range information and the second storage quantity information. In one embodiment, the modification module 630 can be used to perform the operation S230 described above, which will not be repeated here.
[0127] The obtaining module 640 is used to obtain storage result information based on the second identifier range information and the second storage quantity information. In one embodiment, the obtaining module 640 can be used to perform the operation S240 described above, which will not be repeated here.
[0128] According to embodiments of this disclosure, the query module includes a first query unit and a first acquisition unit. The first query unit is used to determine a target file set and a first storage quantity information by querying stored record information based on a first identifier. The first acquisition unit is used to obtain first identifier range information based on the target file set.
[0129] According to embodiments of this disclosure, the first obtaining unit includes a first obtaining subunit and a second obtaining subunit. The first obtaining subunit is used to obtain the minimum order identifier and the maximum order identifier of the stored files in the target file set by querying stored record information. The second obtaining subunit is used to obtain first identifier range information based on the minimum order identifier and the maximum order identifier of the stored files.
[0130] According to an embodiment of this disclosure, the information processing apparatus further includes a creation module, configured to create target storage record information corresponding to the first identifier based on the first identifier and the second identifier when it is determined that the first identifier does not exist in the stored record information.
[0131] According to embodiments of this disclosure, the identification range information includes a first minimum order identifier and a first maximum order identifier of the stored files. The modification module includes a first determining unit, a second obtaining unit, and a third obtaining unit. The first determining unit is used to determine that the second identifier exceeds the identification range information if the second identifier is less than the first minimum order identifier. The second obtaining unit is used to obtain the second identification range information based on the second identifier and the first maximum order identifier. The third obtaining unit is used to obtain the second storage quantity information based on the quantity information of the first files and the first storage quantity information.
[0132] According to embodiments of this disclosure, the aforementioned modification module further includes a second determining unit and a fourth obtaining unit. The second determining unit is configured to determine that the second identifier exceeds the identifier range if the second identifier is greater than the first sequential identifier. The fourth obtaining unit is configured to obtain the second identifier range information based on the second identifier and the first minimum sequential identifier.
[0133] According to embodiments of this disclosure, the second identifier range information includes a second minimum order identifier and a second maximum order identifier of the stored files. The obtaining module includes a fifth obtaining unit and a third determining unit. The fifth obtaining unit is used to obtain third storage quantity information based on the second minimum order identifier and the second maximum order identifier. The third determining unit is used to determine that the stored files have continuity if the third storage quantity information and the second storage quantity information are equal.
[0134] According to embodiments of this disclosure, the information processing apparatus further includes: an acquisition module, a second acquisition module, and a storage module. The acquisition module is used to acquire archive cache record information. The second acquisition module is used to obtain record information to be cached based on a first identifier and a second identifier range information. The storage module is used to associate and store the first identifier with the second identifier range information when no cache record information to be stored exists in the archive cache record information.
[0135] According to embodiments of this disclosure, any plurality of modules among processing module 610, query module 620, change module 630, and obtain module 640 may be combined into one module, or any one of these modules may be split into multiple modules. Alternatively, at least part of the functionality of one or more of these modules may be combined with at least part of the functionality of other modules and implemented in one module. According to embodiments of this disclosure, at least one of processing module 610, query module 620, change module 630, and obtain module 640 may be at least partially implemented as hardware circuitry, such as a field-programmable gate array (FPGA), programmable logic array (PLA), system-on-a-chip, system-on-a-substrate, system-on-package, application-specific integrated circuit (ASIC), or any other reasonable means of integrating or packaging circuitry, or implemented in software, hardware, or firmware, or in any suitable combination of any of these three implementation methods. Alternatively, at least one of processing module 610, query module 620, change module 630, and obtain module 640 may be at least partially implemented as a computer program module, which, when run, can perform corresponding functions.
[0136] Figure 7 A block diagram schematically illustrates an electronic device suitable for implementing an information processing method according to an embodiment of the present disclosure.
[0137] like Figure 7 As shown, an electronic device 700 according to an embodiment of the present disclosure includes a processor 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage portion 908 into a random access memory (RAM) 703. The processor 701 may include, for example, a general-purpose microprocessor (e.g., a CPU), an instruction set processor and / or an associated chipset and / or a special-purpose microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 701 may also include onboard memory for caching purposes. The processor 701 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.
[0138] RAM 703 stores various programs and data required for the operation of electronic device 700. Processor 701, ROM 702, and RAM 703 are interconnected via bus 704. Processor 701 performs various operations of the method flow according to embodiments of the present disclosure by executing programs in ROM 702 and / or RAM 703. It should be noted that the programs may also be stored in one or more memories other than ROM 702 and RAM 703. Processor 701 may also perform various operations of the method flow according to embodiments of the present disclosure by executing programs stored in said one or more memories.
[0139] According to embodiments of this disclosure, the electronic device 700 may further include an input / output (I / O) interface 705, which is also connected to a bus 704. The electronic device 700 may also include one or more of the following components connected to the I / O interface 705: an input section 706 including a keyboard, mouse, etc.; an output section 907 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 708 including a hard disk, etc.; and a communication section 709 including a network interface card such as a LAN card, modem, etc. The communication section 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the I / O interface 705 as needed. A removable medium 711, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., is installed on the drive 710 as needed so that computer programs read from it can be installed into the storage section 708 as needed.
[0140] This disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or it may exist independently and not assembled into the device / apparatus / system. The computer-readable storage medium carries one or more programs that, when executed, implement the method according to the embodiments of this disclosure.
[0141] According to embodiments of this disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, such as including, but not limited to: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this disclosure, the computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. For example, according to embodiments of this disclosure, the computer-readable storage medium may include ROM 702 and / or RAM 703 and / or one or more memories other than ROM 702 and RAM 703 described above.
[0142] Embodiments of this disclosure also include a computer program product comprising a computer program containing program code for performing the methods shown in the flowchart. When the computer program product is run on a computer system, the program code is used to cause the computer system to implement the item recommendation method provided in the embodiments of this disclosure.
[0143] When the computer program is executed by the processor 701, it performs the functions defined in the system / apparatus of this disclosure embodiments. According to embodiments of this disclosure, the systems, apparatuses, modules, units, etc., described above can be implemented by computer program modules.
[0144] In one embodiment, the computer program may rely on a tangible storage medium such as an optical storage device or a magnetic storage device. In another embodiment, the computer program may also be transmitted and distributed in the form of signals over a network medium, and may be downloaded and installed via the communication section 709, and / or installed from a removable medium 711. The program code contained in the computer program can be transmitted using any suitable network medium, including but not limited to: wireless, wired, etc., or any suitable combination thereof.
[0145] In such an embodiment, the computer program can be downloaded and installed from a network via the communication section 709, and / or installed from the removable medium 711. When the computer program is executed by the processor 701, it performs the functions defined in the system of this disclosure embodiment. According to embodiments of this disclosure, the systems, devices, apparatuses, modules, units, etc., described above can be implemented by computer program modules.
[0146] According to embodiments of this disclosure, program code for executing the computer programs provided in embodiments of this disclosure can be written in any combination of one or more programming languages. Specifically, these computational programs can be implemented using high-level procedural and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages include, but are not limited to, languages such as Java, C++, Python, "C", or similar programming languages. The program code can execute entirely on the user's computing device, partially on the user's device, partially on a remote computing device, or entirely on a remote computing device or server. In cases involving remote computing devices, the remote computing device can be connected to the user's computing device via any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computing device (e.g., via the Internet using an Internet service provider).
[0147] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0148] Those skilled in the art will understand that the features described in the various embodiments and / or claims of this disclosure can be combined or combined in various ways, even if such combinations or combinations are not explicitly described in this disclosure. In particular, the features described in the various embodiments and / or claims of this disclosure can be combined or combined in various ways without departing from the spirit and teachings of this disclosure. All such combinations and / or combinations fall within the scope of this disclosure.
[0149] The embodiments of this disclosure have been described above. However, these embodiments are for illustrative purposes only and are not intended to limit the scope of this disclosure. Although various embodiments have been described above, this does not mean that the measures in the various embodiments cannot be used advantageously in combination. The scope of this disclosure is defined by the appended claims and their equivalents. Various substitutions and modifications can be made by those skilled in the art without departing from the scope of this disclosure, and all such substitutions and modifications should fall within the scope of this disclosure.
Claims
1. An information processing method, comprising: In response to receiving the identifier of the first file, the identifier of the first file is split according to a predetermined format to obtain a first identifier and a second identifier, wherein the first identifier represents information about the target file set used to store the first file; and the second identifier represents the storage order information of the first file in the target file set. Based on the first identifier, by querying the storage record information, the first identifier range information and the first storage quantity information of the files already stored in the target file set are obtained; If it is determined that the second identifier exceeds the range information of the first identifier, the first identifier range information and the first storage quantity information are changed according to the second identifier to obtain the second identifier range information and the second storage quantity information. Based on the second identifier range information and the second storage quantity information, the storage result information is obtained.
2. The method according to claim 1, wherein, The step of obtaining the first identifier range information and the first storage quantity information of the files already stored in the target file set by querying the storage record information based on the first identifier includes: Based on the first identifier, the target file set and the first storage quantity information are determined by querying the storage record information; Based on the target file set, the first identifier range information is obtained.
3. The method according to claim 2, wherein obtaining the first identifier range information based on the target file set includes: By querying the storage record information, the minimum order identifier and the maximum order identifier of the stored files in the target file set can be obtained; The first identifier range information is obtained based on the minimum sequence identifier and the maximum sequence identifier of the stored files.
4. The method according to claim 2, further comprising: If it is determined that the first identifier does not exist in the stored record information, a target stored record information corresponding to the first identifier is created based on the first identifier and the second identifier.
5. The method according to claim 1, wherein, The identifier range information includes a first minimum order identifier and a first maximum order identifier of stored files. If it is determined that the second identifier exceeds the identifier range information, the first identifier range information and the first storage quantity information are modified according to the second identifier to obtain second identifier range information and second storage quantity information, including: If the second identifier is less than the first minimum order identifier, it is determined that the second identifier exceeds the identifier range information; Based on the second identifier and the first maximum order identifier, the range information of the second identifier is obtained; The second storage quantity information is obtained based on the quantity information of the first file and the first storage quantity information.
6. The method according to claim 5, further comprising: If the second identifier is greater than the first maximum sequence identifier, it is determined that the second identifier exceeds the identifier range information; The range information of the second identifier is obtained based on the second identifier and the first minimum order identifier.
7. The method according to claim 1, wherein, The second identifier range information includes the second minimum order identifier and the second maximum order identifier of the stored files; the step of obtaining storage result information based on the second identifier range information and the second storage quantity information includes: The third storage quantity information is obtained based on the second minimum order identifier and the second maximum order identifier; If the third storage quantity information and the second storage quantity information are equal, the storage result is determined to be that the stored files have continuity.
8. The method according to claim 1, further comprising: Retrieve archive cache record information; Based on the range information of the first identifier and the second identifier, the information of the record to be cached is obtained; If the record to be cached does not exist in the archive cache record information, the first identifier and the second identifier range information are associated and stored.
9. An information processing apparatus, comprising: The processing module is configured to, in response to receiving the identifier of the first file, split the identifier of the first file according to a predetermined format to obtain a first identifier and a second identifier, wherein the first identifier represents information about the target file set used to store the first file; and the second identifier represents the storage order information of the first file in the target file set. The query module is used to obtain the first identifier range information and the first storage quantity information of the files already stored in the target file set by querying the stored record information based on the first identifier. The modification module is configured to, when it is determined that the second identifier exceeds the first identifier range information, modify the first identifier range information and the first storage quantity information according to the second identifier to obtain second identifier range information and second storage quantity information; and The obtaining module is used to obtain storage result information based on the second identifier range information and the second storage quantity information.
10. An electronic device, comprising: One or more processors; Storage device for storing one or more programs. Wherein, when the one or more programs are executed by the one or more processors, the one or more processors perform the method according to any one of claims 1 to 8.
11. A computer-readable storage medium having stored thereon executable instructions that, when executed by a processor, cause the processor to perform the method according to any one of claims 1 to 8.
12. A computer program product comprising a computer program that, when executed by a processor, implements the method according to any one of claims 1 to 8.