Batch file acquisition algorithm for CD library
By using a batch file retrieval algorithm for CD-ROM libraries, optimizing file arrangement and transmission order, the problem of low efficiency in file retrieval and extraction in CD-ROM libraries is solved, achieving efficient, accurate, and user-friendly file retrieval.
Patent Information
- Application Number
- CN202210582826.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-26
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2042-05-26
AI Technical Summary
When retrieving files in batches from an existing CD-ROM library, file retrieval and extraction efficiency is low, and different files are repeatedly migrated between CD-ROMs or disc cartridges, leading to reduced efficiency.
A batch file retrieval algorithm for optical disc libraries is adopted. By classifying files by attributes and features, the file arrangement and transmission order are optimized, reducing the migration of optical discs and disc trays. Transmission priorities and memory programs are set to improve file retrieval efficiency.
It improves the efficiency of batch file retrieval from CD-ROM libraries, reduces the frequency of CD-ROM library operations, extends the lifespan of CD-ROM libraries, and enhances the accuracy and user-friendliness of file retrieval.
Smart Images

Figure CN114880282B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of optical disc libraries, and in particular to an algorithm for acquiring batch files in an optical disc library. Background Art
[0002] An optical disk library is a network sharing device for optical disks with an automatic disk changer. An optical disk library generally consists of three parts: a disk rack for placing optical disks, an automatic disk changer, and a drive. In recent years, as the storage capacity of a single optical disk has greatly increased, the price-performance advantages of optical disk libraries over common storage devices such as disk arrays and tape libraries have become increasingly apparent. As a storage device, optical disk libraries have gradually begun to be used in various fields, such as bank bill image storage, insurance agency data storage, and all other large-capacity near-line data storage occasions.
[0003] However, in the prior art, it takes a long time to batch-acquire a large number of files from the optical disk library. From retrieving file information to migrating the optical disk, corresponding time is required for processing. When there is no algorithm processing on the files and the optical disk cartridges, each retrieval and extraction of the files will migrate the optical disk and the optical disk cartridge. Different files will be stored in the same optical disk or disk cartridge, resulting in repeated migration of a optical disk or a disk cartridge, which greatly reduces the efficiency of obtaining files from the optical disk library. Summary of the invention
[0004] Technical issues solved
[0005] In view of the above-mentioned shortcomings of the prior art, the present invention provides a batch file acquisition algorithm for an optical disc library, which solves the problem that each time a file is retrieved and extracted, the optical disc and the optical disc cartridge will be migrated, and different files will be stored in the same optical disc or disc cartridge, resulting in repeated migration of a optical disc or a disc cartridge, resulting in a greatly reduced efficiency in acquiring files from the optical disc library.
[0006] Technical Solution
[0007] To achieve the above objectives, the present invention is implemented through the following technical solutions:
[0008] In the first aspect, the optical disk library batch file acquisition algorithm includes the following steps:
[0009] Step 1: Obtain the file attributes of the CD library and distinguish the files according to the file attributes of the CD library;
[0010] Step 2: When the CD library file data is a non-packaged file, obtain the non-packaged file features, classify the file features according to the non-packaged file features, and arrange the features of the files with the same category features;
[0011] Step 3: When the optical disk library file data is a packaged file, obtain the information of the disk cartridge or optical disk where the packaged file is located, and execute it according to the processing logic of non-packaged files;
[0012] Step 4: Obtain packaged file features, classify file features according to packaged file features, and arrange features for files with the same category features;
[0013] Step 5: Receive the CD library file to obtain the target content;
[0014] Step 6: Analyze and obtain target file information, and determine whether the target file is from the same disk cartridge;
[0015] Step 7: If the number of cartridges is not unique, select a group of cartridges other than the target to be acquired and repeat the execution;
[0016] Step 8: Arrange and group the acquisition targets and determine whether the acquisition targets are packaged files;
[0017] Step 9: If the judgment result is "No", skip it; if the judgment result is "Yes", sort the packaged files in the acquisition target and send them according to the file feature arrangement.
[0018] Furthermore, the step Step2 includes a sub-step Step2-1: setting the file feature arrangement echelon and loading the memory program, and reorganizing the order of the file feature arrangement echelon according to the file acquisition frequency through the memory program.
[0019] Furthermore, in the step Step2, the non-packaged file features are arranged from large to small with reference to the non-packaged file format, and in the step Step3, the packaged file features are arranged from complete to scattered with reference to the file directory.
[0020] Furthermore, the step Step 6 and the step Step 7 form a loop of mutually cooperative processing. When the number of disk cartridges is unique, the step Step 7 is not executed. After the analysis is completed in the step Step 6 to obtain the target file information, the process directly jumps to the step Step 8 for further execution after judgment. When the number of disk cartridges is not unique, the target file content is obtained after the step Step 6 and is passed to the step Step 7. After the analyzed disk cartridge is extracted, the process returns to the step Step 6 for analysis again, until all the disk cartridges are analyzed and all the files in the disk cartridges are distinguished, and further execution is performed.
[0021] Furthermore, in the step Step9, a batch file acquisition transmission priority is set, wherein packaged files are transmitted before non-packaged files, and non-packaged files are transmitted after all transmission target packaged files are transmitted.
[0022] In a second aspect, a CD library batch file acquisition process transmission method comprises the following steps:
[0023] S1: Capture high-probability options in batch acquisition of CD library files, analyze and acquire file arrangement intervals, and infer the best file transfer path;
[0024] S2: determining the optimal synchronous transmission task amount for batch files in the optical disk library;
[0025] S3: triggering a high-probability selection change based on the habit of batch acquisition of files, and batch acquisition and transmission of CD library files;
[0026] S4: Setting the file acquisition transmission refresh cycle, and loading the high probability selection items with the new CD library file batch acquisition;
[0027] S5: Synchronously generate an evaluation report within the file acquisition and transmission refresh cycle, and adaptively adjust and improve the optical disk library batch file acquisition and transmission logic path with reference to the evaluation report.
[0028] Furthermore, in step S2, the optimal synchronous transmission task amount for obtaining the optical disc batch files is determined according to the performance of the optical disc library, and the synchronous transmission task amount is initially set to 3 groups.
[0029] Furthermore, the file acquisition and transmission refresh period in step S4 is set by default to be refreshed after a single batch file acquisition and transmission process is completed, and the file acquisition and transmission refresh period can be modified.
[0030] Furthermore, the target file is retrieved before the batch file is obtained, and the retrieval path pheromone volatility factor is optimized. A large amount of database table information converted from retrieved cold data to hot data is used to construct an ant colony subgroup through a differential evolution algorithm. The specific implementation principle is:
[0031] If 0.9ρ(t-1)≥ρmin
[0032] Thenρ(t)=0.9ρ(t-1)elseρ(t)=ρmin
[0033] Where ρmin is the minimum retrieval pheromone volatility factor. This retrieval method prevents the pheromone volatility factor ρ(t) at time t from being too small, which leads to a decrease in the convergence speed of the algorithm; ρ(t-1) is the pheromone volatility factor at the previous moment; and finally, through the differential evolution process, the global optimal solution can be obtained.
[0034] Furthermore, the adaptive batch file acquisition transmission logic path adjustment in step S5 triggers the optical disk library prompt, and the prompt content includes the predicted increase and decrease range of the optical disk library operation rate after the adjustment.
[0035] Beneficial Effects
[0036] Compared with the known public technology, the technical solution provided by the present invention has the following beneficial effects:
[0037] 1. In the method for batch acquiring files in a CD library, compared with the existing technology, the technical solution proposed in the present invention optimizes the efficiency of acquiring files to the maximum extent, and reduces the time for CDs and cartridge migration and switching required for each file acquisition by grouping and sorting the files, reduces the impact of frequent operations on the CD library on its service life, ensures the availability of the CD library, and does not affect other operations, thereby greatly improving the efficiency of batch file acquisition.
[0038] 2. The present invention further adds a transmission method in the file acquisition process to the optical disk library batch file acquisition algorithm mentioned in the article. This method can improve the efficiency of optical disk library batch file acquisition, and form a certain memory based on the acquired file content, thereby making the optical disk library batch file acquisition process more efficient and humane through memory association. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the drawings required for use in the embodiments or the prior art description are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0040] Figure 1 It is a flow chart of the optical disk library batch file acquisition algorithm in the present invention;
[0041] Figure 2 It is a flow chart of the optical disk library batch file acquisition process transmission method in the present invention; DETAILED DESCRIPTION
[0042] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings in the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0043] The present invention will be further described below in conjunction with the embodiments.
[0044] Example 1
[0045] The optical disk library batch file acquisition algorithm of this embodiment is as follows: Figure 1 As shown, the following steps are included:
[0046] Step 1: Obtain the file attributes of the CD library and distinguish the files according to the file attributes of the CD library;
[0047] Step 2: When the CD library file data is a non-packaged file, obtain the non-packaged file features, classify the file features according to the non-packaged file features, and arrange the features of the files with the same category features;
[0048] Step 3: When the optical disk library file data is a packaged file, obtain the information of the disk cartridge or optical disk where the packaged file is located, and execute it according to the processing logic of non-packaged files;
[0049] Step 4: Obtain packaged file features, classify file features according to packaged file features, and arrange features for files with the same category features;
[0050] Step 5: Receive the CD library file to obtain the target content;
[0051] Step 6: Analyze and obtain target file information, and determine whether the target file is from the same disk cartridge;
[0052] Step 7: If the number of cartridges is not unique, select a group of cartridges other than the target to be acquired and repeat the execution;
[0053] Step 8: Arrange and group the acquisition targets and determine whether the acquisition targets are packaged files;
[0054] Step 9: If the judgment result is "No", skip it; if the judgment result is "Yes", sort the packaged files in the acquisition target and send them according to the file feature arrangement.
[0055] Example 2
[0056] like Figure 1 As shown, step Step2 includes sub-step Step2-1: setting the file feature arrangement echelon and loading the memory program, and reorganizing the order of the file feature arrangement echelon according to the file acquisition frequency through the memory program.
[0057] Through this setting, the process of acquiring batch files of the method is improved to a certain extent, and the process of acquiring batch files of the optical disk library is more efficient with the long-term use of the method.
[0058] like Figure 1 As shown, in step Step2, the non-packaged file features are arranged from large to small with reference to the non-packaged file format, and in step Step3, the packaged file features are arranged from complete to scattered with reference to the file directory.
[0059] Through this setting, a specified file acquisition and transmission order is provided for non-packaged files and packaged files, ensuring that the files are acquired and transmitted accurately and stably.
[0060] like Figure 1 As shown, step Step6 and step Step7 form a loop of mutually cooperative processing. When the number of cartridges is unique, step Step7 is not executed. After step Step6 completes the analysis to obtain the target file information, it directly jumps to step Step8 for further execution after judgment. When the number of cartridges is not unique, the target file content is obtained after step Step6 and is passed to step Step7. After the analyzed cartridge is taken out, it returns to step Step6 for analysis again, until all cartridges are analyzed and all files in the cartridges are distinguished, and further execution is performed.
[0061] This setting can be used to comprehensively analyze the files in the acquisition target, thereby ensuring that the process of batch file acquisition can be completed without repeatedly searching the same disk tray.
[0062] like Figure 1 As shown, in step Step 9, a batch file acquisition transmission priority is set, wherein packaged files are transmitted before non-packaged files, and non-packaged files are transmitted after all transmission target packaged files are transmitted.
[0063] Through further settings, non-packaged files are set as priority transmission content, so that packaged files are transmitted in a centralized manner, avoiding the situation where packaged files and non-packaged files are interspersed in the transmission files of the acquisition target, so as to facilitate the subsequent sorting of the acquired target files.
[0064] Example 3
[0065] In a specific implementation level, the present invention provides a method for transmitting a batch file acquisition process of an optical disk library, such as Figure 2 As shown, the following steps are included:
[0066] S1: Capture high-probability options in batch acquisition of CD library files, analyze and acquire file arrangement intervals, and infer the best file transfer path;
[0067] S2: determining the optimal synchronous transmission task amount for batch files in the optical disk library;
[0068] S3: triggering a high-probability selection change based on the habit of batch acquisition of files, and batch acquisition and transmission of CD library files;
[0069] S4: Setting the file acquisition transmission refresh cycle, and loading the high probability selection items with the new CD library file batch acquisition;
[0070] S5: Synchronously generate an evaluation report within the file acquisition and transmission refresh cycle, and adaptively adjust and improve the optical disk library batch file acquisition and transmission logic path with reference to the evaluation report.
[0071] like Figure 2 As shown, in step S2, the optimal synchronous transmission task amount for obtaining the optical disc batch files is determined according to the optical disc library performance, and the synchronous transmission task amount is initially set to 3 groups.
[0072] This setting allows the optical disk library to perform batch file acquisition tasks at the best performance possible.
[0073] like Figure 2 As shown, in step S4, the file acquisition transmission refresh cycle is set by default to refresh after a single batch file acquisition transmission process is completed, and the file acquisition transmission refresh cycle can be modified.
[0074] This setting makes the process of obtaining files from the optical disk library more efficient and meets the efficiency of batch file acquisition in a short period of time.
[0075] like Figure 2 As shown, the target file is retrieved before batch file acquisition, and the pheromone volatilization factor of the retrieval path is optimized. The ant colony subgroup is constructed through the differential evolution algorithm for a large amount of database table information that converts the retrieved cold data into hot data. The specific implementation principle is as follows:
[0076] If 0.9ρ(t-1)≥ρmin
[0077] Thenρ(t)=0.9ρ(t-1)elseρ(t)=ρmin
[0078] Where ρmin is the minimum retrieval pheromone volatility factor. This retrieval method prevents the pheromone volatility factor ρ(t) at time t from being too small, which leads to a decrease in the convergence speed of the algorithm; ρ(t-1) is the pheromone volatility factor at the previous moment; and finally, through the differential evolution process, the global optimal solution can be obtained.
[0079] like Figure 2 As shown, the adaptive batch file acquisition transmission logical path adjustment in step S5 triggers the optical disk library prompt, and the prompt content includes the predicted increase and decrease amplitude of the optical disk library operation rate after adjustment.
[0080] Through this setting, timely feedback can be given after the adjustment of the optical disk library batch file acquisition transmission logic path, so as to help evaluate and judge whether the adjustment is reasonable.
[0081] In summary, in the method of batch acquiring files in the optical disk library, compared with the existing technology, the technical solution proposed in the present invention optimizes the efficiency of acquiring files to the maximum extent, and reduces the time of optical disk and cartridge migration and switching required for each file acquisition by grouping and sorting the files, reduces the impact of frequent operations on the service life of the optical disk library, ensures the availability of the optical disk library, and will not affect other operations, greatly improving the efficiency of batch file acquisition. At the same time, the present invention further adds a transmission method in the file acquisition process to the optical disk library batch file acquisition algorithm mentioned in the text. This method can improve the efficiency of batch file acquisition in the optical disk library, and form a certain memory according to the acquired file content, and then make the process of batch file acquisition in the optical disk library more efficient and humanized through memory association.
[0082] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements will not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for acquiring batch files from a CD library, characterized in that including, including the following steps: Step 1: Obtain the file attributes of the CD library and distinguish the files according to the file attributes of the CD library; Step 2: When the CD library file data is a non-packaged file, obtain the non-packaged file features, classify the file features according to the non-packaged file features, and arrange the features of the files with the same category features; Step 3: When the optical disk library file data is a packaged file, obtain the information of the disk cartridge or optical disk where the packaged file is located, and execute it according to the processing logic of non-packaged files; Step 4: Obtain packaged file features, classify file features according to packaged file features, and arrange features for files with the same category features; Step 5: Receive the CD library file to obtain the target content; Step 6: Analyze and obtain target file information, and determine whether the target file is from the same disk cartridge; Step 7: If the number of cartridges is not unique, select a group of cartridges other than the target to be acquired and repeat the execution; Step 8: Arrange and group the acquisition targets and determine whether the acquisition targets are packaged files; Step 9: If the result is "No", skip it. If the result is "Yes", sort the packaged files in the acquisition target and send them according to the file feature arrangement. Among them, step Step 6 and step Step 7 are a loop of mutually cooperative processing. When the number of disk cartridges is unique, step Step 7 is not executed. After step Step 6 completes the analysis to obtain the target file information, it directly jumps to step Step 8 for continued execution after judgment. When the number of disk cartridges is not unique, the target file content is obtained after step Step 6 and passed to step Step 7. After the analyzed disk cartridge is taken out, it returns to step Step 6 for analysis again, until all disk cartridges are analyzed and all files in the disk cartridges are distinguished, and further execution is performed.
2. The optical disk library batch file acquisition method according to claim 1, characterized in that: The step Step 2 includes a sub-step Step 2-1: setting the file feature arrangement echelon and loading the memory program, and reorganizing the order of the file feature arrangement echelon according to the file acquisition frequency through the memory program.
3. The method for obtaining batch files from an optical disk library according to claim 1, characterized in that: In the step 2, the non-packaged file features are arranged from large to small with reference to the non-packaged file format, and in the step 3, the packaged file features are arranged from complete to scattered with reference to the file directory.
4. The optical disk library batch file acquisition method according to claim 1, characterized in that: In the step Step 9, a batch file acquisition transmission priority is set, wherein packaged files are transmitted before non-packaged files, and non-packaged files are transmitted after all transmission target packaged files are transmitted.
5. The optical disk library batch file acquisition method according to claim 1 is equipped with an optical disk library batch file acquisition process transmission method, characterized in that: The following steps are involved: S1: Capture high-probability options in batch acquisition of CD library files, analyze and acquire file arrangement intervals, and infer the best file transfer path; S2: determining the optimal synchronous transmission task amount for batch files in the optical disk library; S3: triggering a high-probability selection change based on the habit of batch acquisition of files, and batch acquisition and transmission of CD library files; S4: Setting the file acquisition transmission refresh cycle, and loading the high probability selection items with the new CD library file batch acquisition; S5: Synchronously generate an evaluation report within the file acquisition and transmission refresh cycle, and adaptively adjust and improve the optical disk library batch file acquisition and transmission logic path with reference to the evaluation report.
6. The optical disk library batch file acquisition process transmission method according to claim 5, characterized in that: In step S2, the optimal synchronous transmission task amount for obtaining the batch files of the optical disc is determined according to the performance of the optical disc library, and the synchronous transmission task amount is initially set to 3 groups.
7. The optical disk library batch file acquisition process transmission method according to claim 5, characterized in that: In the step S4, the file acquisition and transmission refresh cycle is set by default to be refreshed after a single batch file acquisition and transmission process is completed, and the file acquisition and transmission refresh cycle can be modified.
8. The optical disk library batch file acquisition process transmission method according to claim 5, characterized in that: Before the batch file acquisition, the target file is searched, the retrieval path pheromone volatility factor is optimized, and the ant colony subgroup is constructed through the differential evolution algorithm for a large amount of database table information converted from the retrieved cold data to hot data. The specific implementation principle is as follows: If 0.9ρ(t-1)≥ρmin Then ρ(t)=0.9ρ(t-1)elseρ(t)=ρmin Where ρmin is the minimum retrieval pheromone volatility factor. This retrieval method prevents the pheromone volatility factor ρ(t) at time t from being too small, which leads to a decrease in the convergence speed of the algorithm; ρ(t-1) is the pheromone volatility factor at the previous moment; and finally, through the differential evolution process, the global optimal solution can be obtained.
9. The optical disk library batch file acquisition process transmission method according to claim 5, characterized in that: The adjustment of the adaptive batch file acquisition transmission logic path in step S5 triggers the optical disk library prompt, and the prompt content includes the predicted increase and decrease amplitude of the optical disk library operation rate after the adjustment.
