CN113554394A - File storage method and device, electronic equipment and storage medium - Google Patents

File storage method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113554394A
CN113554394A CN202110863872.0A CN202110863872A CN113554394A CN 113554394 A CN113554394 A CN 113554394A CN 202110863872 A CN202110863872 A CN 202110863872A CN 113554394 A CN113554394 A CN 113554394A
Authority
CN
China
Prior art keywords
file
stored
service
determining
storage
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110863872.0A
Other languages
Chinese (zh)
Inventor
王晓澍
刘聃
蔡浩
李靖阳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Bank Co Ltd
Original Assignee
Ping An Bank Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Bank Co Ltd filed Critical Ping An Bank Co Ltd
Priority to CN202110863872.0A priority Critical patent/CN113554394A/en
Publication of CN113554394A publication Critical patent/CN113554394A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/08Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
    • G06Q10/087Inventory or stock management, e.g. order filling, procurement or balancing against orders
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0631Resource planning, allocation, distributing or scheduling for enterprises or organisations
    • G06Q10/06313Resource planning in a project environment
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0639Performance analysis of employees; Performance analysis of enterprise or organisation operations
    • G06Q10/06393Score-carding, benchmarking or key performance indicator [KPI] analysis

Landscapes

  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Engineering & Computer Science (AREA)
  • Economics (AREA)
  • Strategic Management (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Development Economics (AREA)
  • Operations Research (AREA)
  • General Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Educational Administration (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Game Theory and Decision Science (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Biodiversity & Conservation Biology (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application relates to the technical field of warehousing management, and particularly discloses a method, a device, electronic equipment and a storage medium for storing archives, wherein the method for storing the archives comprises the following steps: determining a file score of the file to be stored according to file information of the file to be stored, wherein the file score is used for marking the probability that the file to be stored is taken out again; determining a storage area for storing the files according to the file scores, wherein the storage area comprises at least one storage space, and each storage space in the at least one storage space is used for storing the files; acquiring the use condition of the at least one storage space; according to the using condition of the at least one storage space, determining a storage position of the file to be stored in the at least one storage space; and putting the files to be stored into the storage position.

Description

File storage method and device, electronic equipment and storage medium
Technical Field
The invention relates to the technical field of warehousing management, in particular to a method and a device for storing files, electronic equipment and a storage medium.
Background
Currently, when an archiver deposits an archive, a common storage location allocation policy includes: positioning storage, random storage, nearby storage, classified storage and the like. However, after the files are stored, some files may be repeatedly extracted and stored, and some files may be stored in the storage space all the time. This has resulted in some cold door files occupying storage space that is convenient for access, and some hot door files being placed in locations that are difficult to access. Therefore, how to optimize the storage rule of the files through a reasonable storage position strategy improves the reasonability of the distribution of the storage positions of the files, and then improves the efficiency and timeliness of the file retrieval, so that the problem to be solved urgently is solved.
Disclosure of Invention
In order to solve the above problems in the prior art, the embodiment of the present application provides a method, an apparatus, an electronic device and a storage medium for storing archives, which can improve the rationality of the distribution of the storage positions of the archives and improve the efficiency and timeliness of the retrieval of the archives.
In a first aspect, an embodiment of the present application provides a method for storing an archive, including:
determining a file score of the file to be stored according to the file information of the file to be stored, wherein the file score is used for marking the probability that the file to be stored is taken out again;
determining a storage area for storing the files according to the file scores, wherein the storage area comprises at least one storage space, and each storage space in the at least one storage space is used for storing the files;
acquiring the use condition of at least one storage space;
according to the using condition of at least one storage space, determining a storage position of a file to be stored in the at least one storage space;
and putting the files to be stored into the storage position.
In a second aspect, embodiments of the present application provide a file storage device, including:
the system comprises a scoring module, a storage module and a storage module, wherein the scoring module is used for determining the score of the file to be stored according to the file information of the file to be stored, and the score of the file is used for marking the probability that the file to be stored is taken out again;
the system comprises an area determining module, a storage area and a storage module, wherein the area determining module is used for determining a storage area for storing files according to the file scores, the storage area comprises at least one storage space, and each storage space in the at least one storage space is used for storing the files;
the positioning module is used for acquiring the use condition of at least one storage space; according to the using condition of at least one storage space, determining a storage position of a file to be stored in the at least one storage space;
and the storage module is used for placing the files to be stored into the storage position.
In a third aspect, an embodiment of the present application provides an electronic device, including: a processor coupled to the memory, the memory for storing a computer program, the processor for executing the computer program stored in the memory to cause the electronic device to perform the method of the first aspect.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium having a computer program stored thereon, the computer program causing a computer to perform the method according to the first aspect.
In a fifth aspect, embodiments of the present application provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program, the computer operable to cause the computer to perform a method according to the first aspect.
The implementation of the embodiment of the application has the following beneficial effects:
in the embodiment of the application, the archive score for identifying the probability of taking out the archive to be stored again is obtained by analyzing the archive information of the archive to be stored. And then determining the storage area of the file to be stored according to the file score. And then, determining a storage position of the file to be stored in at least one storage space in the storage area according to the use condition of the storage area, and storing the file. From this, make the higher archives of access probability place with the place of easy access, improved the rationality that archives deposit position distributes, simultaneously, promote the efficiency and the ageing of archives transfer.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a schematic hardware structure diagram of a file storage device according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of a file storage method according to an embodiment of the present disclosure;
fig. 3 is a flowchart illustrating a method for determining a file score of a file to be stored according to file information of the file to be stored according to an embodiment of the present application;
fig. 4 is a flowchart illustrating a method for determining a predictive score according to historical service information and access historical information of an affiliate according to an embodiment of the present application;
FIG. 5 is a schematic diagram of an abstraction of a storage area into a diagrammatic form according to an embodiment of the present disclosure;
FIG. 6 is a schematic diagram of a space usage table with at least one storage space according to an embodiment of the present disclosure;
FIG. 7 is a schematic flow chart of a method for determining a storage location of a file to be stored in at least one storage space according to usage of the at least one storage space according to an embodiment of the present application;
FIG. 8 is a candidate spatial distribution diagram provided in an embodiment of the present application;
FIG. 9 is a weight distribution diagram of a candidate space according to an embodiment of the present disclosure;
FIG. 10 is a block diagram illustrating functional modules of an archive storage device according to an embodiment of the present disclosure;
fig. 11 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments of the present application. All other embodiments obtained by a person of ordinary skill in the art without any inventive work based on the embodiments in the present application are within the scope of protection of the present application.
The terms "first," "second," "third," and "fourth," etc. in the description and claims of this application and in the accompanying drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, result, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
First, referring to fig. 1, fig. 1 is a schematic diagram of a hardware structure of a file storage device according to an embodiment of the present disclosure. The archive storage device 100 comprises at least one processor 101, a communication line 102, a memory 103 and at least one communication interface 104.
In this embodiment, the processor 101 may be a general processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more ics for controlling the execution of programs according to the present disclosure.
The communication link 102, which may include a path, carries information between the aforementioned components.
The communication interface 104 may be any transceiver or other device (e.g., an antenna, etc.) for communicating with other devices or communication networks, such as an ethernet, RAN, Wireless Local Area Network (WLAN), etc.
The memory 103 may be, but is not limited to, 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, an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disk storage, optical disk storage (including compact disc, laser disc, optical disc, digital versatile disc, blu-ray disc, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer.
In this embodiment, the memory 103 may be independent and connected to the processor 101 through the communication line 102. The memory 103 may also be integrated with the processor 101. The memory 103 provided in the embodiments of the present application may generally have a nonvolatile property. The memory 103 is used for storing computer-executable instructions for executing the scheme of the application, and is controlled by the processor 101 to execute. The processor 101 is configured to execute computer-executable instructions stored in the memory 103, thereby implementing the methods provided in the embodiments of the present application described below.
In alternative embodiments, computer-executable instructions may also be referred to as application code, which is not specifically limited in this application.
In alternative embodiments, processor 101 may include one or more CPUs, such as CPU0 and CPU1 of FIG. 1.
In an alternative embodiment, archive storage device 100 may include multiple processors, such as processor 101 and processor 107 in FIG. 1. Each of these processors may be a single-core (single-CPU) processor or a multi-core (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).
In an alternative embodiment, if the archive storage 100 is a server, the archive storage 100 may further include an output device 105 and an input device 106. The output device 105 is in communication with the processor 101 and may display information in a variety of ways. For example, the output device 105 may be a Liquid Crystal Display (LCD), a Light Emitting Diode (LED) display device, a Cathode Ray Tube (CRT) display device, a projector (projector), or the like. The input device 106 is in communication with the processor 101 and may receive user input in a variety of ways. For example, the input device 106 may be a mouse, a keyboard, a touch screen device, or a sensing device, among others.
The archive storage device 100 may be a general-purpose device or a special-purpose device. The present embodiment does not limit the type of the archive storage device 100.
Hereinafter, a file storage method disclosed in the present application will be described:
referring to fig. 2, fig. 2 is a schematic flow chart illustrating a file storage method according to an embodiment of the present disclosure. The file storage method comprises the following steps:
201: and determining the grade of the file to be stored according to the file information of the file to be stored.
In this embodiment, the profile score is used to identify the probability that the file to be deposited will be retrieved again. Illustratively, the profile information may include: archive type, access history information, archive physical information and archive person information, wherein the archive physical information is used for identifying physical characteristics of the archive to be stored, such as: size information, weight information, shape information, material information, etc. of the archive, and archive person information for identifying the information of the person to whom the archive is to be deposited, such as: if the file is the third-page work experience file, the attributive person of the file should be the third-page experience person described by the file, and the file person information is the personal information of the third-page.
Based on this, the present application provides a method for determining a score of a file to be stored according to file information of the file to be stored, as shown in fig. 3, specifically including:
301: and determining the heat value of the file to be stored according to the file type.
In this embodiment, different types of files may be scored according to historical file access data, for example, the higher the frequency of accessing a certain type of file, the higher the corresponding heat value. Therefore, the heat value corresponding to the type can be quickly searched through the file type of the file to be stored.
302: and acquiring historical service information of an affiliate of the file to be stored according to the file person information.
In this embodiment, the history service transacted by the archives in the set time period can be queried according to the information of the archives. For example, a time period within 3 months of the current time may be selected as the preset time period.
303: and determining a prediction score according to the historical service information and the access historical information of the attribution.
In this embodiment, the predicted score is used to identify the score that identifies the likelihood that the archive to be deposited will be retrieved again after it is deposited. Illustratively, the present application provides a method for determining a predicted score according to historical service information and access history information of a home, as shown in fig. 4, specifically including:
401: and determining the first service transacted by the attribution according to the historical service information of the attribution.
In this embodiment, the first service is associated with the archive to be deposited. Illustratively, the first service may be a service that invoked the tape access profile. Specifically, the archives that wait to deposit at present are archives A, and through the inquiry, the business that archives people handled in 3 months has: service 1, service 2, and service 3. If records for calling the archive Z exist in the service 1 and the service 3, the service 1 and the service 3 are the first service.
402: and determining the service type and the service progress of the first service.
403: and determining the number of the second services in the historical service library according to the service type and the service progress of the first service.
In this embodiment, the service type of the second service is the same as the service type 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. Illustratively, the examples of the service 1 and the service 3 are continued, wherein the service type of the service 1 is Y, and the progress is the second stage; the service type of the service 3 is X, and the progress is the fourth stage. Then, all the services with the service type of Y and the progress of at least the second stage and all the services with the service type of X and the progress of at least the fourth stage are searched in the historical service library as the second services, and the number of the second services is counted.
404: the number of third services is determined in the second service.
In this embodiment, the third service is a service in which a file transfer operation exists after the first service progress is executed in the second service, and the first service progress is the same as the service progress of the first service. Illustratively, the examples of the service 1 and the service 3 are continued, and the third service is a service which calls a file operation after the second stage in all the services whose service type is Y and whose progress is at least the second stage; and in all the services with the service type of X and the progress of at least the fourth stage, a service for calling the file operation exists after the fourth stage.
405: and determining the access times of the file to be stored in the first service according to the access history information.
406: and determining the average access times of the first file according to the service record of the second service.
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. Illustratively, following the above example of service 1 and service 3, the file to be currently stored is the file Z, the file type is a, the first file is called by the second service, and the file type is a.
407: and determining a prediction score according to the number of the second services, the number of the third services, the access times of the files to be stored in the first services and the average access times of the first files.
In this embodiment, the prediction score can be expressed by formula (i):
Figure BDA0003182394090000071
wherein a represents the service type of the first service; b represents the business progress of the first business; f. ofa,b(i) The number of events for which the type a service calls the archive again after the progress b, that is, the number of the third services; f. ofa,bThe total number of the services of which the progress is greater than the b in the type a services is represented, namely the number of the second services; h isaRepresenting the access times of the files to be stored in the first service; p is a radical ofaRepresenting the average access times of the first file; at the same time, to prevent fa,bIs 0, k is a constant, and 1 is usually desirable.
304: and determining the grade of the archive to be stored according to the physical information, the heat value and the prediction value of the archive.
In this embodiment, the archive physical information may include: size information and weight information of the file to be stored. Based on the method, the density value of the file to be stored can be determined according to the size information and the weight information of the file to be stored; then, multiplying the heat value and the prediction value to obtain a first product; and finally, carrying out weighted summation on the first product and the density value of the file to be stored to obtain a file score.
Illustratively, since the profile is generally a cuboid, the size information may include length, width, and height information. Therefore, the score of the file to be stored can be represented by a formula (II):
Figure BDA0003182394090000081
wherein 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; k represents the width of the file to be stored; h represents the height of the file to be stored.
Therefore, the access cost of the files to be stored can be described more accurately by the obtained scores through reflecting the heat value of the access heat of the files to be stored, reflecting the prediction score of the files to be stored which are called again and reflecting the physical information of the files to be stored which are accessed with difficulty, namely, the subsequent position distribution is more reasonable.
202: and determining a storage area for storing the files according to the file scores.
In the present embodiment, the file storage device may be partitioned in advance, for example, a middle area of the storage device closest to the entrance of the storage space may be a first equal area, an upper area above the middle area may be a second equal area, a lower area below the middle area may be a third equal area, a middle area of the storage device second closest to the entrance of the storage space may be a fourth equal area, and so on. Wherein, each storage area comprises at least one storage space, and each storage space in the at least one storage space is used for storing files.
Thus, each zone is correlated to the profile score based on the proportion of all storage spaces occupied by the at least one storage space corresponding to each storage zone. Illustratively, the first equal area corresponds to a storage space that occupies 5% of all storage space, and the first equal area corresponds to the first 5% of the archival score. Specifically, if the score is a percentile, the first rank region corresponds to the score interval [95,100 ]. In other words, if the file score of the tape storage file is 97, the corresponding storage area is the first-class area.
203: the usage of at least one storage space is obtained.
In this embodiment, the storage area may be abstracted into a graph form. Illustratively, the spatial distribution table may be established according to 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 one by one, and the spatial distribution of the at least one grid is the same as the at least one storage space. Fig. 5 is a schematic diagram showing an abstraction of the storage area into a form of a graph, in which a shaded portion corresponds to a position of a non-storage space in the storage area, for example, a position of a display screen disposed on the smart file cabinet in fig. 5.
Then, for each storage space in at least one storage space, respectively obtaining the volume value of the remaining available space in each storage space; and filling the volume value of the remaining available space in each storage space into a grid corresponding to each storage space in the space distribution table to obtain a space usage table of the at least one storage space. As shown in fig. 6, in which a cell represents a storage space, the numbers in the cell represent the remaining available space (in units dm) in the storage space3)。
204: according to the using condition of the at least one storage space, a storage position where the file is to be stored is determined in the at least one storage space.
In this embodiment, a method for determining a storage location of a file to be stored in at least one storage space according to a usage of the at least one storage space is provided, as shown in fig. 7, specifically including:
701: and determining the volume of the file to be stored according to the physical information of the file.
702: at least one candidate space is determined in the at least one storage space based on the volume of the archive to be stored and the table of space usage.
In this embodiment, each of the at least one candidate space is a storage space in which a volume value of a remaining available space in the at least one storage space is larger than a volume of the file to be stored. Illustratively, assume that the volume of the archive to be stored is 20dm3Continuing with at least one storage space as illustrated in FIG. 6 aboveThe space usage table of (2) can obtain a candidate space distribution map as shown in fig. 8, in which the shaded portion is a storage space with insufficient remaining space.
703: for each of the at least one candidate space, a weight value for each candidate space is determined, respectively.
In the present embodiment, it is possible to determine whether or not another candidate space exists in the 8-neighborhood of each candidate space. If the candidate space exists, taking the number of other candidate spaces as the weight value of each candidate space; if not, the weight value of each candidate space is set to 0. Thus, the weight distribution map of the candidate space shown in fig. 9 can be obtained by following the candidate space distribution map shown in fig. 8.
704: and taking the candidate space with the minimum weight value as a storage position for storing the file.
Therefore, the storage space with the minimum weight is selected as the final storage position, so that the files are preferentially stored in the areas with dense files, subsequent statistics and checking are facilitated, and the file management efficiency is improved.
205: and putting the files to be stored into the storage position.
In summary, in the archive storage method provided by the present invention, the archive information of the archive to be stored is analyzed, so as to obtain the archive score that identifies the probability that the archive to be stored is taken out again. And then determining the storage area of the file to be stored according to the file score. And then, determining a storage position of the file to be stored in at least one storage space in the storage area according to the use condition of the storage area, and storing the file. From this, make the higher archives of access probability place with the place of easy access, improved the rationality that archives deposit position distributes, simultaneously, promote the efficiency and the ageing of archives transfer.
Referring to fig. 10, fig. 10 is a block diagram illustrating functional modules of a file storage device according to an embodiment of the present disclosure. As shown in fig. 10, the file storage apparatus 1000 includes:
the scoring module 1001 is configured to determine a score of the file to be stored according to file information of the file to be stored, where the score of the file is used to identify a probability that the file to be stored is taken out again;
the area determining module 1002 is configured to determine a storage area where the file is to be stored according to the file score, where the storage area includes at least one storage space, and each storage space in the at least one storage space is used for storing the file;
a positioning module 1003 for acquiring a use condition of at least one storage space; according to the using condition of at least one storage space, determining a storage position of a file to be stored in the at least one storage space;
and a storage module 1004 for placing the files to be stored into the storage position.
In an embodiment of the present invention, the profile information includes: the method comprises the steps of recording the file type, access history information, file physical information and file person information, wherein the file physical information is used for identifying the physical characteristics of the file to be stored, and the file person information is used for identifying the information of an affiliate of the file to be stored;
based on this, in the aspect of determining the archive score of the archive to be stored according to the archive information of the archive to be stored, the scoring module 1001 is specifically configured to:
determining the heat value of the file to be stored according to the file type;
acquiring historical service information of an affiliate of a file to be stored according to the file person information;
determining a prediction score according to the historical service information and the access historical information of the attribution, wherein the prediction score is used for identifying the score of the possibility that the file to be stored is taken out again after being stored;
and determining the grade of the archive to be stored according to the physical information, the heat value and the prediction value of the archive.
In an embodiment of the present invention, in determining a prediction score according to historical service information and access history information of a home agent, the scoring module 1001 is specifically configured to:
determining a first service transacted by the affiliate according to the historical service information of the affiliate, wherein the first service is associated with the file to be stored;
determining the service type and the service progress of a first service;
determining the number of second services in a historical service library according to the service type and the service progress of the first service, wherein the service type of the second service is the same as the service type 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 services in the second services, wherein the third services are services for calling file operation after the first service progress is executed in the second services, and the first service progress is the same as the service progress of the first services;
determining the access times of the files to be stored in the first service according to the access history information;
determining the average access times of the first file according to the service record of the second service, wherein the first file is called by the second service, and the file type of the first file is the same as that of the file to be stored;
and determining a prediction score according to the number of the second services, the number of the third services, the access times of the files to be stored in the first services and the average access times of the first files.
In an embodiment of the present invention, the archival physical information includes: the size information and the weight information of the files to be stored;
based on this, in the aspect of determining the score of the archive to be stored according to the physical information, the heat value and the prediction score of the archive, the scoring module 1001 is specifically configured to:
determining the density value of the file to be stored according to the size information and the weight information of the file to be stored;
multiplying the heat value and the prediction value to obtain a first product;
and carrying out weighted summation on the first product and the density value of the file to be stored to obtain a file score.
In an embodiment of the present invention, in terms of obtaining a usage situation of at least one storage space, the positioning module 1003 is specifically configured to:
establishing a space distribution table according to the space distribution of at least one storage space, wherein the use condition table comprises at least one grid, the at least one grid is in one-to-one correspondence with the at least one storage space, and the space 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 the volume value of the remaining available space in each storage space;
and filling the volume value of the remaining available space in each storage space into a grid corresponding to each storage space in the space distribution table to obtain a space usage table of at least one storage space.
In an embodiment of the present invention, in terms of determining, according to a usage condition of at least one storage space, a storage location of a file to be stored in the at least one storage space, the positioning module 1003 is specifically configured to:
determining the volume of the file to be stored according to the physical information of the file;
determining at least one candidate space in at least one storage space according to the volume of the archive to be stored and a space usage table, wherein each candidate space in the at least one candidate space is a storage space of which the volume value of the remaining available space in the at least one storage space is larger than the volume of the archive to be stored;
for each candidate space in at least one candidate space, respectively determining a weight value of each candidate space;
and taking the candidate space with the minimum weight value as a storage position for storing the file.
In an embodiment of the present invention, in determining a weight value of each candidate space for each candidate space of the at least one candidate space, the positioning module 1003 is specifically configured to:
determining whether other candidate spaces exist in 8 neighborhoods of each candidate space;
if the candidate space exists, taking the number of other candidate spaces as the weight value of each candidate space;
if not, the weight value of each candidate space is set to 0.
Referring to fig. 11, fig. 11 is a schematic structural diagram of an electronic device provided in the embodiment of the present application, where the electronic device 1100 is disposed in a first tenant system. As shown in fig. 11, the electronic device 1100 includes a transceiver 1101, a processor 1102, and a memory 1103. Connected to each other by a bus 1104. The memory 1103 is used to store computer programs and data, and may transmit the data stored in the memory 1103 to the processor 1102.
The processor 1102 is configured to read the computer program in the memory 1103 to perform the following operations:
determining a file score of the file to be stored according to the file information of the file to be stored, wherein the file score is used for marking the probability that the file to be stored is taken out again;
determining a storage area for storing the files according to the file scores, wherein the storage area comprises at least one storage space, and each storage space in the at least one storage space is used for storing the files;
acquiring the use condition of at least one storage space;
according to the using condition of at least one storage space, determining a storage position of a file to be stored in the at least one storage space;
and putting the files to be stored into the storage position.
In an embodiment of the present invention, the profile information includes: the method comprises the steps of recording the file type, access history information, file physical information and file person information, wherein the file physical information is used for identifying the physical characteristics of the file to be stored, and the file person information is used for identifying the information of an affiliate of the file to be stored;
based on this, in determining the score of the archive to be deposited according to the archive information of the archive to be deposited, the processor 1102 is specifically configured to perform the following operations:
determining the heat value of the file to be stored according to the file type;
acquiring historical service information of an affiliate of a file to be stored according to the file person information;
determining a prediction score according to the historical service information and the access historical information of the attribution, wherein the prediction score is used for identifying the score of the possibility that the file to be stored is taken out again after being stored;
and determining the grade of the archive to be stored according to the physical information, the heat value and the prediction value of the archive.
In an embodiment of the present invention, in determining a prediction score according to historical service information and access history information of a home agent, the processor 1102 is specifically configured to:
determining a first service transacted by the affiliate according to the historical service information of the affiliate, wherein the first service is associated with the file to be stored;
determining the service type and the service progress of a first service;
determining the number of second services in a historical service library according to the service type and the service progress of the first service, wherein the service type of the second service is the same as the service type 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 services in the second services, wherein the third services are services for calling file operation after the first service progress is executed in the second services, and the first service progress is the same as the service progress of the first services;
determining the access times of the files to be stored in the first service according to the access history information;
determining the average access times of the first file according to the service record of the second service, wherein the first file is called by the second service, and the file type of the first file is the same as that of the file to be stored;
and determining a prediction score according to the number of the second services, the number of the third services, the access times of the files to be stored in the first services and the average access times of the first files.
In an embodiment of the present invention, the archival physical information includes: the size information and the weight information of the files to be stored;
based on this, in determining the score of the archive to be deposited according to the physical information, the heat value and the prediction score of the archive, the processor 1102 is specifically configured to perform the following operations:
determining the density value of the file to be stored according to the size information and the weight information of the file to be stored;
multiplying the heat value and the prediction value to obtain a first product;
and carrying out weighted summation on the first product and the density value of the file to be stored to obtain a file score.
In an embodiment of the present invention, in obtaining the usage of the at least one storage space, the processor 1102 is specifically configured to:
establishing a space distribution table according to the space distribution of at least one storage space, wherein the use condition table comprises at least one grid, the at least one grid is in one-to-one correspondence with the at least one storage space, and the space 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 the volume value of the remaining available space in each storage space;
and filling the volume value of the remaining available space in each storage space into a grid corresponding to each storage space in the space distribution table to obtain a space usage table of at least one storage space.
In an embodiment of the present invention, in determining a storage location in at least one storage space where a file is to be stored according to a usage of the at least one storage space, the processor 1102 is specifically configured to:
determining the volume of the file to be stored according to the physical information of the file;
determining at least one candidate space in at least one storage space according to the volume of the archive to be stored and a space usage table, wherein each candidate space in the at least one candidate space is a storage space of which the volume value of the remaining available space in the at least one storage space is larger than the volume of the archive to be stored;
for each candidate space in at least one candidate space, respectively determining a weight value of each candidate space;
and taking the candidate space with the minimum weight value as a storage position for storing the file.
In an embodiment of the present invention, in determining a weight value of each candidate space separately for each candidate space in at least one candidate space, the processor 1102 is specifically configured to:
determining whether other candidate spaces exist in 8 neighborhoods of each candidate space;
if the candidate space exists, taking the number of other candidate spaces as the weight value of each candidate space;
if not, the weight value of each candidate space is set to 0.
It should be understood that the archive storage device in the present application may include a smart Phone (e.g., Android Phone, iOS Phone, Windows Phone, etc.), a tablet computer, a palm computer, a notebook computer, a Mobile Internet device MID (MID), a robot, a wearable device, etc. The above-mentioned file storage device is merely exemplary, not exhaustive, and includes but is not limited to the above-mentioned file storage device. In practical applications, the above-mentioned archive storage device may further include: intelligent vehicle-mounted terminal, computer equipment and the like.
Through the above description of the embodiments, those skilled in the art will clearly understand that the present invention can be implemented by combining software and a hardware platform. With this understanding in mind, all or part of the technical solutions of the present invention that contribute to the background can be embodied in the form of a software product, which can be stored in a storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, etc., and includes instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods according to the embodiments or some parts of the embodiments.
Accordingly, the present application also provides a computer readable storage medium, which stores a computer program, wherein the computer program is executed by a processor to implement part or all of the steps of any one of the archive storage methods as 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 flash memory, and the like.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the archive storage methods as described in the above method embodiments.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are all alternative embodiments and that the acts and modules referred to are not necessarily required by the application.
In the above embodiments, the description of each embodiment has its own emphasis, and for parts not described in detail in a certain embodiment, reference may be made to the description of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is merely a logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit. The integrated unit may be implemented in the form of hardware, or may be implemented in the form of a software program module.
The integrated units, if implemented in the form of software program modules and sold or used as stand-alone products, may be stored in a computer readable memory. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a memory, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method described in the embodiments of the present application. And the aforementioned memory comprises: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, and the memory may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The foregoing detailed description of the embodiments of the present application has been presented to illustrate the principles and implementations of the present application, and the above description of the embodiments is only provided to help understand the methods and their core ideas of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A method of archiving, the method comprising:
determining a file score of the file to be stored according to file information of the file to be stored, wherein the file score is used for marking the probability that the file to be stored is taken out again;
determining a storage area for storing the files according to the file scores, wherein the storage area comprises at least one storage space, and each storage space in the at least one storage space is used for storing the files;
acquiring the use condition of the at least one storage space;
according to the using condition of the at least one storage space, determining a storage position of the file to be stored in the at least one storage space;
and putting the files to be stored into the storage position.
2. The method of claim 1,
the profile information includes: the method comprises the steps of obtaining archive type, access history information, archive physical information and archive person information, wherein the archive physical information is used for identifying physical characteristics of an archive to be stored, and the archive person information is used for identifying information of an affiliate of the archive to be stored;
according to the archive information of the archive to be stored, determining the score of the archive to be stored, comprising:
determining the heat value of the file to be stored according to the file type;
acquiring historical service information of an affiliate of the file to be stored according to the file person information;
determining a prediction score according to the historical service information and the access historical information of the attribution, wherein the prediction score is used for identifying the score of the possibility that the archive to be stored is taken out again after being stored;
and determining the archive score of the archive to be stored according to the archive physical information, the heat value and the prediction score.
3. The method of claim 2, wherein determining a predictive score based on the historical business information and the access history information for the affiliate comprises:
determining a first service transacted by the owner according to the historical service information of the owner, wherein the first service is associated with the file to be stored;
determining the service type and the service progress of the first service;
determining the number of second services in a historical service library according to the service type and the service progress of the first service, wherein the service type of the second service is the same as the service type 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 services in the second services, wherein the third services are services of which the file invoking operation exists after a first service progress is executed in the second services, and the first service progress is the same as the service progress of the first services;
determining the access times of the files to be stored in the first service according to the access history information;
determining the average access times of a first file according to the service record of the second service, wherein the first file is called by the second service, and the file type of the first file is the same as that of the file to be stored;
and determining the prediction score according to the number of the second services, the number of the third services, the access times of the files to be stored in the first services and the average access times of the first files.
4. The method of claim 2,
the archive physical information comprises: the size information and the weight information of the files to be stored;
the determining the archive score of the archive to be stored according to the archive physical information, the heat value and the prediction score comprises:
determining the density value of the file to be stored according to the size information and the weight information of the file to be stored;
multiplying the heat value and the prediction value to obtain a first product;
and carrying out weighted summation on the first product and the density value of the file to be stored to obtain the file score.
5. The method of claim 1, wherein said obtaining usage of said at least one storage space comprises:
establishing a spatial distribution table according to spatial distribution of the at least one storage space, wherein the use condition table comprises at least one grid, the at least one grid is in one-to-one correspondence with the at least one storage space, 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 acquiring a volume value of the remaining available space in each storage space;
and filling 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.
6. The method of claim 5, wherein the determining the storage location of the archive to be stored in the at least one storage space according to the usage of the at least one storage space comprises:
determining the volume of the file to be stored according to the physical information of the file;
determining at least one candidate space in the at least one storage space according to the volume of the archive to be stored and the space usage table, wherein each candidate space in the at least one candidate space is a storage space in which the volume value of the remaining available space in the at least one storage space is larger than the volume of the archive to be stored;
for each candidate space in the at least one candidate space, respectively determining a weight value of each candidate space;
and taking the candidate space with the minimum weight value as the storage position of the file to be stored.
7. The method of claim 6, wherein determining, for each of the at least one candidate spaces, a weight value for each candidate space separately comprises:
determining whether there are other candidate spaces in the 8 neighborhoods of each candidate space;
if yes, taking the number of the other candidate spaces as the weight value of each candidate space;
and if the candidate space does not exist, the weight value of each candidate space is set to be 0.
8. An archive storage device, characterized in that the device comprises:
the system comprises a scoring module, a storage module and a storage module, wherein the scoring module is used for determining the score of a file to be stored according to the file information of the file to be stored, and the score of the file is used for marking the probability that the file to be stored is taken out again;
the area determining module is used for determining a storage area for storing the files according to the file scores, wherein the storage area comprises at least one storage space, and each storage space in the at least one storage space is used for storing the files;
the positioning module is used for acquiring the use condition of the at least one storage space; according to the using condition of the at least one storage space, determining a storage position of the file to be stored in the at least one storage space;
and the storage module is used for placing the files to be stored into the storage position.
9. An electronic device comprising 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, the one or more programs including instructions for performing the steps in the method of any of claims 1-7.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which is executed by a processor to implement the method according to any one of claims 1-7.
CN202110863872.0A 2021-07-27 2021-07-27 File storage method and device, electronic equipment and storage medium Pending CN113554394A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110863872.0A CN113554394A (en) 2021-07-27 2021-07-27 File storage method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110863872.0A CN113554394A (en) 2021-07-27 2021-07-27 File storage method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113554394A true CN113554394A (en) 2021-10-26

Family

ID=78133281

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110863872.0A Pending CN113554394A (en) 2021-07-27 2021-07-27 File storage method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113554394A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114386937A (en) * 2021-12-21 2022-04-22 苏州永固智能科技有限公司 Internet of things RFID-based file management compact shelf and management method thereof
WO2024066786A1 (en) * 2022-09-26 2024-04-04 北京融安特智能科技股份有限公司 Method and system for out-of-order placement of archive box, and smart terminal and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114386937A (en) * 2021-12-21 2022-04-22 苏州永固智能科技有限公司 Internet of things RFID-based file management compact shelf and management method thereof
WO2024066786A1 (en) * 2022-09-26 2024-04-04 北京融安特智能科技股份有限公司 Method and system for out-of-order placement of archive box, and smart terminal and storage medium

Similar Documents

Publication Publication Date Title
CN113554394A (en) File storage method and device, electronic equipment and storage medium
WO2021068645A1 (en) Method and apparatus for determining warehousing storage location, electronic device, and storage medium
WO2021008147A1 (en) Method and device for determining warehouse inventory
CN109767150A (en) Information-pushing method and device
CN107911448A (en) Content pushing method and device
CN108288208A (en) The displaying object of image content-based determines method, apparatus, medium and equipment
CN109062936A (en) A kind of data query method, computer readable storage medium and terminal device
US10521809B2 (en) System and method for grouping time series data for forecasting purposes
CN109697019A (en) The method and system of data write-in based on FAT file system
WO2023226465A1 (en) Item storage method, apparatus and device, and computer-readable medium
CN104391947B (en) Magnanimity GIS data real-time processing method and system
CN109450963A (en) Information push method and terminal device
CN109299197A (en) A kind of partition method of data cube, system and terminal device
CN113780912A (en) Method and device for determining safety stock
CN114070847A (en) Current limiting method, device, equipment and storage medium of server
WO2023029874A1 (en) Resource quantity determination method and apparatus, electronic device, and storage medium
CN113190549B (en) Multidimensional table data calling method, multidimensional table data calling device, server and storage medium
CN110533351A (en) The method and apparatus for determining target storage space
CN112926907B (en) Warehouse inventory layout method and device
CN114036104A (en) Cloud filing method, device and system for re-deleted data based on distributed storage
CN112364181A (en) Insurance product matching degree determination method and device
CN107705089B (en) Service processing method, device and equipment
CN113434754A (en) Method and device for determining recommended API (application program interface) service, electronic equipment and storage medium
CN108959517A (en) File management method, device and electronic equipment
CN109254985A (en) Method for exhibiting data and device, the electronic equipment of database

Legal Events

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