CN111427870B - Resource management method, device and equipment - Google Patents

Resource management method, device and equipment Download PDF

Info

Publication number
CN111427870B
CN111427870B CN202010297107.2A CN202010297107A CN111427870B CN 111427870 B CN111427870 B CN 111427870B CN 202010297107 A CN202010297107 A CN 202010297107A CN 111427870 B CN111427870 B CN 111427870B
Authority
CN
China
Prior art keywords
resource
data
processed
library
information
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.)
Active
Application number
CN202010297107.2A
Other languages
Chinese (zh)
Other versions
CN111427870A (en
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.)
Agree Technology Co ltd
Original Assignee
Agree Technology 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 Agree Technology Co ltd filed Critical Agree Technology Co ltd
Priority to CN202010297107.2A priority Critical patent/CN111427870B/en
Publication of CN111427870A publication Critical patent/CN111427870A/en
Application granted granted Critical
Publication of CN111427870B publication Critical patent/CN111427870B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/21Design, administration or maintenance of databases
    • G06F16/217Database tuning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • G06F16/24552Database cache management
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention discloses a resource management method which is applied to a resource management database, wherein the resource management database comprises a resource quantitative slow library, a resource total classification library and a resource orientation association library; the method comprises the following steps: acquiring data to be processed and a processing instruction, wherein the processing instruction comprises a storage instruction or a reading instruction; determining characteristic information corresponding to the data to be processed; and managing the resources respectively stored in the resource quantitative cache, the resource total classification library and the resource orientation association library according to the processing instruction, the data to be processed and the element information in the characteristic information. The method comprises the steps of obtaining a storage path of data to be read through a resource quantitative cache, and obtaining the data from a resource whole cache, a resource whole classification library and/or a resource orientation association library according to the storage path; this shortens the time to extract the data to be read or indexed from the database, thereby improving the speed of data extraction using the database.

Description

Resource management method, device and equipment
Technical Field
The present invention relates to the field of data processing, and in particular, to a method, an apparatus, and a device for resource management.
Background
At present, data generated by each service are stored in a database, so that clients, technicians and the like can conveniently store or read the data in the database through the client.
However, with the rapid development of information technology, the amount of data generated by each service is increasing, so when the amount of data in the database reaches tens of thousands, even hundreds of millions, the speed of data reading or searching by using the database is greatly reduced, thereby greatly reducing the user experience.
Accordingly, there is a need for a database management method that can improve data reading or searching.
Disclosure of Invention
The invention provides a resource management method and a resource management device, which are used for shortening the time for extracting data to be read or indexed from a database, so that the speed for extracting the data by using the database is improved, and the user experience is further improved.
In a first aspect, the present invention provides a resource management method, where the method is applied to a resource management database, where the resource management database includes a resource quantitative cache, a resource full classification library, and a resource orientation association library; the method comprises the following steps:
Acquiring data to be processed and a processing instruction, wherein the processing instruction comprises a storage instruction or a reading instruction;
determining characteristic information corresponding to the data to be processed, wherein the characteristic information comprises at least one element information corresponding to the data to be processed;
and managing resources respectively stored in the resource quantitative cache, the resource total classification library and the resource orientation association library according to the processing instruction, the data to be processed and the element information in the characteristic information.
In a second aspect, the present invention provides a resource management device, including:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring data to be processed and processing instructions, and the processing instructions comprise storage instructions or reading instructions;
the determining unit is used for determining characteristic information corresponding to the data to be processed, wherein the characteristic information comprises at least one element information corresponding to the data to be processed;
and the management unit is used for managing the resources respectively stored in the resource quantitative cache library, the resource total classification library and the resource orientation association library according to the processing instruction, the data to be processed and the element information in the characteristic information.
In a third aspect, the present invention provides a readable medium comprising execution instructions which, when executed by a processor of an electronic device, perform the method according to any of the first aspects.
In a fourth aspect, the present invention provides an electronic device comprising a processor and a memory storing execution instructions, the processor performing the method according to any one of the first aspects when executing the execution instructions stored in the memory.
According to the technical scheme, when the data to be processed is stored in the resource management database, the data in the data to be processed is classified according to the data to be processed and element information in the corresponding characteristic information of the data to be processed, and the classified various data are respectively stored in the resource total cache library, the resource total classification library and the resource directional association library; and then, storing the storage path information of various data corresponding to the data to be processed in each database into the resource quantitative cache. In this way, when the data in the resource management database needs to be read or indexed, the storage path corresponding to the data can be determined based on the resource quantitative cache and according to the category corresponding to the data; and acquiring the data from the database corresponding to the storage path according to the storage path. Compared with the prior art, the method does not need to search the data to be read or indexed one by one from the database, but can acquire the storage path of the data to be read or indexed through the resource quantitative cache, and directly acquire the data from the resource full cache, the resource full classification library and/or the resource directional association library according to the storage path; therefore, the time for extracting the data to be read or indexed from the database is shortened, the speed for extracting the data by using the database is increased, and the user experience is further improved.
Further effects of the above-described non-conventional preferred embodiments will be described below in connection with the detailed description.
Drawings
In order to more clearly illustrate the embodiments of the invention or the prior art solutions, the drawings which are used in the description of the embodiments or the prior art will be briefly described below, it being obvious that the drawings in the description below are only some of the embodiments described in the present invention, and that other drawings can be obtained according to these drawings without inventive faculty for a person skilled in the art.
FIG. 1 is a schematic diagram of an exemplary application scenario provided in an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a resource management method according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating another resource management method according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating another resource management method according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a resource management device according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to specific embodiments and corresponding drawings. It will be apparent that the described embodiments are only some, but not all, embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
In order to solve the problem of low data extraction speed by using a database in the prior art. The invention provides a resource management method which is applied to a resource management database, wherein the resource management database comprises a resource quantitative cache, a resource total classification library and a resource orientation association library. When the data to be processed is stored in the resource management database, classifying the data in the data to be processed according to the data to be processed and element information in the corresponding characteristic information of the data to be processed, and respectively storing the classified various data into the resource total cache library, the resource total classification library and the resource directional association library; and then, storing the storage path information of various data corresponding to the data to be processed in each database into the resource quantitative cache. In this way, when the data in the resource management database needs to be read or indexed, the storage path corresponding to the data can be determined based on the resource quantitative cache and according to the category corresponding to the data; and acquiring the data from the database corresponding to the storage path according to the storage path. Compared with the prior art, the method does not need to search the data to be read or indexed one by one from the database, but can acquire the storage path of the data to be read or indexed through the resource quantitative cache, and directly acquire the data from the resource full cache, the resource full classification library and/or the resource directional association library according to the storage path; therefore, the time for extracting the data to be read or indexed from the database is shortened, the speed for extracting the data by using the database is increased, and the user experience is further improved.
By way of example, the embodiments of the present invention may be applied to a scenario as shown in fig. 1. In this scenario, a storage terminal 101, a server 102, and a reading terminal 103 are included; the server 102 is provided with a resource management database, wherein the resource management database comprises a resource quantitative slow library, a resource total classification library and a resource orientation association library; it should be noted that the storage terminal 101 and the reading terminal 103 may be terminals with communication functions, for example, may be terminal devices such as a smart phone, a tablet computer, a desktop computer, a notebook computer, etc., it is to be understood that the storage terminal 101 and the reading terminal 103 may be the same terminal device or different terminal devices, which is not limited in this embodiment.
In this scenario, the terminal 101 may send data to be processed and a storage instruction to the server 102 in response to a data storage operation; after the server 102 obtains the data to be processed and the storage instruction, the server 102 may determine the feature information corresponding to the data to be processed, where the feature information may include at least one element information corresponding to the data to be processed; server 102 may then manage the resources stored by each of the resource quantitative repository, the resource full-scale classification repository, and the resource targeting association repository according to the storage instructions, the data to be processed, and the element information in the feature information. In addition, the terminal 103 may send data to be processed and a read instruction to the server 102 in response to the data read operation; after the server 102 obtains the data to be processed and the reading instruction, the server 102 may determine the feature information corresponding to the data to be processed, where the feature information may include at least one element information corresponding to the data to be processed; then, the server 102 may manage the resources stored in the resource quantitative cache, the resource total classification library and the resource orientation association library according to the read instruction, the data to be processed and the element information in the feature information. Therefore, the data to be read or indexed do not need to be searched one by one from the database in the scene, but a storage path of the data to be read or indexed can be obtained through the resource quantitative cache, and the data is directly obtained from the resource full cache, the resource full classification library and/or the resource orientation association library according to the storage path; therefore, the time for extracting the data to be read or indexed from the database is shortened, the speed for extracting the data by using the database is increased, and the user experience is further improved.
It will be appreciated that in the above application scenario, although some of the actions of the embodiments of the present application are described as being performed by the terminal 101, some of the actions are performed by the server 102, and some of the actions are performed by the terminal 103, these actions may be performed entirely by any one or both of the terminal 101, the server 102, and the terminal 103. The present application is not limited to the execution subject, and may be executed by performing the operations disclosed in the embodiments of the present application.
It should be noted that the above application scenario is only shown for the convenience of understanding the present application, and embodiments of the present application are not limited in this respect. Rather, embodiments of the application may be applied to any scenario where applicable.
Various non-limiting embodiments of the present application are described in detail below with reference to the attached drawing figures.
Referring to FIG. 2, a resource management method in an embodiment of the application is shown, the method being applied to a resource management database, wherein the resource management database comprises a resource quantification cache, a resource total classification library and a resource targeting association library. In this embodiment, the method may include, for example, the steps of:
S201: and acquiring data to be processed and processing instructions.
The data to be processed may be understood as data information to be processed, for example, the data to be processed may be data to be added to the resource management database, or may be data to be stored in the resource management database after the data stored in the resource management database is processed (modified or deleted). It should also be emphasized that the data to be processed may be various types of data such as documents, pictures, tables, program codes, etc., and in this embodiment, the file type of the data to be processed is not limited.
Processing instructions may be understood as instructions that require processing of data to be processed, where the processing instructions may reflect the manner in which the data to be processed needs to be processed based on a resource management database. In one implementation, the processing instruction may include a storage instruction or a read instruction, where the storage instruction may be understood as an instruction that needs to store the data to be processed into the resource management database, that is, an instruction for reflecting a save process that needs to be performed on the data to be processed; the read instruction may be understood as an instruction that needs to import or extract data corresponding to the data to be processed in the resource management database, that is, an instruction for reflecting that export processing needs to be performed on the data corresponding to the data to be processed.
As an example, when the resource management database is started, for example, a management interface of the resource management database is started, a global registration resource monitoring event can be given, so that whenever a user performs operation on one file or multiple files simultaneously based on the resource management database, the files operated by the user can be determined in real time through the monitor, and specific operation modes corresponding to the files are determined, for example, adding content to the content of the files, modifying the content, deleting the content, or searching information corresponding to the files. Thus, when the monitor monitors that the file is operated by the user, the file can be used as data to be processed, and processing instructions are determined according to the operation corresponding to the file. For example, after a user is monitored to open a file in the resource management database, deleting a segment of a character string in the file, and clicking a save button, the file with the segment of the character string deleted can be determined as data to be processed, and the processing instruction is a save instruction; when the fact that the user inputs the character string 'contract' is monitored, and the 'search' button is clicked, the character string 'contract' can be used as data to be processed, and the processing instruction is a reading instruction.
If a plurality of data to be processed and corresponding processing instructions thereof are detected, the plurality of data to be processed and corresponding processing instructions thereof may be processed at the same time, or the plurality of data to be processed and corresponding processing instructions thereof may be processed sequentially.
S202: and determining the characteristic information corresponding to the data to be processed.
In order to realize that in the process of reading the data in the resource management database, the storage path of the data to be read or indexed can be directly obtained through the resource quantitative cache library according to the category corresponding to the data, and the data can be directly obtained from the resource full cache library, the resource full classification library and/or the resource orientation association library according to the storage path, so that the time for extracting the data to be read or indexed from the database is shortened.
In this embodiment, after determining the data to be processed, the feature information corresponding to the data to be processed may be determined first, for example, each node in the data to be processed may be parsed first to match with a preset attribute feature field, and when the node matches with the preset attribute feature field, the content corresponding to the preset attribute feature field may be declared to the structural body Model for use in subsequent operations. The feature information may be understood as information capable of reflecting an attribute or a feature of the data to be processed, and for convenience of description, information in the feature information, each of which is capable of reflecting an attribute or a feature of the data to be processed, is referred to as element information in this embodiment, that is, the feature information may include at least one element information corresponding to the data to be processed. It can be appreciated that, since the feature information can reflect the attribute or the feature of the data to be processed, the data to be processed can be classified or the category corresponding to the data to be processed can be determined according to the feature information.
For example, assuming that the processing instruction is a store instruction, the feature information may include at least one element information of: file name (such as a project code), file type (such as xml, doc, abf, lfc, etc.), attribute information (such as caption attribute field, modification time, etc. other attributes); assuming that the processing instruction is a read instruction, the feature information may include at least one keyword, for example, the feature information may include: keywords of contracts, patents, last three months, etc.
S203: and managing resources respectively stored in the resource quantitative cache, the resource total classification library and the resource orientation association library according to the processing instruction, the data to be processed and the element information in the characteristic information.
In this embodiment, all or part of the data corresponding to each piece of feature information is stored in the resource total cache. The resource total classification library stores storage information corresponding to various file types and/or attribute information, such as file names, storage paths and other file attributes corresponding to all data in the resource management database, so that the number corresponding to the file types and/or attribute information corresponding to the current data can be counted in real time through the resource total classification library. The resource orientation association library stores reference information referenced in all or part of data corresponding to each feature information, for example, files referenced in all or part of data corresponding to each feature information. The resource quantitative cache stores various information corresponding to each characteristic information and path information respectively stored in the resource full cache, the resource full classification library and the resource orientation association library. In this way, the storage path of the data to be read or indexed can be obtained through the resource quantitative cache, and the data can be directly obtained from the resource full cache, the resource full classification library and/or the resource orientation association library according to the storage path; in this way, the time for extracting the data to be read or indexed from the database is shortened, thereby improving the speed of data extraction using the database.
As an example, when the processing instruction is a store instruction, the data to be processed may be stored to the resource full cache, and a storage path corresponding to the data to be processed may be determined; the file type and/or attribute information corresponding to the data to be processed can be stored in the resource total classification library, and the storage information corresponding to the file type and/or the attribute information in the resource total classification library is adjusted; storing the reference information corresponding to the data to be processed into the resource orientation association library, and determining a storage path corresponding to the reference information; and finally, storing the storage paths of various data corresponding to the characteristic information into the resource quantitative cache library.
As another example, when the processing instruction is a read instruction, the storage paths of various types of data corresponding to the data to be processed may be determined based on the resource quantitative cache according to the feature information corresponding to the data to be processed, and the data corresponding to the data to be processed may be read from the resource full cache, the resource full classification library and/or the resource directional association library according to the determined storage paths.
It should be noted that, in this embodiment, the data to be processed satisfies a preset storage condition, where the preset storage condition may include at least one of the following conditions: the operation times corresponding to the data to be processed are equal to or greater than a time threshold, or the last operation time corresponding to the data to be processed meets the target time condition. Wherein the target time condition may include: the last operation time corresponding to the data to be processed is within a preset duration (for example, within the last three months), and/or the last operation time corresponding to the data to be processed is later than the target operation time, wherein the target operation time is determined according to the last operation time corresponding to each data, for example, sorting is performed according to the sequence from the late to the early according to the last operation time corresponding to each data, and the last operation time of the 100 th bit in the sorting result is taken as the target operation time. That is, the number of the corresponding relations between the characteristic information of the data in the resource quantitative cache library and the storage paths of the various information thereof is limited, that is, if the operation times of the data corresponding to the characteristic information is smaller than the time threshold, or the last operation time of the data corresponding to the characteristic information does not meet the target time condition, the corresponding relations between the characteristic information and the storage paths of the various information thereof are deleted from the resource quantitative cache library, so that the data corresponding to the characteristic information stored in the resource quantitative cache library is ensured to be used by a user with higher use frequency or in the last time, thus not only saving the storage space in the resource quantitative cache library, but also avoiding program blocking caused by occupying a large memory overhead due to excessive files, and further ensuring that the data stored in the resource quantitative cache library more accords with the use habit of the user, and further improving the efficiency of data management and user experience. It should be emphasized that, since the data size in the resource full-size cache is also larger, the data in the resource full-size cache can be the same as or similar to the data updating mechanism in the resource full-size cache, so that the effects of saving the storage space in the resource full-size cache, avoiding program blocking caused by occupying large memory overhead of the system due to excessive file operation and ensuring that the data stored in the resource full-size cache accords with the use habit of the user are achieved.
According to the technical scheme, when the data to be processed is stored in the resource management database, the data in the data to be processed is classified according to the data to be processed and element information in the corresponding characteristic information of the data to be processed, and the classified various data are respectively stored in the resource total cache library, the resource total classification library and the resource directional association library; and then, storing the storage path information of various data corresponding to the data to be processed in each database into the resource quantitative cache. In this way, when the data in the resource management database needs to be read or indexed, the storage path corresponding to the data can be determined based on the resource quantitative cache and according to the category corresponding to the data; and acquiring the data from the database corresponding to the storage path according to the storage path. Compared with the prior art, the method does not need to search the data to be read or indexed one by one from the database, but can acquire the storage path of the data to be read or indexed through the resource quantitative cache, and directly acquire the data from the resource full cache, the resource full classification library and/or the resource directional association library according to the storage path; therefore, the time for extracting the data to be read or indexed from the database is shortened, the speed for extracting the data by using the database is increased, and the user experience is further improved.
Fig. 2 shows only a basic embodiment of the method according to the invention, on the basis of which certain optimizations and developments are made, but other alternative embodiments of the method can also be obtained.
Next, another embodiment of a resource management method according to the present invention will be described, in which the processing instruction is a storage instruction. This embodiment is further described with respect to S203 based on the corresponding embodiment of fig. 2 (S203 includes S303-S306). As shown in fig. 3, in this embodiment, the method is applied to a resource management database, where the resource management database includes a resource quantification cache, a resource total classification library, and a resource targeting association library; the method specifically comprises the following steps:
s301: and acquiring the data to be processed and a storage instruction.
S301 in this embodiment is the same as S201 in the embodiment corresponding to fig. 2. Therefore, in the present embodiment, S301 will not be described again, and the description of S201 may be referred to specifically.
S302: and determining the characteristic information corresponding to the data to be processed.
S302 in this embodiment is the same as S202 in the corresponding embodiment of fig. 2. Therefore, in the present embodiment, S302 will not be described again, and the description of S202 may be referred to specifically.
It should be emphasized that, in this embodiment, the feature information may include at least one of the following element information: file name, file type, attribute information. The file name may be understood as a file name corresponding to the data to be processed, for example, the data to be processed is "a company contract, doc", and the feature information corresponding to the data to be processed includes the file name "a company contract"; the file type can be understood as a type corresponding to a file storage format of the data to be processed, for example, the data to be processed is "a company contract. Doc", and the feature information corresponding to the data to be processed includes the file type doc; the attribute information may be understood as an attribute corresponding to the data to be processed, for example, a Path attribute in a Component node and a name attribute, a capture "attribute field, etc. in an XML text.
To facilitate understanding of S302, an example is next described. Assuming that the data to be processed is XML structure text, the text content is as follows:
< LogicControl caption = "example file" start= "2" xy_location= "250,50" >
< Component caption = "example component" path= "/project/folder/Common. Lfc" >
<Entry id="size"value="200,40"/>
< Out capture= "successful exit" id= "2" name= "successful" next= "5"/>
</Component>
</LogicControl>;
The attribute information that can determine the data to be processed includes: path attribute (LogicControl/Component/@ Path, i.e./project/folder/Common. Lfc) and name attribute (LogicControl/Component/Out/@ name, i.e. 'successful') in the Out node; and further, the Path attribute and the name attribute can be determined to be the feature information corresponding to the data to be processed.
S303: and storing the data to be processed into the resource full cache library, and determining a file storage path corresponding to the data to be processed.
The file storage path can be understood as a storage path of the data to be processed in the resource aggregate classification library. It can be understood that the data to be processed corresponding to the feature information can be found from the resource full-scale cache according to the file storage path corresponding to the feature information.
As an example, all data or preset target data in the data to be processed may be stored in the resource full cache, and a file storage path corresponding to the data to be processed may be determined. The preset target data is part of the data in the data to be processed, and it should be noted that the preset target data may be preset by a user, for example, may be certain attribute information in the data to be processed. For example, assuming that the data to be processed is an article, the article includes a text and a picture, the text and the picture in the data to be processed may be stored in the resource full cache, or only the text or the picture may be stored in the resource full cache.
S304: storing the file type and/or attribute information corresponding to the data to be processed into the resource total classification library, and adjusting the storage information corresponding to the file type and/or the attribute information in the resource total classification library.
In this embodiment, after the file type and/or attribute information (for example, other file attributes of the storage path) corresponding to the data to be processed are obtained, the file type and/or the attribute information may be stored in a resource full-scale classification library, and storage information corresponding to the file type and/or the attribute information in the resource full-scale classification library may be adjusted, for example, a storage form of the file type and the attribute information in the resource full-scale classification library may be a table form, and after the file type and the attribute information corresponding to the data to be processed are obtained, the file type and the attribute information corresponding to the data to be processed may be added into the corresponding table form. Therefore, the information such as the types, the quantity and the file attributes of various files in the current tool can be counted in real time according to the data in the resource total classification library.
S305: and storing the reference information corresponding to the data to be processed into the resource orientation association library, and determining a reference storage path corresponding to the reference information.
Wherein the reference storage path is a storage path of the reference information in the resource targeting association library. It can be understood that the reference information corresponding to the feature information can be found from the resource orientation association library according to the reference storage path corresponding to the feature information. It should be emphasized that the reference information may be understood as other data or documents cited in the data to be processed, for example, another paper "study on traditional Chinese medicine" is cited in the paper "study on medicine", and the paper "study on traditional Chinese medicine" may be regarded as the reference information of the paper "study on medicine".
As an example, reference analysis may be performed on data to be processed first, and a reference file in the data to be processed may be determined; for example, assume that the data to be processed is XML-formatted text abf a: < entrykey= "OnClick" type= "Flow" url= "" value= "/ab-sfassdf/T001/lfc" >, < entryisexpress= "true" key= "ade" type= "String" url= "" value= "/ab-sfassdf/T001. Ade"/>, since the files corresponding to lfc, ade in file format are referenced in abf a, the files corresponding to lfc, ade can be determined as the reference files in the pending data abf a.
Then, according to the reference file, determining the reference information corresponding to the data to be processed; in one implementation manner, whether the reference file is stored in the resource orientation association library can be determined first, and if yes, a storage path or other file attribute information corresponding to the reference file can be stored as reference information in the resource orientation association library; if not, the reference file can be stored as reference information to a resource targeting association library. And then, storing the reference information into the resource orientation association library, and determining a reference storage path corresponding to the reference information.
S306: and determining the corresponding relation between the characteristic information and the file storage path and the reference storage path respectively, and storing the corresponding relation to the resource quantitative cache library.
After determining the file storage path and the reference storage path, a correspondence between the feature information and the file storage path and a correspondence between the feature information and the reference storage path may be established, for example, by establishing a lookup table or an identification manner. The correspondence between the feature information and the file storage path, and the correspondence between the feature information and the reference storage path, may then be stored into the resource quantification cache. Thus, when the data to be processed is stored in the resource management database, the data in the data to be processed is classified according to the data to be processed and the element information in the corresponding characteristic information, the classified various data are respectively stored in the resource total cache, the resource total classification library and the resource directional association library, and the storage path information of the various data corresponding to the data to be processed in each database is respectively stored in the resource quantitative cache.
The order of execution among S303, S304, and S305 is not limited in this embodiment, and for example, S303, S304, and S305 may be performed simultaneously, or S303, S304, and S305 may be performed in any order.
In order to ensure that the data to be stored is the data that the user wants to store, and the data to be processed can be used normally, in an implementation manner of this embodiment, before the step of managing the resources stored in the resource quantifying cache, the resource total classification library, and the resource orientation association library according to the processing instruction, the data to be processed, and the element information in the feature information, that is, before S303, S304, and S305, the method further includes:
step a: and checking whether the file type of the data to be processed accords with a preset file type.
In this embodiment, the file type of the data to be processed may be determined first, and then whether the preset file type includes the file type of the data to be processed may be determined. The preset file type can be preset by a user or preset by a system. In this way, the data to be processed stored in the resource management database can be ensured to be the data which is expected to be stored.
Step b: if the file type of the data to be processed accords with a preset file type, detecting whether the data to be processed accords with a preset format corresponding to the file type.
The preset format corresponding to the file type may be understood as a format standard corresponding to the file type, that is, the preset format corresponding to the file type is an editing template corresponding to the file type. For example, when the file type is json, whether the data to be processed accords with a preset format corresponding to json can be detected; when the file type is xml, whether the data to be processed accords with a preset format corresponding to the xml can be detected.
Step c: and if the data to be processed accords with the preset format corresponding to the file type, executing the step of managing the resources respectively stored in the resource quantitative cache library, the resource full classification library and the resource orientation association library according to the processing instruction, the data to be processed and the element information in the characteristic information.
For step c, it is assumed that, when the file type is set as XML, the corresponding preset format is: < A > < a > content < a > </A >; and the file type of the data to be processed is XML, and the content format is as follows: < A < a > XXX < A >; therefore, it can be determined that the data to be processed accords with the preset file type, and the data to be processed accords with the preset format corresponding to the XML, that is, the content format in the data to be processed accords with the preset format, and the data to be processed can be directly used. Next, steps S303-S306 may be performed on the data to be processed.
Step d: and if the data to be processed does not accord with the preset format corresponding to the file type, outputting a format error message.
For step d, for the example, assuming that the file type is XML, the corresponding preset format is: < A > < a > content < a > </A >; and the file type of the data to be processed is XML, and the content format is: < a > XXX; although the data to be processed accords with the preset file type, the data to be processed does not accord with the preset format corresponding to the XML. Accordingly, if the content format of the data to be processed does not conform to the predetermined format, a format error message may be output, and in one implementation, the format error message may include a reason that the data to be processed does not conform to the predetermined format.
In order to ensure that there is no error in the data content corresponding to the data to be processed stored in the resource full cache, in one implementation manner of this embodiment, after the step of storing the data to be processed in the resource full cache and determining the file storage path corresponding to the data to be processed, the method further includes:
checking whether the data content of the data to be processed in the resource full cache accords with a preset content condition or not; and if the data content of the data to be processed does not accord with the preset content condition, outputting a content error message.
The preset content condition may be that the data content corresponding to the content format in the data to be processed accords with a preset content rule. For example, assuming that the preset content condition is a capture value is a chinese character, if the data content of the data to be processed in the resource aggregate cache is detected to be english, it may be determined that the data content of the data to be processed does not meet the preset content condition, and a content error message is output, where the content error message may include a specific reason that the data content does not meet the preset content condition.
In order to ensure that there is no error in the reference information corresponding to the data to be processed stored in the resource-oriented association library, in an implementation manner of this embodiment, after the step of storing the reference information corresponding to the data to be processed in the resource-oriented association library and determining the reference storage path corresponding to the reference information, the method further includes:
checking whether the resource orientation association library stores a reference file corresponding to the reference information; and if the resource orientation association library does not store the reference file corresponding to the reference information, outputting a reference error message.
Specifically, whether the reference file corresponding to the reference information is stored in the resource orientation association library can be checked according to the reference information, if the reference file corresponding to the reference information is not stored in the resource orientation association library, the error of the reference information corresponding to the data to be processed stored in the resource orientation association library is indicated, so that a reference error message can be output to prompt a user that the reference file referenced by the data to be processed is not stored in the resource orientation association library.
Fig. 2 shows only a basic embodiment of the method according to the invention, on the basis of which certain optimizations and developments are made, but other alternative embodiments of the method can also be obtained.
Next, another embodiment of a resource management method according to the present invention will be described, in which the processing instruction is a read instruction. This embodiment is further described with respect to S203 based on the corresponding embodiment of fig. 2 (S203 includes S403-S405). As shown in fig. 4, in this embodiment, the method is applied to a resource management database, where the resource management database includes a resource quantification cache, a resource total classification library, and a resource targeting association library; the method specifically comprises the following steps:
s401: and acquiring data to be processed and a reading instruction.
S401 in this embodiment is the same as S201 in the embodiment corresponding to fig. 2. Therefore, in the present embodiment, S401 will not be described again, and the description of S201 may be referred to specifically.
It should be emphasized that the data to be processed in this embodiment may be understood as related information of the data to be read, which is input by the user through the input device or voice, for example, may be a text, a sentence, or several words, and of course, may also be in the form of pictures or the like.
And S402, determining the characteristic information corresponding to the data to be processed.
Note that S402 in this embodiment is similar to S202 in the corresponding embodiment of fig. 2. Therefore, in the present embodiment, S402 will not be described again, and the description of S202 may be referred to specifically.
It is emphasized that the feature information includes at least one keyword, where the keyword may represent a feature corresponding to the data to be processed. For example, assuming that the data to be processed is "i want to find xml file stored in last three months", since "last three months" reflects the time feature corresponding to the data to be processed and "xml" reflects the file type feature corresponding to the data to be processed, the feature information corresponding to the data to be processed may be determined to include the following keywords: last three months, xml.
S403, detecting whether target characteristic information corresponding to the characteristic information is stored in the resource quantitative cache.
Wherein the target feature information includes at least one keyword in the feature information.
Specifically, after determining the feature information corresponding to the data to be processed, whether the target feature information corresponding to the feature information is stored in the resource quantitative cache may be detected, so as to determine whether a subsequent step needs to be performed.
S404, if yes, determining a database reading instruction corresponding to the characteristic information according to the characteristic information.
As an example, since the feature information includes at least one keyword, and each keyword corresponds to feature information of a different aspect, a database read instruction corresponding to the feature information may be determined according to the feature information, so that data corresponding to the feature information is determined from the resource quantitative repository according to the database read instruction. Wherein the database read instruction may include: a resource full cache read instruction, a resource full sort library read instruction, and an associative library read instruction.
Specifically, when the feature information includes name keywords (such as "contract", "patent") corresponding to the data content feature, it may be determined that the database read instruction corresponding to the feature information includes at least a resource full-scale cache read instruction; when the feature information includes a type keyword (such as "xml") corresponding to a file type feature and/or an attribute keyword (such as "last three months") corresponding to an attribute information feature (such as a time feature), it may be determined that the database read instruction corresponding to the feature information includes at least a source full-scale classification library read instruction; when the feature information includes a reference keyword (e.g., "reference") corresponding to a reference feature, it may be determined that the database read instruction corresponding to the feature information includes at least a source full-sized classification library read instruction.
If the target feature information corresponding to the feature information is not stored in the resource quantitative repository, the reading may be stopped, that is, the execution of the subsequent operation may be stopped.
S405: and reading data corresponding to the characteristic information from the resource quantitative cache, the resource total classification library and/or the resource orientation association library according to the target characteristic information and the database reading instruction.
After the target feature information and the database reading instruction are determined, the data corresponding to the feature information can be determined to be stored in a plurality of libraries in the resource total cache library, the resource total classification library and the resource orientation association library according to the target feature information and the database reading instruction, and the storage paths corresponding to the libraries can be determined. Then, according to the storage path, the data corresponding to the characteristic information can be read from the resource whole cache library, the resource whole classification library and the resource orientation association library. In one implementation, after the data corresponding to the feature information is read, the attribute of the data corresponding to the feature information in the development tool may be determined first, and then the data and the attribute corresponding to the data are output for the user to view.
Next, for S403-S405, for example, assuming that the following feature information [ "patent", "development tool", "contract 1", "contract 2" ] is stored in the resource quantitative repository, and that the keywords in the feature information corresponding to the data to be processed are "contract", since the feature information "contract 1", "contract 2" in the resource quantitative repository each include the keywords "contract", it can be determined that the target feature information corresponding to the feature information "contract" is "contract 1" and "contract 2". Then, according to the characteristic information 'contract', the database read instruction corresponding to the characteristic information can be determined to be a resource total cache read instruction. Then, according to the target characteristic information and the resource total cache library reading instruction, determining a file storage path corresponding to the target characteristic information from the resource total cache library. And finally, reading the data corresponding to the characteristic information contract from the resource total cache according to the file storage path.
Thus, the invention does not need to search the data to be read or indexed one by one from the database as in the prior art, but can acquire the storage path of the data to be read or indexed through the resource quantitative cache, and directly acquire the data from the resource full cache, the resource full classification library and/or the resource directional association library according to the storage path; therefore, the time for extracting the data to be read or indexed from the database is shortened, the speed for extracting the data by using the database is increased, and the user experience is further improved.
Next, specific implementations of S404 and S405 when the database read instruction is the resource full cache read instruction, the resource full sort library read instruction, and the association library read instruction, respectively, will be specifically described.
Mode one: the database read instruction is the case for a resource full cache read instruction.
When the feature information includes a name keyword, determining a database reading instruction corresponding to the feature information according to the feature information, including:
determining a resource total cache library reading instruction according to the name keyword;
correspondingly, the reading the data corresponding to the feature information from the resource quantitative cache, the resource total classification library and/or the resource directional association library according to the target feature information and the database reading instruction comprises the following steps:
determining a file storage path corresponding to the target feature information in the resource quantitative cache library according to the target feature information and the resource total cache library reading instruction, wherein the file storage path is a storage path of data corresponding to the target feature information in the resource total classification library; and then, according to the file storage path, reading the data corresponding to the target characteristic information in the resource total cache.
For example, when the feature information includes a name keyword "edit", it may be determined that the database read instruction corresponding to the feature information is a resource full-cache read instruction according to the name keyword "edit"; then, determining a file storage path corresponding to the target feature information 'ABIDE editing' in the resource quantitative cache according to the target feature information 'ABIDE editing' corresponding to the feature information and the resource total cache reading instruction; and then, reading data corresponding to the target feature information ABIDE editing in the resource total cache according to the file storage path, wherein the data is the data corresponding to the feature information.
Mode two: the database read instruction is the case of a resource full-size class library read instruction.
When the feature information includes a type keyword and/or an attribute keyword, determining a database reading instruction corresponding to the feature information according to the feature information includes:
determining a resource total classification library reading instruction according to the type keywords and/or the attribute keywords; the resource total classification library reading instruction comprises a file type corresponding to the type keyword and/or attribute information corresponding to the attribute keyword;
Correspondingly, the reading the data corresponding to the feature information from the resource quantitative cache, the resource total classification library and/or the resource directional association library according to the target feature information and the database reading instruction comprises the following steps:
if the file type corresponding to the target feature information comprises the file type in the resource total classification library reading instruction, and/or the attribute information corresponding to the target feature information comprises the attribute information in the resource total classification library reading instruction; and determining storage information corresponding to the file type in the resource total classification library and/or storage information of the attribute information according to the file type and/or the attribute information in the resource total classification library reading instruction.
For example, when the feature information includes the type keyword "xml", it may be determined that the database read instruction corresponding to the feature information is a resource total classification library read instruction according to the type keyword "xml; then, if the file type of the target feature information in the resource full-quantity classification library includes the file type "xml" in the resource full-quantity classification library reading instruction, determining storage information corresponding to the file type "xml" in the resource full-quantity classification library, such as a file with the file type "xml" and the number of files, according to the file type "xml" in the resource full-quantity classification library reading instruction.
Mode three: the database read instruction is the case of a resource-directed associative library read instruction.
When the feature information includes a reference keyword, determining a database reading instruction corresponding to the feature information according to the feature information, including:
determining a resource orientation association library reading instruction according to the reference keywords;
correspondingly, the reading the data corresponding to the feature information from the resource quantitative cache, the resource total classification library and/or the resource directional association library according to the target feature information and the database reading instruction comprises the following steps:
determining a reference storage path corresponding to the target feature information in the resource quantitative cache according to the target feature information and the resource directional association library reading instruction, wherein the reference storage path is a storage path of the reference information in the resource directional association library; and reading the reference information corresponding to the target characteristic information in the resource orientation association library according to the reference storage path.
For example, when the feature information includes a file name and a reference keyword "reference", it may be determined that the database read instruction corresponding to the feature information is a resource-oriented association library read instruction according to the reference keyword "reference"; then, determining a reference storage path corresponding to the target feature information corresponding to the file name in the resource quantitative cache library according to the target feature information corresponding to the file name and the resource orientation association library reading instruction; and then, according to the reference storage path, reading the reference information corresponding to the target feature information corresponding to the file name in the resource orientation association library.
Thus far, the specific implementation of S404 and S405 has been described when the database read instruction is a resource full cache read instruction, a resource full sort library read instruction, and an associative library read instruction, respectively.
It should be noted that, in some scenarios, the user has special requirements for data that the user wants to read, for example, special requirements for reading data in the form of a picture or a file with a file size smaller than 1MB, so, in order to be able to meet the special requirements of the user for a file read from the resource management database, in one implementation way of this embodiment, the method further includes:
firstly, screening data corresponding to the characteristic information read from the resource management database according to preset screening conditions to obtain screened data; and then outputting the screened data.
The preset screening conditions can be adjusted according to actual demands of users, for example, the file size is smaller than a preset threshold value, or the format requirements of the file are met.
It should be noted that the embodiments corresponding to fig. 3 and fig. 4 may be implemented separately or may be implemented in combination, for example, the steps in the embodiment corresponding to fig. 4 may be performed after S306.
So far, the embodiment combines specific application scenes to realize the resource management method process. It should of course be appreciated that the above scenario is merely an exemplary scenario and is not intended to limit the methods provided by the present invention. The method provided by the invention can be prolonged to be applied to other resource management processes with the same principle.
Fig. 5 shows a specific embodiment of the resource management device according to the present invention. The apparatus of this embodiment is an entity apparatus for performing the method of the foregoing embodiment. The technical solution is essentially identical to the above embodiment, and the corresponding description in the above embodiment is also applicable to this embodiment. The device in the embodiment is applied to a resource management database, wherein the resource management database comprises a resource quantitative cache, a resource total classification library and a resource orientation association library; the device comprises:
an obtaining unit 501, configured to obtain data to be processed and a processing instruction, where the processing instruction includes a storage instruction or a reading instruction;
a determining unit 502, configured to determine feature information corresponding to the data to be processed, where the feature information includes at least one element information corresponding to the data to be processed;
And the management unit 503 is configured to manage resources respectively stored in the resource quantitative cache, the resource total classification library and the resource orientation association library according to the processing instruction, the data to be processed and element information in the feature information.
Optionally, the processing instruction is the storage instruction; the characteristic information includes at least one of the following element information: file name, file type, attribute information; accordingly, the management unit 503 is specifically configured to:
storing the data to be processed into the resource total cache library, and determining a file storage path corresponding to the data to be processed, wherein the file storage path is a storage path of the data to be processed in the resource total classification library;
storing file types and/or attribute information corresponding to the data to be processed into the resource total classification library, and adjusting storage information corresponding to the file types and/or the attribute information in the resource total classification library;
storing reference information corresponding to the data to be processed into the resource orientation association library, and determining a reference storage path corresponding to the reference information, wherein the reference storage path is a storage path of the reference information in the resource orientation association library;
And determining the corresponding relation between the characteristic information and the file storage path and the reference storage path respectively, and storing the corresponding relation to the resource quantitative cache library.
Optionally, the management unit 503 is specifically configured to:
storing all data or preset target data in the data to be processed into the resource total cache library, and determining a file storage path corresponding to the data to be processed; the preset target data are part of the data to be processed.
Optionally, the management unit 503 is specifically configured to:
performing reference analysis on the data to be processed, and determining a reference file in the data to be processed;
determining the reference information corresponding to the data to be processed according to the reference file;
and storing the reference information into the resource orientation association library, and determining a reference storage path corresponding to the reference information.
Optionally, the apparatus further comprises an output unit:
checking whether the file type of the data to be processed accords with a preset file type;
if the file type of the data to be processed accords with a preset file type, detecting whether the data to be processed accords with a preset format corresponding to the file type;
Executing the step of managing the resources stored in the resource quantitative cache, the resource full classification library and the resource directional association library according to the processing instruction, the data to be processed and the element information in the characteristic information if the data to be processed accords with the preset format corresponding to the file type;
and if the data to be processed does not accord with the preset format corresponding to the file type, outputting a format error message.
Optionally, the output unit is further configured to:
checking whether the data content of the data to be processed in the resource full cache accords with a preset content condition or not;
and if the data content of the data to be processed does not accord with the preset content condition, outputting a content error message.
Optionally, the output unit is further configured to:
checking whether the resource orientation association library stores a reference file corresponding to the reference information;
and if the resource orientation association library does not store the reference file corresponding to the reference information, outputting a reference error message.
Optionally, the data to be processed satisfies a preset storage condition, where the preset storage condition includes at least one of the following conditions: the operation times corresponding to the data to be processed are equal to or greater than a time threshold, or the last operation time corresponding to the data to be processed meets the target time condition.
Optionally, the processing instruction is the reading instruction; the feature information includes at least one keyword; accordingly, the management unit 503 is specifically configured to:
detecting whether target feature information corresponding to the feature information is stored in the resource quantitative cache library or not, wherein the target feature information comprises at least one keyword in the feature information;
if yes, determining a database reading instruction corresponding to the characteristic information according to the characteristic information;
and reading data corresponding to the characteristic information from the resource quantitative cache, the resource total classification library and/or the resource orientation association library according to the target characteristic information and the database reading instruction.
Optionally, if the feature information includes a name keyword; the determining unit 502 is specifically configured to:
determining a resource total cache library reading instruction according to the name keyword;
accordingly, the management unit 503 is specifically configured to:
determining a file storage path corresponding to the target feature information in the resource quantitative cache according to the target feature information and the resource total cache reading instruction, wherein the file storage path is a storage path of data corresponding to the target feature information in the resource total classification library;
And reading data corresponding to the target characteristic information in the resource total cache according to the file storage path.
Optionally, if the feature information includes a type keyword and/or an attribute keyword; the determining unit 502 is specifically configured to:
determining a resource total classification library reading instruction according to the type keywords and/or the attribute keywords; the resource total classification library reading instruction comprises a file type corresponding to the type keyword and/or attribute information corresponding to the attribute keyword;
accordingly, the management unit 503 is specifically configured to:
if the file type corresponding to the target feature information comprises the file type in the resource total classification library reading instruction, and/or the attribute information corresponding to the target feature information comprises the attribute information in the resource total classification library reading instruction;
and determining storage information corresponding to the file type in the resource total classification library and/or storage information of the attribute information according to the file type and/or the attribute information in the resource total classification library reading instruction.
Optionally, if the feature information includes a reference keyword; the determining unit 502 is specifically configured to:
Determining a resource orientation association library reading instruction according to the reference keywords;
accordingly, the management unit 503 is specifically configured to:
determining a reference storage path corresponding to the target feature information in the resource quantitative cache according to the target feature information and the resource directional association library reading instruction, wherein the reference storage path is a storage path of the reference information in the resource directional association library;
and reading the reference information corresponding to the target characteristic information in the resource orientation association library according to the reference storage path.
The output unit is further configured to:
screening the data corresponding to the characteristic information read from the resource management database according to preset screening conditions to obtain screened data;
and outputting the screened data.
Fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention. At the hardware level, the electronic device comprises a processor, optionally an internal bus, a network interface, a memory. The Memory may include a Memory, such as a Random-Access Memory (RAM), and may further include a non-volatile Memory (non-volatile Memory), such as at least 1 disk Memory. Of course, the electronic device may also include hardware required for other services.
The processor, network interface, and memory may be interconnected by an internal bus, which may be an ISA (Industry Standard Architecture ) bus, a PCI (Peripheral Component Interconnect, peripheral component interconnect standard) bus, or EISA (Extended Industry Standard Architecture ) bus, among others. The buses may be classified as address buses, data buses, control buses, etc. For ease of illustration, only one bi-directional arrow is shown in FIG. 6, but not only one bus or type of bus.
And the memory is used for storing the execution instruction. In particular, a computer program that executes instructions may be executed. The memory may include memory and non-volatile storage and provide the processor with instructions and data for execution.
In one possible implementation manner, the processor reads the corresponding execution instruction from the nonvolatile memory into the memory and then executes the execution instruction, and may also acquire the corresponding execution instruction from other devices to form the resource management device on a logic level. The processor executes the execution instructions stored in the memory to implement the resource management method provided in any of the embodiments of the present invention by executing the execution instructions.
The method performed by the resource management device provided in the embodiments shown in fig. 2, 3 and 4 of the present invention may be applied to a processor or implemented by a processor. The processor may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or by instructions in the form of software. The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; but also digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The disclosed methods, steps, and logic blocks in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The steps of the method disclosed in connection with the embodiments of the present invention may be embodied directly in the execution of a hardware decoding processor, or in the execution of a combination of hardware and software modules in a decoding processor. The software modules may be located in a random access memory, flash memory, read only memory, programmable read only memory, or electrically erasable programmable memory, registers, etc. as well known in the art. The storage medium is located in a memory, and the processor reads the information in the memory and, in combination with its hardware, performs the steps of the above method.
The embodiment of the invention also provides a readable medium, which stores the execution instruction, and when the stored execution instruction is executed by the processor of the electronic device, the electronic device can be enabled to execute the resource management method provided in any embodiment of the invention, and the method is specifically used for executing the resource management method.
The electronic device described in the foregoing embodiments may be a computer.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method or a computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware aspects.
The embodiments of the present invention are described in a progressive manner, and the same and similar parts of the embodiments are all referred to each other, and each embodiment is mainly described in the differences from the other embodiments. In particular, for the device embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference is made to the description of the method embodiments in part.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises the element.
The foregoing is merely exemplary of the present invention and is not intended to limit the present invention. Various modifications and variations of the present invention will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. which come within the spirit and principles of the invention are to be included in the scope of the claims of the present invention.

Claims (13)

1. A resource management method, which is characterized in that the method is applied to a resource management database, wherein the resource management database comprises a resource quantitative cache, a resource total classification library and a resource orientation association library; the method comprises the following steps:
acquiring data to be processed and a processing instruction, wherein the processing instruction comprises a storage instruction or a reading instruction;
determining characteristic information corresponding to the data to be processed, wherein the characteristic information comprises at least one element information corresponding to the data to be processed; the characteristic information includes at least one of the following element information: file name, file type, attribute information;
according to the processing instruction, the data to be processed and the element information in the characteristic information, managing resources stored in the resource quantitative cache, the resource total classification library and the resource orientation association library respectively;
The managing the resources stored in the resource quantitative cache, the resource total classification library and the resource orientation association library according to the processing instruction, the data to be processed and the element information in the characteristic information includes:
storing the data to be processed into the resource total cache library, and determining a file storage path corresponding to the data to be processed, wherein the file storage path is a storage path of the data to be processed in the resource total classification library;
storing file types and/or attribute information corresponding to the data to be processed into the resource total classification library, and adjusting storage information corresponding to the file types and/or the attribute information in the resource total classification library;
storing reference information corresponding to the data to be processed into the resource orientation association library, and determining a reference storage path corresponding to the reference information, wherein the reference storage path is a storage path of the reference information in the resource orientation association library;
and determining the corresponding relation between the characteristic information and the file storage path and the reference storage path respectively, and storing the corresponding relation to the resource quantitative cache library.
2. The method of claim 1, wherein storing the pending data to the resource full cache and determining a file storage path corresponding to the pending data comprises:
storing all data or preset target data in the data to be processed into the resource total cache library, and determining a file storage path corresponding to the data to be processed; the preset target data are part of the data to be processed.
3. The method according to claim 1, wherein storing the reference information corresponding to the data to be processed in the resource targeting association library, and determining a reference storage path corresponding to the reference information, comprises:
performing reference analysis on the data to be processed, and determining a reference file in the data to be processed;
determining the reference information corresponding to the data to be processed according to the reference file;
and storing the reference information into the resource orientation association library, and determining a reference storage path corresponding to the reference information.
4. A method according to any one of claims 1-3, wherein prior to the step of managing resources stored by each of the resource quantification cache, the resource full classification library, and the resource targeting association library in accordance with the processing instructions, the data to be processed, and element information in the feature information, the method further comprises:
Checking whether the file type of the data to be processed accords with a preset file type;
if the file type of the data to be processed accords with a preset file type, detecting whether the data to be processed accords with a preset format corresponding to the file type;
executing the step of managing the resources stored in the resource quantitative cache, the resource full classification library and the resource directional association library according to the processing instruction, the data to be processed and the element information in the characteristic information if the data to be processed accords with the preset format corresponding to the file type;
and if the data to be processed does not accord with the preset format corresponding to the file type, outputting a format error message.
5. A method according to any one of claims 1-3, wherein after the step of storing the pending data to the resource aggregate cache and determining a file storage path to which the pending data corresponds, the method further comprises:
checking whether the data content of the data to be processed in the resource full cache accords with a preset content condition or not;
and if the data content of the data to be processed does not accord with the preset content condition, outputting a content error message.
6. A method according to any one of claims 1-3, wherein after the step of storing the reference information corresponding to the data to be processed in the resource-oriented association library and determining the reference storage path corresponding to the reference information, the method further comprises:
checking whether the resource orientation association library stores a reference file corresponding to the reference information;
and if the resource orientation association library does not store the reference file corresponding to the reference information, outputting a reference error message.
7. A method according to any of claims 1-3, wherein the data to be processed satisfies a preset storage condition, wherein the preset storage condition comprises at least one of the following conditions: the operation times corresponding to the data to be processed are equal to or greater than a time threshold, or the last operation time corresponding to the data to be processed meets the target time condition.
8. The method of claim 1, wherein the processing instruction is the read instruction; the feature information includes at least one keyword; correspondingly, the managing the resources stored in the resource quantitative cache, the resource total classification library and the resource directional association library according to the processing instruction, the data to be processed and the element information in the feature information includes:
Detecting whether target feature information corresponding to the feature information is stored in the resource quantitative cache library or not, wherein the target feature information comprises at least one keyword in the feature information;
if yes, determining a database reading instruction corresponding to the characteristic information according to the characteristic information;
and reading data corresponding to the characteristic information from the resource quantitative cache, the resource total classification library and/or the resource orientation association library according to the target characteristic information and the database reading instruction.
9. The method of claim 8, wherein if the characteristic information includes a name keyword; the step of determining the database reading instruction corresponding to the characteristic information according to the characteristic information comprises the following steps:
determining a resource total cache library reading instruction according to the name keyword;
correspondingly, the reading the data corresponding to the feature information from the resource quantitative cache, the resource total classification library and/or the resource directional association library according to the target feature information and the database reading instruction comprises the following steps:
Determining a file storage path corresponding to the target feature information in the resource quantitative cache according to the target feature information and the resource total cache reading instruction, wherein the file storage path is a storage path of data corresponding to the target feature information in the resource total classification library;
and reading data corresponding to the target characteristic information in the resource total cache according to the file storage path.
10. The method of claim 8, wherein if the characteristic information includes a type keyword and/or an attribute keyword; the step of determining the database reading instruction corresponding to the characteristic information according to the characteristic information comprises the following steps:
determining a resource total classification library reading instruction according to the type keywords and/or the attribute keywords; the resource total classification library reading instruction comprises a file type corresponding to the type keyword and/or attribute information corresponding to the attribute keyword;
correspondingly, the reading the data corresponding to the feature information from the resource quantitative cache, the resource total classification library and/or the resource directional association library according to the target feature information and the database reading instruction comprises the following steps:
If the file type corresponding to the target feature information comprises the file type in the resource total classification library reading instruction, and/or the attribute information corresponding to the target feature information comprises the attribute information in the resource total classification library reading instruction;
and determining storage information corresponding to the file type in the resource total classification library and/or storage information of the attribute information according to the file type and/or the attribute information in the resource total classification library reading instruction.
11. The method of claim 8, wherein if the characteristic information includes a reference keyword; the step of determining the database reading instruction corresponding to the characteristic information according to the characteristic information comprises the following steps:
determining a resource orientation association library reading instruction according to the reference keywords;
correspondingly, the reading the data corresponding to the feature information from the resource quantitative cache, the resource total classification library and/or the resource directional association library according to the target feature information and the database reading instruction comprises the following steps:
determining a reference storage path corresponding to the target feature information in the resource quantitative cache according to the target feature information and the resource directional association library reading instruction, wherein the reference storage path is a storage path of the reference information in the resource directional association library;
And reading the reference information corresponding to the target characteristic information in the resource orientation association library according to the reference storage path.
12. The method according to any one of claims 8-11, further comprising:
screening the data corresponding to the characteristic information read from the resource management database according to preset screening conditions to obtain screened data;
and outputting the screened data.
13. An electronic device comprising a processor and a memory storing execution instructions that, when executed by the processor, perform the method of any of claims 1-12.
CN202010297107.2A 2020-04-15 2020-04-15 Resource management method, device and equipment Active CN111427870B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010297107.2A CN111427870B (en) 2020-04-15 2020-04-15 Resource management method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010297107.2A CN111427870B (en) 2020-04-15 2020-04-15 Resource management method, device and equipment

Publications (2)

Publication Number Publication Date
CN111427870A CN111427870A (en) 2020-07-17
CN111427870B true CN111427870B (en) 2023-09-05

Family

ID=71556440

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010297107.2A Active CN111427870B (en) 2020-04-15 2020-04-15 Resource management method, device and equipment

Country Status (1)

Country Link
CN (1) CN111427870B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103488706A (en) * 2013-09-06 2014-01-01 北京东方艾迪普科技发展有限公司 Processing method and device for mass data base
CN108595511A (en) * 2018-03-23 2018-09-28 中国人民解放军91977部队 A kind of diversification meteorological model data classification storage processing method and system
CN109857813A (en) * 2018-12-26 2019-06-07 荣科科技股份有限公司 Date storage method and data processing equipment
CN110674112A (en) * 2019-09-23 2020-01-10 北京百分点信息科技有限公司 Data query method and device and electronic equipment
CN110895538A (en) * 2018-09-13 2020-03-20 深圳市蓝灯鱼智能科技有限公司 Data retrieval method, device, storage medium and processor
CN110975293A (en) * 2019-11-29 2020-04-10 米哈游科技(上海)有限公司 Method, device, server and medium for establishing resource reference relation table

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105653572A (en) * 2015-08-20 2016-06-08 乐视网信息技术(北京)股份有限公司 Resource processing method and apparatus

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103488706A (en) * 2013-09-06 2014-01-01 北京东方艾迪普科技发展有限公司 Processing method and device for mass data base
CN108595511A (en) * 2018-03-23 2018-09-28 中国人民解放军91977部队 A kind of diversification meteorological model data classification storage processing method and system
CN110895538A (en) * 2018-09-13 2020-03-20 深圳市蓝灯鱼智能科技有限公司 Data retrieval method, device, storage medium and processor
CN109857813A (en) * 2018-12-26 2019-06-07 荣科科技股份有限公司 Date storage method and data processing equipment
CN110674112A (en) * 2019-09-23 2020-01-10 北京百分点信息科技有限公司 Data query method and device and electronic equipment
CN110975293A (en) * 2019-11-29 2020-04-10 米哈游科技(上海)有限公司 Method, device, server and medium for establishing resource reference relation table

Also Published As

Publication number Publication date
CN111427870A (en) 2020-07-17

Similar Documents

Publication Publication Date Title
US10133650B1 (en) Automated API parameter resolution and validation
CN111163072B (en) Method and device for determining characteristic value in machine learning model and electronic equipment
EP2707808A2 (en) Exploiting query click logs for domain detection in spoken language understanding
CN111367595A (en) Data processing method, program running method, device and processing equipment
CN108415998B (en) Application dependency relationship updating method, terminal, device and storage medium
CA2734207C (en) Electronic file comparator
CN112395182A (en) Automatic testing method, device, equipment and computer readable storage medium
CN113778864A (en) Test case generation method and device, electronic equipment and storage medium
JP4989086B2 (en) System and method for performing a streaming check on a data format for UDT
CN111427870B (en) Resource management method, device and equipment
WO2023236257A1 (en) Document search platform, search method and apparatus, electronic device, and storage medium
CN115599388A (en) API (application programming interface) document generation method, storage medium and electronic equipment
CN112711405B (en) Method, equipment and storage medium for generating add-delete-modify-check application program interface
CN114528313A (en) Data processing method and device and electronic equipment
CN110018844B (en) Management method and device of decision triggering scheme and electronic equipment
CN110263082B (en) Data distribution analysis method and device of database, electronic equipment and storage medium
CN113094283A (en) Data acquisition method, device, equipment and storage medium
CN112130860A (en) JSON object analysis method and device, electronic device and storage medium
CN109408368A (en) A kind of output method, storage medium and server for testing auxiliary information
CN116319718B (en) Cloud data storage processing method, system, equipment and medium
KR101921123B1 (en) Field-Indexing Method for Message
CN109840273B (en) Method and device for generating file
CN114064047A (en) ANTLR 4-based intelligent code instrumentation method and system
KR101770271B1 (en) Field-Indexing Method for Message
CN115827677A (en) Database operation method and device and storage medium

Legal Events

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