A method for updating production equipment ledger information
By constructing a preset sequence of storage nodes in the storage database of the production equipment, and using the termination node of the last update request and the continuous update degree of the production equipment for clustering, the problem of low efficiency in updating ledger information is solved and a fast and accurate implementation is achieved. The positioning and updating improve the overall update efficiency.
Patent Information
- Application Number
- CN202410934650.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-12
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-07-12
AI Technical Summary
In the existing technology, the update efficiency of production equipment ledger information is low, and it is difficult to quickly and accurately locate the location where the ledger information of the target equipment is stored in the storage database, which affects the update efficiency.
By constructing a preset sequence of storage nodes in the storage database, using the termination storage node of the last update request as the starting point, it is judged whether the target device is included. If it is included, it is located directly. Otherwise, the search starts from the starting storage node, based on the production equipment. Continuous update degree and clustering distance are used for clustering, optimizing the sorting and search paths of storage nodes, and improving search efficiency.
It can quickly and accurately locate and update the ledger information of the target device, improve the efficiency of ledger information update, and reduce the average time of the search process.
Smart Images

Figure CN118467561B
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a method for updating production equipment ledger information. Background Art
[0002] The ledger information of a production equipment includes model specifications, purchase date, service life, cause of failure, name of replaced spare parts, asset number, usage status of using department, etc. It needs to be updated and counted every year. It is the main basis for the enterprise to grasp the equipment asset status and reflect the ownership of various types of equipment, equipment distribution and its changes.
[0003] A common way to arrange equipment ledgers is to classify each production equipment by category code based on the "Equipment Unified Classification and Numbering Catalog" to facilitate the asset numbering and ledger information management of the equipment; however, there are many production equipment, and how to efficiently update the ledger information of production equipment is a problem that needs to be solved urgently.
[0004] At present, a patent application document with publication number CN113781016A discloses a method, system, device and storage medium for updating ledger information. The method includes: obtaining the latest account information detail list and the account information detail list at historical moments stored in a preset financial management and control system through robotic process automation technology, and performing duplicate checking and comparison to obtain an incremental detail list, entering the incremental data of the target customer's accounts receivable in the incremental detail list into the target customer's accounts receivable ledger table, and / or entering the incremental data of the target customer's accounts payable in the incremental detail list into the target customer's accounts payable ledger table, and according to the target customer's account incremental data entered in the target customer's ledger table, modifying the value of the entry status field corresponding to the target customer's account incremental data in the incremental detail list to a value used to identify the entered status.
[0005] The above method realizes the update of ledger information through the incremental detailed table, which can improve the updating efficiency of ledger information. However, the database stores the ledger information of many production equipments. Whether the location where the ledger information of the target equipment is stored can be located quickly and accurately, which is an important factor affecting the updating efficiency of the ledger information of the production equipment. Summary of the invention
[0006] In order to solve the technical problem of low updating efficiency of production equipment ledger information, the present application provides a method for updating production equipment ledger information, which can quickly and accurately locate the location where the target equipment ledger information is stored in the storage database, thereby improving the updating efficiency of the ledger information.
[0007] The present application provides a method for updating production equipment ledger information, the updating method comprising: in response to receiving this update request, determining whether the terminating storage node of the search process in the previous update request includes the target device, the current update request includes the latest ledger information of the target device; in response to the terminating storage node including the target device, taking the terminating storage node as the target storage node; in response to the terminating storage node not including the target device, starting from the starting storage node in the storage database, executing the search process of this update request to obtain the target storage node including the target device, the storage database comprising a plurality of storage nodes arranged in a preset order, one storage node being used to store the ledger information of at least one production equipment; and updating the ledger information of the target device in the target storage node based on the latest ledger information.
[0008] In some embodiments, starting from the starting storage node in the storage database, the search process of this update request is executed to obtain the target storage node containing the target device, including: taking the starting storage node as the node to be searched, and judging whether the node to be searched contains the ID information of the target device; in response to the node to be searched containing the ID information of the target device, taking the node to be searched as the target storage node, and ending the search process of this update request; in response to the node to be searched not containing the ID information of the target device, obtaining the next storage node in the preset order as the node to be searched until the target storage node is obtained.
[0009] The search is performed in order of the storage nodes. When the searched storage node contains the target device of this update request, the target storage node is obtained and the search process is ended, and the location where the target device ledger information is stored in the storage database is accurately located.
[0010] In some embodiments, the target storage node is a termination storage node of a search process in a next update request.
[0011] In some embodiments, the method for constructing the storage database includes: counting the co-occurrence probability of any two production devices in two adjacent update requests within a statistical period as the degree of continuous update; performing Kmeans clustering on all production equipment based on the clustering distance to obtain multiple clusters, and the clustering distance is negatively correlated with the continuous update degree, and storing the ledger information of each production equipment in a cluster in a storage node; taking the sum of the update frequencies of each production equipment in the storage node as the sorting value of the storage node, and arranging them in descending order according to the sorting value to obtain a storage database.
[0012] If the probability of two production devices being updated continuously is high, the two production devices are divided into the same cluster, and the ledger information of the production devices in the same cluster is stored in the same storage node. This can increase the probability that the target device is included in the termination storage node after receiving the update request, and the target storage node can be obtained without executing the search process of the update request, thereby improving the search efficiency. Furthermore, when executing the search process of the update request, the storage nodes with a higher update frequency are placed in the front position, which can reduce the average time consumed in the search process of all update requests and further improve the search efficiency.
[0013] In some embodiments, the production equipment and production equipment Continuous update of Satisfies the relationship:
[0014] ; The number of update requests within a statistical period. Produce equipment for two consecutive update requests Located in production facilities After that, the number Produce equipment for two consecutive update requests Located in production facilities The number after that.
[0015] Production Equipment and production equipment The continuous update degree is used to reflect the production equipment in two consecutive update requests. and production equipment The probability of continuous updates.
[0016] In some embodiments, Kmeans clustering is performed on all production equipment according to cluster distance to obtain multiple cluster clusters, including: setting an initial cluster number, and executing Kmeans clustering to divide all production equipment into the initial cluster number of cluster clusters; taking the sum of the cluster distances of any two production equipment in a cluster cluster as the first evaluation value, and taking the sum of the first evaluation values of each cluster cluster as the second evaluation value of the initial cluster number; updating the initial cluster number, and drawing a second evaluation value curve with the initial cluster number as the horizontal coordinate and the second evaluation value as the vertical coordinate, and taking the horizontal coordinate of the inflection point in the second evaluation value curve as the target cluster number; executing Kmeans clustering to divide all production equipment into the target cluster number of cluster clusters.
[0017] The sum of the clustering distances between any two production devices in a cluster is taken as the first evaluation value, which is used to reflect the probability of continuous update of each production device in the cluster. The target number of clusters is determined by the second evaluation value curve, thereby ensuring that the clustering distance of each production device in the cluster is minimized, reducing the probability of executing the search process of this update request, and directly obtaining the target storage node of this update request, effectively improving the search efficiency.
[0018] In some embodiments, the process of executing the update request includes a storage node search process and an information entry process, and the ranking value calculation process also includes: counting the average entry time of the information entry process of each production device within the statistical period; at a storage node, calculating the average value of the average entry time of each production device, calculating the product of the average value and the sum of the update frequencies of each production device, and obtaining the ranking value of the storage node.
[0019] The process of executing the update request is divided into a storage node search process and an information entry process. If the average entry time of each production device in a storage node is larger, the storage node will be placed in a front position to reduce the total time spent on executing the update request and improve search efficiency.
[0020] In some embodiments, after the end of the next adjacent statistical cycle of the statistical cycle, the update method also includes: recording the total time consumed by each update request in the storage node search process and the information entry process in the next adjacent statistical cycle, and calculating the average total time consumed by all update requests; subtracting the average total time consumed in the statistical cycle from the average total time consumed in the next adjacent statistical cycle to obtain the average total time consumption change; in response to the average total time consumption change being greater than the change amount threshold, re-constructing the storage database in the next adjacent statistical cycle to implement the update of the storage database.
[0021] The technical solution of this application has the following beneficial technical effects:
[0022] The above-mentioned method for updating the ledger information of production equipment provided in an embodiment of the present application, when receiving this update request, since the terminal storage node of the search process in the previous update request is the storage node that has been located, it is first determined whether the terminal storage node of the search process in the previous update request includes the target device; if the terminal storage node includes the target device, the target storage node is directly obtained; if the terminal storage node does not include the target device, the search process of this update request is executed again to obtain the target storage node, thereby improving the search efficiency of the target storage node, and quickly and accurately locating the location where the ledger information of the target device is stored; further, the ledger information of the target device in the target storage node is updated according to the latest ledger information in this update request, completing a ledger information update process, and improving the ledger information update efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] By reading the detailed description below with reference to the accompanying drawings, the above and other purposes, features and advantages of the exemplary embodiments of the present application will become easy to understand. In the accompanying drawings, several embodiments of the present application are shown in an exemplary and non-limiting manner, and the same or corresponding reference numerals represent the same or corresponding parts, wherein:
[0024] Figure 1 is a schematic diagram of a storage database according to an embodiment of the present application;
[0025] Figure 2 It is a flowchart of a method for updating production equipment ledger information according to an embodiment of the present application;
[0026] Figure 3 It is a flowchart of a method for constructing a storage database according to an embodiment of the present application. DETAILED DESCRIPTION
[0027] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.
[0028] It should be understood that when the application uses the terms "first", "second", etc., they are only used to distinguish different objects, rather than to describe a specific order. The terms "include" and "comprise" used in the application indicate the presence of the described features, wholes, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or their collections.
[0029] The present application provides a method for updating the ledger information of a production equipment, which is used to update the ledger information of multiple production equipment in a storage database, wherein the storage database includes multiple storage nodes arranged in a preset order, and each storage node stores the ledger information of one or more production equipment. Figure 1 , is a schematic diagram of a storage database according to an embodiment of the present application. The storage database includes 7 storage nodes in total, and is arranged in order from 1 to 7, where storage node 1 is the starting storage node, and each storage node includes the ledger information of at least one production equipment.
[0030] For a production device, in response to receiving an update request from the production device, the update request is executed to update the ledger information. The update process of the ledger information includes a storage node search process and an information entry process. The storage node search process is the process of searching the storage database for the storage node corresponding to the production device. The information entry process is the process of changing the ledger information of the production device in the storage node after the storage node search process is completed. At this point, the ledger information update process of the production equipment is completed.
[0031] See also Figure 2 FIG. 1 is a flowchart of a method for updating production equipment ledger information according to an embodiment of the present application. According to different requirements, the order of the steps in the flowchart can be changed, and some steps can be omitted.
[0032] S11, in response to receiving this update request, determining whether the storage node where the search process in the previous update request ends includes the target device, and this update request includes the latest ledger information of the target device.
[0033] In one embodiment, when the ledger information of any production equipment changes, the device issues an update request, and the update request includes the latest ledger information of the production equipment; due to the large number of production equipment, multiple production equipment will issue update requests at the same time, and these update requests will be arranged in the message queue, and the update requests will be processed in sequence according to the order in the message queue, and then the ledger information in the storage database will be updated; therefore, updating the ledger information of multiple production equipment can be regarded as processing multiple update requests in the message queue.
[0034] It should be noted that when a production equipment fails, when maintenance is completed, when the equipment is inspected, or when the equipment is started, it is considered that the ledger information has changed.
[0035] In one embodiment, since the updating process of a production equipment ledger information includes a storage node search process and an information entry process, that is, one update request corresponds to one storage node search process and one information entry process.
[0036] In response to receiving this update request, the termination storage node of the search process in the previous update request is first obtained. It can be understood that the termination storage node of the search process in the previous update request is the target device in the previous update request; based on the ID information of the target device in this update request, it is determined whether the termination storage node includes the target device in this update request.
[0037] Among them, the ID information of the target device is the unique identifier of the target device, which can be the Mac address, serial number or radio frequency identification tag of the target device, and this application does not impose any restrictions.
[0038] S12: In response to the termination storage node including the target device, taking the termination storage node as the target storage node.
[0039] In one embodiment, the termination storage node includes ID information of multiple production devices. If the ID information of the target device is in the termination storage node, it means that the termination storage node contains the target device. In response to the termination storage node containing the target device, the termination storage node is directly used as the target storage node.
[0040] Exemplarily, if the target device in the previous update request is production device c, and the termination storage node of the search process in the previous update request is storage node 5, and storage node 5 stores production device a, production device b and production device c; the target device in this update request is production device c, since the search process in the previous update request has located storage node 5, and storage node 5 includes production device c, it is possible to directly locate storage node 5 of this update request without having to perform a search process again.
[0041] In this way, when the termination storage node of the search process in the previous update request includes the target device of this update request, the target storage node of this update request can be obtained directly, reducing the search process of the storage node in this update request and improving the updating efficiency of the ledger information.
[0042] S13, in response to the termination storage node not containing the target device, starting from the starting storage node in the storage database, executes the search process of this update request to obtain the target storage node containing the target device, the storage database includes multiple storage nodes arranged in a preset order, and one storage node is used to store the ledger information of at least one production device.
[0043] In one embodiment, in response to the termination storage node not including the target device, it indicates that the target storage node of this update request cannot be directly obtained according to the search process in the previous update request, and the search process of this update request needs to be executed to obtain the target storage node.
[0044] Specifically, starting from the starting storage node in the storage database, the search process of this update request is executed to obtain the target storage node containing the target device, including: taking the starting storage node as the node to be searched, and judging whether the node to be searched contains the ID information of the target device; in response to the node to be searched containing the ID information of the target device, taking the node to be searched as the target storage node, and ending the search process of this update request; in response to the node to be searched not containing the ID information of the target device, obtaining the next storage node in the preset order as the node to be searched until the target storage node is obtained.
[0045] For example, the target device in this update request is production device c, and storage node 5 stores production devices a, b, and c. Figure 1 In the storage database shown, the starting storage node (storage node 1) is first used as the node to be searched. The node to be searched does not contain production equipment c. At this time, storage node 2 is used as the node to be searched, and so on. The search is performed along storage node 1, storage node 2, storage node 3, storage node 4 and storage node 5, and finally the target storage node (storage node 5) is obtained.
[0046] It can be understood that storage node 1, storage node 2, storage node 3, storage node 4 and storage node 5 constitute a search path, and the length of the search path is 5. The longer the search path is, the lower the search efficiency is.
[0047] In this way, starting from the starting storage node, the search process of this update request is executed in the storage database along the preset order to obtain the target storage node containing the target device.
[0048] S14, updating the ledger information of the target device in the target storage node based on the latest ledger information, and completing this update request.
[0049] In one embodiment, after obtaining the target storage node containing the target device, the information entry process can be started, and the latest ledger information of the target device in this update request can be entered into the target storage node to update the ledger information of the target device.
[0050] In one embodiment, the target storage node is the termination storage node of the search process in the next update request.
[0051] In this way, this update request is completed. When the target device of this update request is at the termination storage node of the search process in the previous update request, there is no need to execute the search process of this update request. When the target device of this update request is not at the termination storage node of the search process in the previous update request, the search process of this update request is executed according to the preset order of the storage nodes in the storage database, and the location where the target device ledger information is stored in the storage database is quickly and accurately located, thereby improving the search efficiency and thereby improving the update efficiency of the ledger information.
[0052] In one embodiment, the preset order of storage nodes in the storage database, as well as the number and type of production equipment in each storage node directly affect the search efficiency; the storage database can be constructed based on the update status of the ledger information of each production equipment within a statistical period. Figure 3 FIG. 1 is a flowchart of a method for constructing a storage database according to an embodiment of the present application. According to different requirements, the order of the steps in the flowchart can be changed, and some steps can be omitted. The specific description is as follows.
[0053] S21, counting the co-occurrence probability of any two production devices in two adjacent update requests within a statistical period as the continuous update degree.
[0054] Among them, production equipment and production equipment Continuous update of Satisfies the relationship:
[0055] ; The number of update requests within a statistical period. Produce equipment for two consecutive update requests Located in production facilities After that, the number Produce equipment for two consecutive update requests Located in production facilities The number after that. The duration of one statistical cycle is 1 day or 1 week.
[0056] For example, a statistical cycle includes 10 update requests, each of which includes a target device. If the target device sequence corresponding to the 10 update requests is ; then we can get There are 9 groups of binary tuples in total. One group of binary tuples is two consecutive update requests. Located in production facilities After that (i.e., the two-tuple ) is 3, and the number of production equipment in two consecutive update requests Located in production facilities After that (i.e., the two-tuple ) is 2, then the production equipment and production equipment The continuous update rate is .
[0057] Understandably, production equipment and production equipment The greater the continuous update degree, the greater the production equipment and production equipment The greater the probability of updating the ledger information, the greater the probability of updating the ledger information. and production equipment The more the ledger information is stored in the same storage node, the greater the probability that the search process of this update request does not need to be executed in this update request, thereby improving the search efficiency when updating the ledger information.
[0058] S22, performing Kmeans clustering on all production equipment according to clustering distance to obtain multiple clusters, wherein the clustering distance is negatively correlated with the continuous updating degree, and storing the ledger information of each production equipment in a cluster in a storage node.
[0059] A cluster includes at least one production equipment, and the cluster distance of the production equipment in a cluster is the smallest. In other words, the continuous update degree of the production equipment in a cluster is the largest. The cluster distance is the opposite or reciprocal of the continuous update degree; for example, when the cluster distance is the reciprocal of the continuous update degree, the production equipment and production equipment The clustering distance satisfy:
[0060] , For production equipment and production equipment Continuous update rate.
[0061] Specifically, Kmeans clustering is performed on all production equipment according to cluster distance to obtain multiple cluster clusters, including: setting an initial cluster number, and executing Kmeans clustering to divide all production equipment into the initial cluster number of cluster clusters; taking the sum of the cluster distances of any two production equipment in a cluster cluster as a first evaluation value, and taking the sum of the first evaluation values of each cluster cluster as a second evaluation value of the initial cluster number; updating the initial cluster number, and drawing a second evaluation value curve with the initial cluster number as the horizontal coordinate and the second evaluation value as the vertical coordinate, and taking the horizontal coordinate of the inflection point in the second evaluation value curve as the target cluster number; executing Kmeans clustering to divide all production equipment into the target cluster number of cluster clusters.
[0062] The initial number of clusters is 2, and the process of updating the initial number of clusters is: the initial number of clusters is increased by 1 each time it is updated, and the maximum value of the initial number of clusters is equal to the number of production equipment.
[0063] In other optional embodiments, the target cluster number may be directly set, for example, the target cluster number is set to a preset multiple of the total number of production equipment, and the preset multiple is 0.5.
[0064] After obtaining a plurality of target clusters, one cluster includes at least one production device, and the ledger information of the production devices in the same cluster is stored in one storage node to obtain a plurality of storage nodes.
[0065] It can be understood that in one application scenario, a storage node is a disk, and all disks are arranged in a preset order to obtain a storage database; in another application scenario, a storage node is a folder, and all folders are arranged in a preset order to obtain a storage database.
[0066] In this way, the clustering distance is determined according to the continuous update degree between different production equipment. The greater the continuous update degree, the smaller the clustering distance between different production equipment. Kmeans clustering is used to divide the production equipment with a larger continuous update degree into the same cluster cluster, so that the production equipment with a larger continuous update degree is stored in the same storage node, thereby reducing the probability of executing the search process of this update request and improving the search efficiency.
[0067] S23, taking the sum of the update frequencies of the production devices in the storage node as the ranking value of the storage node, and arranging them in descending order according to the ranking values to obtain a storage database.
[0068] The update frequency of the production equipment may be the number of updates of the production equipment within a statistical period, or may be the proportion of the number of updates of the production equipment within a statistical period.
[0069] It can be understood that for a storage node, the greater the sum of the update frequencies of various production devices, the more times the storage node is searched within a statistical period. Placing the storage node at a front position in the storage database can reduce the search time of storage nodes with more search times, thereby improving the search efficiency of all storage nodes within a statistical period.
[0070] In another embodiment, since the process of executing the update request includes a storage node search process and an information entry process, that is to say, the total duration of the storage node search process and the information entry process can reflect the update efficiency; for production equipment whose information entry process takes a long time, if the duration of its storage node search process is shortened, it can also improve the update efficiency. Therefore, placing the production equipment whose information entry process takes a long time in a front position in the storage database can improve the update efficiency. Specifically, the calculation process of the ranking value also includes: counting the average entry time of the information entry process of each production equipment within the statistical period; at a storage node, calculating the average value of the average entry time of each production equipment, calculating the product of the average value and the sum of the update frequencies of each production equipment, and obtaining the ranking value of the storage node.
[0071] In this way, the construction of the storage database is completed, and the types and quantities of production equipment in the storage nodes are adaptively determined according to the continuous update degree of different production equipment within the statistical period, thereby reducing the probability of executing the search process of this update request. At the same time, the storage nodes are sorted in descending order according to the sum of the update frequencies of each production equipment in the storage nodes, thereby reducing the search time of storage nodes with a large number of search times and improving the search efficiency of all storage nodes.
[0072] In one embodiment, due to the change in the update frequency of production equipment in different statistical periods and the continuous update degree of different production equipment, the storage database needs to be continuously adjusted over time to ensure the update efficiency of the ledger information. Specifically, after the end of the next adjacent statistical period of the statistical period, the update method also includes: recording the total time consumed by each update request in the storage node search process and the information entry process in the next adjacent statistical period, and calculating the average total time consumed for all update requests; subtracting the average total time consumed in the statistical period from the average total time consumed in the next adjacent statistical period to obtain the average total time consumption change; in response to the average total time consumption change being greater than the change amount threshold, the storage database is rebuilt in the next adjacent statistical period to update the storage database.
[0073] The change threshold is 1. On the contrary, if the change in the average total time consumption is not greater than the change threshold, it means that the storage database does not need to be updated.
[0074] The above-mentioned method for updating the ledger information of production equipment provided in an embodiment of the present application, when receiving this update request, since the terminal storage node of the search process in the previous update request is the storage node that has been located, it is first determined whether the terminal storage node of the search process in the previous update request includes the target device; if the terminal storage node includes the target device, the target storage node is directly obtained; if the terminal storage node does not include the target device, the search process of this update request is executed again to obtain the target storage node, thereby improving the search efficiency of the target storage node, and quickly and accurately locating the location where the ledger information of the target device is stored; further, the ledger information of the target device in the target storage node is updated according to the latest ledger information in this update request, completing a ledger information update process, and improving the ledger information update efficiency.
[0075] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0076] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the patent application. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application.
Claims
1. A method for updating production equipment ledger information, characterized in that: The updating method comprises: In response to receiving this update request, determining whether the storage node where the search process in the previous update request ends includes the target device, and this update request includes the latest ledger information of the target device; In response to the termination storage node including the target device, the termination storage node is used as the target storage node; in response to the termination storage node not including the target device, starting from the starting storage node in the storage database, a search process of this update request is performed to obtain the target storage node including the target device, the storage database includes a plurality of storage nodes arranged in a preset order, and one storage node is used to store the ledger information of at least one production device; Update the ledger information of the target device in the target storage node based on the latest ledger information; The method for constructing the storage database includes: counting the co-occurrence probability of any two production devices in two adjacent update requests within a statistical period as the continuous update degree; performing Kmeans clustering on all production devices according to the clustering distance to obtain multiple cluster clusters, wherein the clustering distance is negatively correlated with the continuous update degree, and storing the ledger information of each production device in a cluster in a storage node; taking the sum of the update frequencies of each production device in the storage node as the sorting value of the storage node, arranging them in descending order according to the sorting value, and obtaining a storage database; the production equipment and production equipment Continuous update of Satisfies the relationship: ; The number of update requests within a statistical period. Produce equipment for two consecutive update requests Located in production facilities After that, the number Produce equipment for two consecutive update requests Located in production facilities The number after that; The method of obtaining multiple clusters includes: setting an initial number of clusters, and executing Kmeans clustering to divide all production equipment into the initial number of clusters; taking the sum of cluster distances between any two production equipment in a cluster as a first evaluation value, and taking the sum of the first evaluation values of each cluster as a second evaluation value of the initial number of clusters; updating the initial number of clusters, and drawing a second evaluation value curve with the initial number of clusters as the horizontal coordinate and the second evaluation value as the vertical coordinate, and taking the horizontal coordinate of the inflection point in the second evaluation value curve as the target number of clusters; executing Kmeans clustering to divide all production equipment into the target number of clusters.
2. A method for updating production equipment ledger information according to claim 1, characterized in that: Starting from the starting storage node in the storage database, a search process of the update request is performed to obtain a target storage node containing the target device, including: Taking the starting storage node as the node to be searched, determining whether the node to be searched contains the ID information of the target device; In response to the node to be searched containing the ID information of the target device, the node to be searched is used as the target storage node, and the search process of this update request is ended; in response to the node to be searched not containing the ID information of the target device, the next storage node is obtained as the node to be searched in the preset order until the target storage node is obtained.
3. A method for updating production equipment ledger information according to claim 1, characterized in that: The target storage node is the termination storage node of the search process in the next update request.
4. A method for updating production equipment ledger information according to claim 1, characterized in that: The process of executing the update request includes a storage node search process and an information entry process, and the ranking value calculation process also includes: Count the average input time of each production equipment information input process during the statistical period; At a storage node, the average value of the average input duration of each production device is calculated, and the product of the average value and the sum of the update frequencies of each production device is calculated to obtain the ranking value of the storage node.
5. A method for updating production equipment ledger information according to claim 1, characterized in that: After the next adjacent statistical cycle of the statistical cycle ends, the updating method further includes: Record the total time consumed by each update request in the storage node search process and information entry process within the next adjacent statistical period, and calculate the average total time consumed by all update requests; Subtract the average total time consumed in the statistical period from the average total time consumed in the next adjacent statistical period to obtain a change in the average total time consumed; In response to the change in the average total time consumption being greater than the change threshold, the storage database is rebuilt in the next adjacent statistical period to implement the update of the storage database.
Citation Information
Patent Citations
Machine account information updating method, system and device and storage medium
CN113781016A
Hierarchical storage method and device based on block chain and electronic equipment
CN110334154A
Machine account data management method, device and equipment and computer storage medium
CN114547046A
