File storage method, device, electronic device and storage medium

By analyzing the archival information to determine the archival score and reasonably allocating the storage location, the problem of unreasonable archival storage was solved and the efficiency and timeliness of archival retrieval were improved.

CN113554394BActive Publication Date: 2025-09-19PING AN BANK CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110863872.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-27
Publication Date
2025-09-19
Estimated Expiration
2041-07-27

AI Technical Summary

Technical Problem

The existing archive storage strategy makes it difficult to quickly access popular archives, while unpopular archives occupy easily accessible locations, resulting in an unreasonable distribution of archive storage locations, affecting retrieval efficiency and timeliness.

Method used

By analyzing the archival information of the archives to be stored, the archive score is determined. According to the score and the usage of storage space, the storage location of the archives is reasonably allocated to ensure that archives with a high access probability are placed in easily accessible areas.

Benefits of technology

It improves the rationality of archive storage location and enhances the efficiency and timeliness of archive retrieval.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113554394B_ABST
    Figure CN113554394B_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of warehouse management, and specifically discloses a file storage method, device, electronic device and storage medium, wherein the file storage method includes: determining a file score of the file to be stored based on the file information of the file to be stored, wherein the file score is used to identify the probability of the file to be stored being taken out again; determining a storage area for the file to be stored based on the file score, wherein the storage area includes at least one storage space, and each storage space in the at least one storage space is used to store files; obtaining the usage status of the at least one storage space; determining the storage location of the file to be stored in the at least one storage space based on the usage status of the at least one storage space; and placing the file to be stored in the storage location.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of warehouse management, and in particular to a file storage method, device, electronic equipment and storage medium. Background Art

[0002] Currently, archivists commonly use storage location allocation strategies when storing archives, including: fixed-position storage, random storage, nearby storage, and classified storage. However, after storage, some archives may be repeatedly retrieved and stored, while others may remain in the storage space. This results in some unpopular archives constantly occupying easily accessible storage spaces, while some popular archives can only be placed in difficult-to-access locations. Therefore, how to optimize archive storage rules through reasonable storage location strategies, improve the rationality of archive storage location distribution, and thereby enhance the efficiency and timeliness of archive retrieval has become a pressing issue. Summary of the Invention

[0003] In order to solve the above-mentioned problems existing in the prior art, the embodiments of the present application provide an archive storage method, device, electronic device and storage medium, which can improve the rationality of the distribution of archive storage locations and at the same time improve the efficiency and timeliness of archive retrieval.

[0004] In a first aspect, embodiments of the present application provide a method for storing files, including:

[0005] Determine the file score of the file to be stored based on the file information of the file to be stored, wherein the file score is used to identify the probability of the file to be stored being retrieved again;

[0006] Determining a storage area for the archive to be stored based on the archive score, wherein the storage area includes at least one storage space, and each storage space of the at least one storage space is used to store the archive;

[0007] Get the usage of at least one storage space;

[0008] Determining a storage location of the to-be-stored file in the at least one storage space according to usage of the at least one storage space;

[0009] Place the files to be stored in the storage location.

[0010] In a second aspect, an embodiment of the present application provides a file storage device, comprising:

[0011] A scoring module is used to determine a file score of the file to be stored based on the file information of the file to be stored, wherein the file score is used to identify the probability of the file to be stored being retrieved again;

[0012] an area determination module, configured to determine a storage area for the archive to be stored based on the archive score, wherein the storage area includes at least one storage space, and each storage space in the at least one storage space is used to store the archive;

[0013] a positioning module, configured to obtain a usage status of at least one storage space; and determine a storage location of a file to be stored in the at least one storage space based on the usage status of the at least one storage space;

[0014] The storage module is used to place the files to be stored in the storage location.

[0015] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a processor, the processor being connected to a memory, the memory being used to store computer programs, and the processor being used to execute the computer programs stored in the memory, so that the electronic device performs the method of the first aspect.

[0016] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program enables a computer to execute the method of the first aspect.

[0017] In a fifth aspect, an embodiment of the present application provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and is computer-operable to enable the computer to execute the method of the first aspect.

[0018] The implementation of the present application has the following beneficial effects:

[0019] In the embodiments of the present application, the archival information of a to-be-stored file is analyzed to obtain a file score indicating the probability of the to-be-stored file being retrieved again. The storage area for the to-be-stored file is then determined based on the file score. Then, based on the usage of the storage area, the storage location of the to-be-stored file is determined within at least one storage space within the storage area, and the file is stored. This ensures that files with a high access probability are placed in easily accessible locations, improving the rationality of the file storage location distribution and enhancing the efficiency and timeliness of file retrieval. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following is a brief introduction to the drawings required for use in the description of the embodiments. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0021] Figure 1 A schematic diagram of the hardware structure of a file storage device provided in an embodiment of the present application;

[0022] Figure 2 A flowchart of a file storage method provided in an embodiment of the present application;

[0023] Figure 3 A flowchart of a method for determining a file score for a file to be stored based on the file information of the file to be stored provided in an embodiment of the present application;

[0024] Figure 4 A flowchart of a method for determining a predicted score based on a user's historical service information and access history information provided by an embodiment of the present application;

[0025] Figure 5 A schematic diagram of an embodiment of the present application that abstracts a storage area into a diagram form;

[0026] Figure 6 A schematic diagram of a space usage table of at least one storage space provided in an embodiment of the present application;

[0027] Figure 7 A flowchart of a method for determining a storage location of a file to be stored in at least one storage space based on usage of at least one storage space, provided in an embodiment of the present application;

[0028] Figure 8 A candidate spatial distribution map provided for an embodiment of the present application;

[0029] Figure 9 A weight distribution diagram of a candidate space provided in an embodiment of the present application;

[0030] Figure 10 A block diagram of the functional modules of a file storage device provided in an embodiment of the present application;

[0031] Figure 11 A schematic structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0032] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the described embodiments are part of the embodiments of this application, not all of the embodiments. Based on the embodiments of this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0033] The terms "first," "second," "third," and "fourth," etc., in the specification and claims of this application and the accompanying drawings are used to distinguish between different objects, rather than to describe a specific order. In addition, the terms "including," "having," and any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or apparatus comprising a series of steps or elements is not limited to the listed steps or elements, but may optionally include steps or elements not listed, or may optionally include other steps or elements inherent to the process, method, product, or apparatus.

[0034] Reference herein to an "embodiment" means that a particular feature, result, or characteristic described in conjunction with the embodiment may be included in at least one embodiment of the present application. The appearance of this phrase in various locations in the specification does not necessarily refer to the same embodiment, nor does it refer to independent or alternative embodiments that are mutually exclusive of other embodiments. It is understood, both explicitly and implicitly, by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0035] First, see Figure 1 , Figure 1 The hardware structure diagram of a file storage device provided in an embodiment of the present application is as follows: The file storage device 100 includes at least one processor 101 , a communication line 102 , a memory 103 and at least one communication interface 104 .

[0036] In this embodiment, the processor 101 can be a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits used to control the execution of the program of the present application.

[0037] The communication link 102 may include a path for transmitting information between the above components.

[0038] The communication interface 104 may be any transceiver-like device (eg, antenna, etc.) for communicating with other devices or communication networks, such as Ethernet, RAN, wireless local area networks (WLAN), etc.

[0039] The memory 103 may be a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a random access memory (RAM) or other type of dynamic storage device that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compact disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited to these.

[0040] In this embodiment, the memory 103 can exist independently and be connected to the processor 101 via the communication line 102. The memory 103 can also be integrated with the processor 101. The memory 103 provided in the embodiments of the present application can generally be non-volatile. Among them, the memory 103 is used to store computer-executable instructions for executing the solution of the present application, and the execution is controlled by the processor 101. The processor 101 is used to execute the computer-executable instructions stored in the memory 103, thereby implementing the methods provided in the following embodiments of the present application.

[0041] In an optional implementation, the computer-executable instructions may also be referred to as application code, which is not specifically limited in this application.

[0042] In an optional embodiment, the processor 101 may include one or more CPUs, such as Figure 1 CPU0 and CPU1 in.

[0043] In an optional embodiment, the archive storage device 100 may include multiple processors, such as Figure 1 1 and 107. Each of these processors may be a single-CPU processor or a multi-CPU processor. A processor herein may refer to one or more devices, circuits, and / or processing cores for processing data (e.g., computer program instructions).

[0044] In an optional embodiment, if the archive storage device 100 is a server, the archive storage device 100 may further include an output device 105 and an input device 106. The output device 105 communicates with the processor 101 and can display information in a variety of ways. For example, the output device 105 can be a liquid crystal display (LCD), a light emitting diode (LED) display device, a cathode ray tube (CRT) display device, or a projector. The input device 106 communicates with the processor 101 and can receive user input in a variety of ways. For example, the input device 106 can be a mouse, a keyboard, a touch screen device, or a sensor device.

[0045] The above-mentioned file storage device 100 can be a general device or a dedicated device. The embodiment of the present application does not limit the type of the file storage device 100.

[0046] The following describes the file storage method disclosed in this application:

[0047] See Figure 2 , Figure 2 A flowchart of a file storage method provided in an embodiment of the present application. The file storage method includes the following steps:

[0048] 201: Determine the file score of the file to be stored based on the file information of the file to be stored.

[0049] In this embodiment, the file score is used to identify the probability of a stored file being retrieved again. Exemplarily, the file information may include: file type, access history information, file physical information, and file owner information. The file physical information identifies the physical characteristics of the stored file, such as its size, weight, shape, and material. The file owner information identifies the owner of the stored file. For example, if the file is Zhang San's work experience file, the owner should be Zhang San, the person described in the file. The file owner information represents Zhang San's personal information.

[0050] Based on this, this application proposes a method for determining the archive score of the archive to be stored based on the archive information of the archive to be stored, such as Figure 3 As shown, specifically including:

[0051] 301: Determine the heat value of the file to be stored based on the file type.

[0052] In this embodiment, different types of files can be rated for popularity based on historical file access data. For example, the higher the frequency of file access of a certain type, the higher the corresponding popularity value. Thus, the popularity value corresponding to the file type to be stored can be quickly checked.

[0053] 302: According to the file owner information, obtain the historical business information of the owner of the file to be stored.

[0054] In this embodiment, the historical business handled by the file holder within a set time period can be queried based on the file holder information. For example, a time period within 3 months of the current time can be selected as the preset time period.

[0055] 303: Determine a predicted score based on the owner's historical business information and access history information.

[0056] In this embodiment, the prediction score is used to identify the probability of the archive being retrieved again after being stored. For example, this application proposes a method for determining the prediction score based on the owner's historical business information and access history information, such as Figure 4 As shown, specifically including:

[0057] 401: Determine the first business handled by the owner based on the owner's historical business information.

[0058] In this embodiment, the first business is associated with the file to be stored. For example, the first business can be a business that has accessed the file. Specifically, the file to be stored is File A. A query shows that the file holder has handled the following businesses within three months: Business 1, Business 2, and Business 3. If Business 1 and Business 3 contain records of accessing File Z, then Business 1 and Business 3 are considered the first business.

[0059] 402: Determine the service type and service progress of the first service.

[0060] 403: Determine the number of second services in the historical service database according to the service type and service progress of the first service.

[0061] In this embodiment, the second service has the same business type as the first service, and the second service's progress is greater than or equal to the first service's progress. For example, using the above example of services 1 and 3, service 1 has a business type of Y and a progress of stage 2, while service 3 has a business type of X and a progress of stage 4. Then, in the historical service database, all services with a business type of Y and a progress of at least stage 2, as well as all services with a business type of X and a progress of at least stage 4, are searched for as second services, and the number of these second services is counted.

[0062] 404: Determine the number of third services in the second service.

[0063] In this embodiment, the third service is a service within the second service that includes a file retrieval operation after the first service progress is completed, and the first service progress is the same as the first service progress. For example, using the examples of services 1 and 3 above, the third service is any service of type Y that includes a file retrieval operation after the second stage, and any service of type X that includes a file retrieval operation after the fourth stage.

[0064] 405: Determine the number of times the file to be stored has been accessed in the first business based on the access history information.

[0065] 406: Determine the average number of accesses to the first file based on the business records of the second business.

[0066] In this embodiment, the first file is called by the second service, and the file type of the first file is the same as the file type of the file to be stored. For example, using the examples of services 1 and 3 above, if the file to be stored is file Z and its file type is a, then the first file is called by the second service and is of file type a.

[0067] 407: Determine a prediction score based on the number of second transactions, the number of third transactions, the number of accesses to the to-be-stored file in the first transaction, and the average number of accesses to the first file.

[0068] In this embodiment, the prediction score can be expressed by formula ①:

[0069]

[0070] Wherein, a represents the business type of the first business; b represents the business progress of the first business; f a,b (i) represents the number of events in which type a business retrieves the archive again after progress b, that is, the number of third businesses; f a,b Indicates the total number of type a businesses whose progress is greater than that of type b, that is, the number of second businesses; h a Indicates the number of times the file to be stored is accessed in the first business; p a Indicates the average number of accesses to the first file; at the same time, in order to prevent f a,b is 0, k1 is a constant, usually 1.

[0071] 304: Determine the file score of the file to be stored based on the file physical information, heat value and predicted score.

[0072] In this embodiment, the physical information of the archive may include the size and weight information of the archive to be stored. Based on this, the density value of the archive to be stored can be determined based on the size and weight information of the archive to be stored. The heat value and the predicted score are then multiplied to obtain a first product. Finally, the first product and the density value of the archive to be stored are weighted and summed to obtain the archive score.

[0073] For example, since files are usually cuboid, the size information may include length, width, and height information. Therefore, the score of the file to be stored can be expressed by formula ②:

[0074]

[0075] Among them, r and t are constants, and satisfy r+t=1; u represents the heat value of the file to be stored; m represents the weight of the file to be stored; j represents the length of the file to be stored; k2 represents the width of the file to be stored; h represents the height of the file to be stored.

[0076] Therefore, by reflecting the access popularity of the file to be stored, the predicted score of the file to be stored being retrieved again, and the physical information of the file that reflects the access difficulty of the file to be stored, the score obtained can more accurately describe the access cost of the file to be stored, thereby making the subsequent location allocation more reasonable.

[0077] 202: Determine the storage area for the files to be stored based on the file scores.

[0078] In this embodiment, the archive storage device can be pre-zoned. For example, the middle area of ​​the storage device closest to the storage space entrance is the first-class area, the upper area above the middle area is the second-class area, the lower area below the middle area is the third-class area, the middle area of ​​the storage device second closest to the storage space entrance is the fourth-class area, and so on. Each storage area includes at least one storage space, and each of the at least one storage space is used to store archives.

[0079] Thus, each storage area is associated with a file score based on the proportion of the total storage space occupied by the at least one storage space corresponding to each storage area. For example, if the storage space corresponding to a first-class area occupies 5% of the total storage space, then the first-class area corresponds to the top 5% of the file score. Specifically, if the score is a percentage, the first-class area corresponds to the score range [95, 100]. In other words, if the file score of the stored files is 97, then the corresponding storage area is a first-class area.

[0080] 203: Obtain usage status of at least one storage space.

[0081] In this embodiment, the storage area can be abstracted into a graphical form. For example, a spatial distribution table can be established based on the spatial distribution of at least one storage space, wherein the usage table includes at least one grid, at least one grid corresponds to at least one storage space, and the spatial distribution of at least one grid is the same as that of at least one storage space. Figure 5 As shown, Figure 5 A schematic diagram of abstracting the storage area into a diagram is shown, wherein the shaded portion corresponds to the location of the non-storage space in the storage area, such as Figure 5 In the figure, the shaded portion corresponds to the position of the display screen provided on the intelligent filing cabinet.

[0082] Then, for each storage space in the at least one storage space, obtain the volume value of the remaining available space in each storage space; fill the volume value of the remaining available space in each storage space into the grid corresponding to each storage space in the space distribution table to obtain the space usage table of the at least one storage space. Figure 6 As shown, a grid represents a storage space, and the number in the grid represents the remaining available space in the storage space (unit: dm 3 ).

[0083] 204: Determine a storage location of the file to be stored in the at least one storage space according to usage of the at least one storage space.

[0084] In this embodiment, a method for determining the storage location of a file to be stored in at least one storage space according to the usage of at least one storage space is provided, such as Figure 7 As shown, specifically including:

[0085] 701: Determine the volume of the archive to be stored based on the physical information of the archive.

[0086] 702: Determine at least one candidate space in at least one storage space based on the volume of the files to be stored and the space usage table.

[0087] In this embodiment, each of the at least one candidate space is a storage space in which the volume of the remaining available space in the at least one storage space is greater than the volume of the file to be stored. For example, assuming that the volume of the file to be stored is 20 dm 3 , follow the above Figure 6 The space usage table of at least one storage space displayed can be obtained as follows Figure 8 The candidate space distribution diagram shown in FIG. 4 shows a diagram of a candidate space distribution, where the shaded area represents storage space with insufficient remaining space.

[0088] 703: For each candidate space in the at least one candidate space, determine a weight value of each candidate space.

[0089] In this embodiment, it is possible to determine whether there are other candidate spaces in the 8-neighborhood of each candidate space. If so, the number of other candidate spaces is used as the weight value of each candidate space; if not, the weight value of each candidate space is set to 0. Figure 8 The candidate space distribution map shown in Figure 9 The weight distribution diagram of the candidate space is shown.

[0090] 704: The candidate space with the smallest weight value is used as the storage location for the file to be stored.

[0091] Therefore, by selecting the storage space with the smallest weight as the final storage location, the archives are stored preferentially in areas with dense archives, which facilitates subsequent statistics and inventory and improves the efficiency of archive management.

[0092] 205: Place the files to be stored in the storage location.

[0093] In summary, the file storage method provided by the present invention analyzes the archival information of the to-be-stored file to obtain a file score that identifies the probability of the to-be-stored file being retrieved again. The storage area for the to-be-stored file is then determined based on the file score. Then, based on the usage of the storage area, the storage location of the to-be-stored file is determined within at least one storage space within the storage area, and the file is stored. This ensures that files with a high access probability are placed in easily accessible locations, improving the rationality of the file storage location distribution and enhancing the efficiency and timeliness of file retrieval.

[0094] See Figure 10 , Figure 10 This is a functional module block diagram of a file storage device provided in the embodiment of this application. Figure 10 As shown, the file storage device 1000 includes:

[0095] Scoring module 1001, for determining a file score of the file to be stored based on the file information of the file to be stored, wherein the file score is used to identify the probability of the file to be stored being retrieved again;

[0096] The area determination module 1002 is configured to determine a storage area for the archive to be stored based on the archive score, wherein the storage area includes at least one storage space, and each storage space in the at least one storage space is used to store the archive;

[0097] The positioning module 1003 is used to obtain the usage of at least one storage space; and determine the storage location of the file to be stored in the at least one storage space according to the usage of the at least one storage space;

[0098] The storage module 1004 is used to place the files to be stored in the storage location.

[0099] In the embodiment of the present invention, the archive information includes: archive type, access history information, archive physical information and archive owner information, wherein the archive physical information is used to identify the physical characteristics of the archive to be stored, and the archive owner information is used to identify the owner of the archive to be stored;

[0100] Based on this, in determining the file score of the file to be stored according to the file information of the file to be stored, the scoring module 1001 is specifically used to:

[0101] Determine the heat value of the file to be stored according to the file type;

[0102] According to the file owner information, obtain the historical business information of the owner of the file to be stored;

[0103] Determine a prediction score based on the owner's historical business information and access history information, wherein the prediction score is used to identify the probability of the to-be-stored file being retrieved again after being stored;

[0104] Determine the archive score of the archive to be stored based on the archive physical information, heat value and predicted score.

[0105] In the embodiment of the present invention, in determining the predicted score based on the historical service information and access history information of the owner, the scoring module 1001 is specifically configured to:

[0106] Determine the first business handled by the owner based on the owner's historical business information, wherein the first business is associated with the file to be stored;

[0107] Determining the business type and business progress of the first business;

[0108] Determining the number of second businesses in the historical business database according to the business type and business progress of the first business, wherein the business type of the second business is the same as the business type of the first business, and the business progress of the second business is greater than or equal to the business progress of the first business;

[0109] Determine the number of third businesses in the second business, where the third business is a business in the second business that has a file retrieval operation after the first business progress is completed, and the first business progress is the same as the first business progress;

[0110] Determine the number of times the file to be stored has been accessed in the first business according to the access history information;

[0111] Determining an average number of accesses to a first file based on the business records of the second business, wherein the first file is accessed by the second business and the file type of the first file is the same as the file type of the file to be stored;

[0112] The prediction score is determined according to the number of the second business, the number of the third business, the number of accesses to the to-be-stored file in the first business, and the average number of accesses to the first file.

[0113] In an embodiment of the present invention, the physical information of the archive includes: size information and weight information of the archive to be stored;

[0114] Based on this, in determining the file score of the file to be stored according to the file physical information, heat value and predicted score, the scoring module 1001 is specifically used to:

[0115] Determine the density value of the archive to be stored based on the size and weight information of the archive to be stored;

[0116] Multiply the heat value and the predicted score to obtain the first product;

[0117] The first product and the density value of the file to be stored are weightedly summed to obtain the file score.

[0118] In the embodiment of the present invention, in terms of obtaining the usage of at least one storage space, the positioning module 1003 is specifically configured to:

[0119] Establishing a spatial distribution table based on the spatial distribution of the at least one storage space, wherein the usage table includes at least one grid, the at least one grid corresponds to the at least one storage space in a one-to-one manner, and the spatial distribution of the at least one grid is the same as that of the at least one storage space;

[0120] For each storage space in the at least one storage space, respectively obtain a volume value of the remaining available space in each storage space;

[0121] The volume value of the remaining available space in each storage space is filled into the grid corresponding to each storage space in the space distribution table to obtain a space usage table for at least one storage space.

[0122] In an embodiment of the present invention, in determining the storage location of the archive to be stored in the at least one storage space based on the usage of the at least one storage space, the positioning module 1003 is specifically configured to:

[0123] Determine the volume of archives to be stored based on the physical information of the archives;

[0124] Determining at least one candidate space in at least one storage space based on the volume of the files to be stored and the space usage table, wherein each candidate space in the at least one candidate space is a storage space having a volume value of remaining available space in the at least one storage space greater than the volume of the files to be stored;

[0125] For each candidate space in the at least one candidate space, determining a weight value of each candidate space;

[0126] The candidate space with the smallest weight value is used as the storage location for the files to be stored.

[0127] In an embodiment of the present invention, in determining the weight value of each candidate space in the at least one candidate space, the positioning module 1003 is specifically configured to:

[0128] Determine whether there are other candidate spaces in the 8-neighborhood of each candidate space;

[0129] If so, the number of other candidate spaces is used as the weight value of each candidate space;

[0130] If it does not exist, the weight value of each candidate space is set to 0.

[0131] See Figure 11 , Figure 11 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device 1100 is set in the first tenant system. Figure 11 As shown, the electronic device 1100 includes a transceiver 1101, a processor 1102, and a memory 1103. These are connected via a bus 1104. The memory 1103 is used to store computer programs and data, and can transmit the data stored in the memory 1103 to the processor 1102.

[0132] The processor 1102 is configured to read the computer program in the memory 1103 and perform the following operations:

[0133] Determine the file score of the file to be stored based on the file information of the file to be stored, wherein the file score is used to identify the probability of the file to be stored being retrieved again;

[0134] Determining a storage area for the archive to be stored based on the archive score, wherein the storage area includes at least one storage space, and each storage space of the at least one storage space is used to store the archive;

[0135] Get the usage of at least one storage space;

[0136] Determining a storage location of the file to be stored in the at least one storage space according to usage of the at least one storage space;

[0137] Place the files to be stored in the storage location.

[0138] In the embodiment of the present invention, the archive information includes: archive type, access history information, archive physical information and archive owner information, wherein the archive physical information is used to identify the physical characteristics of the archive to be stored, and the archive owner information is used to identify the owner of the archive to be stored;

[0139] Based on this, in determining the archive score of the archive to be stored according to the archive information of the archive to be stored, the processor 1102 is specifically configured to perform the following operations:

[0140] Determine the heat value of the file to be stored according to the file type;

[0141] According to the file owner information, obtain the historical business information of the owner of the file to be stored;

[0142] Determine a prediction score based on the owner's historical business information and access history information, wherein the prediction score is used to identify the probability of the to-be-stored file being retrieved again after being stored;

[0143] Determine the archive score of the archive to be stored based on the archive physical information, heat value and predicted score.

[0144] In the embodiment of the present invention, in determining the predicted score based on the historical service information and access history information of the owner, the processor 1102 is specifically configured to perform the following operations:

[0145] Determine the first business handled by the owner based on the owner's historical business information, wherein the first business is associated with the file to be stored;

[0146] Determining the business type and business progress of the first business;

[0147] Determining the number of second businesses in the historical business database according to the business type and business progress of the first business, wherein the business type of the second business is the same as the business type of the first business, and the business progress of the second business is greater than or equal to the business progress of the first business;

[0148] Determine the number of third businesses in the second business, where the third business is a business in the second business that has a file retrieval operation after the first business progress is completed, and the first business progress is the same as the first business progress;

[0149] Determine the number of times the file to be stored has been accessed in the first business according to the access history information;

[0150] Determining an average number of accesses to a first file based on the business records of the second business, wherein the first file is accessed by the second business and the file type of the first file is the same as the file type of the file to be stored;

[0151] The prediction score is determined according to the number of the second business, the number of the third business, the number of accesses to the to-be-stored file in the first business, and the average number of accesses to the first file.

[0152] In an embodiment of the present invention, the physical information of the archive includes: size information and weight information of the archive to be stored;

[0153] Based on this, in determining the archive score of the archive to be stored according to the archive physical information, the popularity value, and the predicted score, the processor 1102 is specifically configured to perform the following operations:

[0154] Determine the density value of the archive to be stored based on the size and weight information of the archive to be stored;

[0155] Multiply the heat value and the predicted score to obtain the first product;

[0156] The first product and the density value of the file to be stored are weightedly summed to obtain the file score.

[0157] In the embodiment of the present invention, in terms of obtaining usage of at least one storage space, the processor 1102 is specifically configured to perform the following operations:

[0158] Establishing a spatial distribution table based on the spatial distribution of the at least one storage space, wherein the usage table includes at least one grid, the at least one grid corresponds to the at least one storage space in a one-to-one manner, and the spatial distribution of the at least one grid is the same as that of the at least one storage space;

[0159] For each storage space in the at least one storage space, respectively obtain a volume value of the remaining available space in each storage space;

[0160] The volume value of the remaining available space in each storage space is filled into the grid corresponding to each storage space in the space distribution table to obtain a space usage table for at least one storage space.

[0161] In an embodiment of the present invention, in determining the storage location of the to-be-stored file in the at least one storage space based on usage of the at least one storage space, the processor 1102 is specifically configured to perform the following operations:

[0162] Determine the volume of archives to be stored based on the physical information of the archives;

[0163] Determining at least one candidate space in at least one storage space based on the volume of the files to be stored and the space usage table, wherein each candidate space in the at least one candidate space is a storage space having a volume value of remaining available space in the at least one storage space greater than the volume of the files to be stored;

[0164] For each candidate space in the at least one candidate space, determining a weight value of each candidate space;

[0165] The candidate space with the smallest weight value is used as the storage location for the files to be stored.

[0166] In an embodiment of the present invention, in determining the weight value of each candidate space in the at least one candidate space, the processor 1102 is specifically configured to perform the following operations:

[0167] Determine whether there are other candidate spaces in the 8-neighborhood of each candidate space;

[0168] If so, the number of other candidate spaces is used as the weight value of each candidate space;

[0169] If it does not exist, the weight value of each candidate space is set to 0.

[0170] It should be understood that the file storage devices in this application may include smartphones (such as Android phones, iOS phones, Windows Phone phones, etc.), tablet computers, PDAs, laptops, mobile Internet devices (MIDs), robots, or wearable devices. The above-mentioned file storage devices are merely examples and are not exhaustive, and include but are not limited to the above-mentioned file storage devices. In actual applications, the above-mentioned file storage devices may also include: smart vehicle terminals, computer equipment, etc.

[0171] Through the description of the above embodiments, those skilled in the art can clearly understand that the present invention can be implemented by combining software with a hardware platform. Based on this understanding, all or part of the contribution of the technical solution of the present invention to the background art can be embodied in the form of a software product. This computer software product can be stored in a storage medium such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes a number of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in various embodiments of the present invention or certain parts of the embodiments.

[0172] Therefore, embodiments of the present application further provide a computer-readable storage medium storing a computer program, which is executed by a processor to implement some or all of the steps of any of the methods for archiving files described in the above method embodiments. For example, the storage medium may include a hard disk, a floppy disk, an optical disk, a magnetic tape, a magnetic disk, a USB flash drive, a flash memory, or the like.

[0173] The embodiments of the present application also provide a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute part or all of the steps of any one of the archive storage methods described in the above method embodiments.

[0174] It should be noted that for the aforementioned method implementations, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that this application is not limited by the order of the actions described, because according to this application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the implementations described in the specification are all optional implementations, and the actions and modules involved are not necessarily required for this application.

[0175] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.

[0176] In the several embodiments provided in this application, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.

[0177] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of this embodiment.

[0178] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or in the form of software program modules.

[0179] If the integrated unit is implemented in the form of a software program module and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a memory and includes a number of instructions for enabling a computer device (which can be a personal computer, server or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned memory includes various media that can store program codes, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.

[0180] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable memory, which may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, etc.

[0181] The above is a detailed introduction to the implementation methods of the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above implementation methods is only used to help understand the method and core idea of ​​the present application. At the same time, for those skilled in the art, based on the ideas of the present application, there may be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A file storage method, characterized in that: The method comprises: Determine a file score for the file to be stored based on the file information of the file to be stored, wherein the file information includes: file type, access history information, file physical information, and file owner information, wherein the file physical information is used to identify the physical characteristics of the file to be stored, the file owner information is used to identify the owner of the file to be stored, and the file score is used to identify the probability of the file to be stored being retrieved again; Determining a storage area for the files to be stored according to the file scores, wherein the storage area includes at least one storage space, and each storage space of the at least one storage space is used to store files; Obtaining usage of the at least one storage space; Determining a storage location of the to-be-stored file in the at least one storage space according to usage of the at least one storage space; placing the to-be-stored file into the storage location; The step of determining the file score of the file to be stored based on the file information of the file to be stored includes: Determining the heat value of the file to be stored according to the file type; According to the file owner information, obtain the historical business information of the owner of the file to be stored; Determining a first business handled by the owner based on the owner's historical business information, wherein the first business is associated with the file to be stored; Determining the service type and service progress of the first service; Determining the number of second services in a historical service database according to the service type and service progress of the first service, wherein the service type of the second service is the same as that of the first service, and the service progress of the second service is greater than or equal to the service progress of the first service; Determining the number of third businesses in the second business, wherein the third business is a business in the second business that includes a file retrieval operation after the first business progress is completed, and the first business progress is the same as the first business progress; Determining the number of times the to-be-stored file has been accessed in the first service based on the access history information; determining, based on the business records of the second business, an average number of accesses to a first file, wherein the first file is accessed by the second business and the file type of the first file is the same as the file type of the file to be stored; Determine a prediction score based on the number of the second business, the number of the third business, the number of accesses to the to-be-stored file in the first business, and the average number of accesses to the first file, wherein the prediction score is used to identify the probability of the to-be-stored file being retrieved again after being stored; The prediction score is expressed by the following formula: Wherein, a represents the service type of the first service, b represents the service progress of the first service, and f represents the service type of the first service. a,b (i) represents the number of the third business, f a,b represents the number of the second service, h a Indicates the number of times the file to be stored is accessed in the first business, p a represents the average number of accesses to the first file, k1 is a constant; The file score of the file to be stored is determined according to the file physical information, the popularity value and the predicted score.

2. The method according to claim 1, characterized in that The physical information of the archive includes: size information and weight information of the archive to be stored; The step of determining the file score of the file to be stored according to the file physical information, the popularity value, and the predicted score includes: Determining the density value of the file to be stored according to the size information and weight information of the file to be stored; Multiplying the popularity value and the predicted score to obtain a first product; The first product and the density value of the to-be-stored file are weightedly summed to obtain the file score.

3. The method according to claim 1, characterized in that The obtaining of usage of the at least one storage space includes: Establishing a spatial distribution table based on the spatial distribution of the at least one storage space, wherein the usage table includes at least one grid, the at least one grid corresponds to the at least one storage space in a one-to-one manner, and the spatial distribution of the at least one grid is the same as that of the at least one storage space; For each storage space in the at least one storage space, respectively obtaining a volume value of the remaining available space in each storage space; The volume value of the remaining available space in each storage space is filled into the grid corresponding to each storage space in the space distribution table to obtain a space usage table for the at least one storage space.

4. The method according to claim 3, characterized in that Determining the storage location of the to-be-stored file in the at least one storage space according to the usage of the at least one storage space includes: Determining the volume of the archive to be stored based on the physical information of the archive; Determining at least one candidate space in the at least one storage space based on the volume of the files to be stored and the space usage table, wherein each candidate space in the at least one candidate space is a storage space having a volume value of remaining available space in the at least one storage space greater than the volume of the files to be stored; For each candidate space in the at least one candidate space, determining a weight value of each candidate space respectively; The candidate space with the smallest weight value is used as the storage location for the file to be stored.

5. The method according to claim 4, characterized in that The step of determining a weight value of each candidate space in the at least one candidate space includes: Determine whether there are other candidate spaces in the 8-neighborhood of each candidate space; If so, the number of the other candidate spaces is used as the weight value of each candidate space; If it does not exist, the weight value of each candidate space is set to 0.

6. A file storage device, characterized in that: The device comprises: a scoring module, configured to determine a file score of the file to be stored based on the file information of the file to be stored, wherein the file information includes: file type, access history information, file physical information, and file owner information; wherein the file physical information is used to identify the physical characteristics of the file to be stored, the file owner information is used to identify the owner of the file to be stored, and the file score is used to identify the probability of the file to be stored being retrieved again; an area determination module, configured to determine a storage area for the to-be-stored archive based on the archive score, wherein the storage area includes at least one storage space, each of the at least one storage space being used to store archives; a positioning module, configured to obtain a usage status of the at least one storage space; and determine a storage location of the to-be-stored file in the at least one storage space according to the usage status of the at least one storage space; A storage module, used for placing the files to be stored into the storage location; Wherein, in determining the file score of the file to be stored according to the file information of the file to be stored, the scoring module is specifically used to: Determining the heat value of the file to be stored according to the file type; According to the file owner information, obtain the historical business information of the owner of the file to be stored; Determining a first business handled by the owner based on the owner's historical business information, wherein the first business is associated with the file to be stored; Determining the business type and business progress of the first business; Determining the number of second services in a historical service database according to the service type and service progress of the first service, wherein the service type of the second service is the same as that of the first service, and the service progress of the second service is greater than or equal to the service progress of the first service; Determining the number of third businesses in the second business, wherein the third business is a business in the second business that includes a file retrieval operation after the first business progress is completed, and the first business progress is the same as the first business progress; Determining the number of times the to-be-stored file has been accessed in the first service based on the access history information; determining, based on the business records of the second business, an average number of accesses to a first file, wherein the first file is accessed by the second business and the file type of the first file is the same as the file type of the file to be stored; Determine a prediction score based on the number of the second business, the number of the third business, the number of accesses to the to-be-stored file in the first business, and the average number of accesses to the first file, wherein the prediction score is used to identify the probability of the to-be-stored file being retrieved again after being stored; The prediction score is expressed by the following formula: Wherein, a represents the service type of the first service, b represents the service progress of the first service, and f represents the service type of the first service. a,b (i) represents the number of the third business, f a,b represents the number of the second service, h a Indicates the number of times the file to be stored is accessed in the first business, p a represents the average number of accesses to the first file, k1 is a constant; The file score of the file to be stored is determined according to the file physical information, the popularity value and the predicted score.

7. An electronic device, characterized in that: The method comprises a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the one or more programs include instructions for executing the steps in any one of the methods of claims 1 to 5.

8. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and the computer program is executed by a processor to implement the method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Service data storage method, application server and computer storage medium

    CN108052281A

  • Design drawing scoring method and device, computer readable storage medium and equipment

    CN111369633A