Data loading method, device, electronic device and non-volatile storage medium
By loading service data into the memory based on the behavioral characteristic information of the target user and the target score of the active user, the problem of being unable to provide pages with different functions in a timely manner in the existing technology is solved, and the performance is improved.
Patent Information
- Application Number
- CN202111649908.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-29
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2041-12-29
AI Technical Summary
The existing technology cannot determine the service data loaded into the memory based on the target object, resulting in the inability to provide users with pages with different functions in a timely manner.
By determining the behavioral characteristic information of the target users, the target user categories are divided, and the corresponding service data is loaded into the memory according to the target scores of active users, and is loaded in order from large to small according to the system function scores.
It realizes providing target users with pages with different functions in a timely manner, and solves the performance problem caused by the inability of the existing technology to determine the service data loaded into the memory based on the target object.
Smart Images

Figure CN114296826B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of IT operation and maintenance, and in particular to a data loading method, device, electronic device and non-volatile storage medium. Background Art
[0002] Currently, a variety of self-service apps can provide users with a variety of capabilities, including self-service payment, self-service inquiry, self-service ordering and other functions. In the prior art, the functional data corresponding to each function is usually stored in a disk database. However, compared with the disk database, the data reading and writing speed of the memory database is several orders of magnitude higher. Storing data in memory can greatly improve the performance of the application compared to accessing it from the disk database. Since the capacity of the memory database is not unlimited, it is necessary to load the necessary data into the memory database with judgment. However, the prior art cannot load the necessary data into the memory database with judgment.
[0003] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0004] Embodiments of the present invention provide a data loading method, device, electronic device and non-volatile storage medium to at least solve the technical problem that pages with different functions cannot be provided to users in a timely manner due to the inability to determine the service data loaded into the memory based on the target object in the prior art.
[0005] According to one aspect of an embodiment of the present invention, there is provided a data loading method applicable to a service system, comprising: determining behavioral characteristic information of a target user; determining a target user category of the target user based on the behavioral characteristic information of the target user; determining active users corresponding to the target user category, wherein the active user is a user with the highest target score among users in the target user category, the target score is the sum of the scores of various system functions corresponding to the user, and the score of each system function is determined based on the number of times the user calls the system function; and loading service data corresponding to the active user into a memory, wherein the service data is used to provide the target user with the system function corresponding to the service data after the loading is completed.
[0006] Optionally, determining active users corresponding to the target user category includes: determining multiple users whose user category is the target user category, and determining the number of times each of the multiple users calls each system function; determining the system function scores corresponding to each system function; determining the target score corresponding to each user, wherein the target score is the sum of the scores of each system function corresponding to each user, the score of the target system function is the number of times the target user calls the target system function multiplied by the system function score corresponding to the target system function, and the target system function is any one of the system functions.
[0007] Optionally, loading the service data corresponding to the active user into the memory includes: determining the scores of each system function corresponding to the active user; sorting the various system functions corresponding to the active user in order from large to small scores to obtain a system function loading order; and loading the service data corresponding to the system functions in sequence according to the system function loading order.
[0008] Optionally, determining the scores of each system function corresponding to the active user includes: determining, from various system functions, a system function whose system response time is lower than a preset time threshold as a first category system function, and determining a system function whose system response time is higher than a preset time threshold as a first category system function; determining the score corresponding to the first category system function as a first score, and determining the score corresponding to the second category system function as a second score, wherein the first score is greater than the second score.
[0009] Optionally, before determining the behavior characteristic information of the target user, the data loading method further includes: obtaining historical behavior characteristic data of multiple users; clustering the multiple users based on the historical behavior characteristic data of the multiple users to obtain multiple clusters, wherein the users in each cluster of the multiple clusters are users of the same user category.
[0010] Optionally, clustering multiple users based on historical behavioral feature data of multiple users includes: determining a first active user among the multiple users, and taking the first active user as a cluster core point; traversing each user among the multiple users, and determining a target distance between each user and the first active user based on the behavioral feature data of each user, wherein the target distance is used to reflect the degree of similarity between each user and the first active user, and the smaller the target distance, the greater the degree of similarity; determining users whose target distance is less than a preset clustering radius as users in the same cluster as the first active user; determining a second active user again from the remaining users among the multiple users, and taking the second active user as a cluster core point, and clustering the remaining users, wherein the remaining users are users among the multiple users for which clusters have not been determined; repeating the process of determining the cluster core point and clustering the multiple users based on the cluster core point until each user among the multiple users determines the corresponding cluster.
[0011] Optionally, loading the service data corresponding to the active user into the memory includes: if the target user does not log in to the system within a preset time period, deleting the service data corresponding to the target user loaded in the memory.
[0012] According to another aspect of an embodiment of the present invention, there is also provided a data loading device, which is applicable to a service system, and includes: a retrieval module, used to determine the behavioral characteristic information of a target user; a comparison module, used to determine the target user category of the target user based on the behavioral characteristic information of the target user; a first processing module, used to determine the active users corresponding to the target user category, wherein the active user is the user with the highest target score among the users in the target user category, and the target score is the sum of the scores of each system function corresponding to the user, and the score of each system function is determined based on the number of times the user calls the system function; a second processing module, used to load the service data corresponding to the active user into a memory, wherein the service data is used to provide the target user with the system function corresponding to the service data after loading is completed.
[0013] According to another aspect of an embodiment of the present invention, a nonvolatile storage medium is provided. The nonvolatile storage medium includes a stored program. When the program is running, a device where the nonvolatile storage medium is located is controlled to execute a data loading method.
[0014] According to another aspect of an embodiment of the present invention, an electronic device is provided. The electronic device includes a processor, and the processor is used to run a program. When the program is run, the data loading method is executed.
[0015] In an embodiment of the present invention, the behavior characteristic information of the target user is determined; based on the behavior characteristic information of the target user, the target user category of the target user is determined; the active users corresponding to the target user category are determined, wherein the active users are users with the highest target scores among the users in the target user category, the target score is the sum of the scores of various system functions corresponding to the users, and the score of each system function is determined based on the number of times the user calls the system function; the service data corresponding to the active users are loaded into the memory, wherein the service data is used to provide the target user with the system functions corresponding to the service data after the loading is completed. By determining the target user category of the target user based on the behavior characteristic information of the target user, and loading the service data corresponding to the active users corresponding to the target user category into the memory, the purpose of loading the service data into the memory database with judgment is achieved, thereby realizing the technical effect of providing pages with different functions to the target users in a timely manner, thereby solving the technical problem of not being able to provide users with pages with different functions in a timely manner due to the inability to determine the service data loaded into the memory based on the target object in the prior art. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0017] Figure 1 is a flow chart of a data loading method provided according to an embodiment of the present invention;
[0018] Figure 2 is a schematic diagram of a clustering process provided according to an embodiment of the present invention;
[0019] Figure 3 is a schematic diagram of a sample set provided according to an embodiment of the present invention;
[0020] Figure 4 is a schematic diagram of another sample set provided according to an embodiment of the present invention;
[0021] Figure 5 is a structural schematic diagram of a data loading device provided according to an embodiment of the present invention;
[0022] Figure 6 It is a structural schematic diagram of a computer device provided according to an embodiment of the present invention. DETAILED DESCRIPTION
[0023] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0024] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0025] According to an embodiment of the present invention, a method embodiment of a data loading method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0026] Figure 1 is a data loading method according to an embodiment of the present invention, such as Figure 1 As shown, the method comprises the following steps:
[0027] Step S102, determining the behavior characteristic information of the target user;
[0028] In some embodiments of the present application, before determining the behavior feature information of the target user, it is also necessary to determine multiple user categories, for example, multiple user categories can be determined by clustering historical user data. Specifically, historical behavior feature data of multiple users can be obtained; and based on the historical behavior feature data of the multiple users, the multiple users are clustered to obtain multiple clusters, wherein the users in each of the multiple clusters are users of the same user category.
[0029] In some embodiments of the present application, clustering the multiple users based on the historical behavior feature data of the above-mentioned multiple users includes: determining a first active user among the multiple users, and taking the first active user as a cluster core point; traversing each user among the multiple users, and determining a target distance between each user and the first active user based on the behavior feature data of each user, wherein the target distance is used to reflect the degree of similarity between each user and the first active user, and the smaller the target distance, the greater the degree of similarity; determining users whose target distance is less than a preset clustering radius as users in the same cluster as the first active user; determining a second active user again from the remaining users among the multiple users, and taking the second active user as a cluster core point to cluster the remaining users, wherein the remaining users are users among the multiple users for which clusters have not been determined; repeating the process of determining cluster core points and clustering the multiple users based on the cluster core points until each of the multiple users determines a corresponding cluster.
[0030] Specifically, in some embodiments of the present application, the specific process of determining multiple user types and active users corresponding to each user type by the clustering method is as follows:
[0031] First, in the first step, we need to obtain a sample set from historical user data. We collect the user's behavior characteristics (user, time, atomic capability) from the operation log of a time slice to form a sample set Y.
[0032] In some embodiments of the present application, the above-mentioned atomic capabilities refer to various functions provided by the system, such as balance inquiry, bill payment, etc.
[0033] Then execute the second step to preprocess the data in the sample set. Specifically, during preprocessing, you can first use LabelEncoder to numerically quantify the atomic capabilities, and the corresponding value of each atomic capability in the sample is the number of times the atomic capability in the sample is called. Then, since there are multiple samples of the same user in different time periods in the sample, in order to more clearly show the frequency of users using the system, different samples of the same user can be merged, and only one sample record is retained for the same user, and the quantified values of the atomic capabilities corresponding to different time periods of the user are merged. Finally, in order to avoid the impact of individual differences in users on clustering, users and query times can also be filtered during data preprocessing, retaining only the atomic capability parameter of the system.
[0034] In some embodiments of the present application, the LabelEncoder is used to encode categorical feature values, that is, to encode discontinuous numerical values or texts.
[0035] After that, the third step can be performed to classify the atomic capabilities of the system. Specifically, in order to more accurately identify users with higher requirements for system timeliness, this application classifies the atomic capabilities in the system according to the requirements for timeliness of the atomic capabilities, and assigns different initial weight values, that is, scores, to each type of capability according to its different requirements for system timeliness. For example, a higher weight value is assigned to a capability with particularly high timeliness requirements, and the lowest weight value is assigned to a capability with the lowest timeliness requirements.
[0036] Finally, execute the fourth step, clustering calculation.
[0037] In some embodiments of the present application, the DBSCAN algorithm can be used to cluster the sample set. The DBSCAN algorithm is a density-based spatial clustering algorithm. The algorithm divides areas with sufficient density into clusters, and defines a cluster as the largest set of density-connected points. This algorithm can effectively cluster users with similar behaviors into the same cluster. The specific clustering process is as follows: Figure 2 As shown, the following steps are included:
[0038] In step S202, preprocessing is performed on the data to be clustered;
[0039] In step S204, the mark bit and class code of all samples Y(i) are set to -1;
[0040] In some embodiments of the present application, if the mark bit of a sample is -1, it means that the sample has not been accessed, and if the class code is -1, it means that the sample has not been classified.
[0041] In step S206, all samples in the sample set are traversed, and the mark bits of the traversed samples are set to 1;
[0042] In step S208, clustering calculation is performed on the traversed samples to determine whether the samples can be assigned to the existing clusters;
[0043] If it is determined that the sample can be classified into an existing cluster, step S210 is executed to set the class code of the sample to the class code of the class to which the sample belongs;
[0044] If it is determined that the sample cannot be classified into an existing cluster, executing step S212 to add an atomic capability cluster, and setting the class code of the newly added atomic capability cluster to the original maximum class code plus 1;
[0045] After the corresponding clusters are determined for each sample in the sample set, step S214 is executed to form a clustering result data set.
[0046] In some embodiments of the present application, during the execution of the above clustering algorithm, all samples will be traversed, and the traversed samples will have their marks set to 1, indicating that the sample has been visited and does not need to be processed again. At the same time, the class numbers of all samples are set to -1, and the number of the initial class is set to 1. During the sample classification process, the class number is increased by 1 for each new class. Whenever a sample is classified into a certain class, the class number of the sample is set to the number of the current class. Therefore, it can be determined whether the sample has been classified by judging whether the class number of the sample is -1.
[0047] Second, set the parameters of the DBSCAN algorithm.
[0048] This application can select the most active user as the initial P point, i.e., the first cluster core point, at the beginning of clustering. Specifically, the determination of active users is determined by calculating the number of calls of each atomic capability of the sample * the sum of the weight values of the atomic capability. The specific calculation formula is: Among them, D i Indicates the number of times the user corresponding to the sample calls the i-th atomic capability, a i represents the weight value corresponding to the i-th atomic capability, K represents that there are K atomic capabilities in the system, and S(i) represents the sum of the weight values corresponding to the users, which is the above target score.
[0049] In some embodiments of the present application, a clustering density threshold for setting the number of samples in the reference sample set may be defined as minPts.
[0050] In some embodiments of the present application, the clustering radius can be set with reference to the Euclidean distance. Specifically, d(A, B) in the following formula can represent the Euclidean distance between two samples A and B, wherein a1, a2…an, etc. respectively represent the weight values of the first atomic capability, the second atomic capability…the nth atomic capability corresponding to user A, and b1, b2…bn, etc. respectively represent the weight values of the first atomic capability, the second atomic capability…the nth atomic capability corresponding to user B.
[0051]
[0052] Scan the entire sample set, find the initial core point P, and expand the core point. Traverse all core points in the ε neighborhood of the core point, and find points that are densely connected to these sample points until there are no sample points that can be expanded. The boundary nodes of the clusters finally clustered are all non-core sample points. Then rescan the sample set (excluding any data points in the previously found clusters), find core points that are not clustered, and repeat the above steps to expand the core point until there are no new core points in the sample set. Finally, each sample is classified into clusters with similar features.
[0053] Step S104, determining the target user category of the target user according to the behavior characteristic information of the target user;
[0054] Step S106, determining active users corresponding to the target user category, wherein the active users are users with the highest target scores among users in the target user category, the target score being the sum of scores of various system functions corresponding to the users, the scores of various system functions being determined based on the number of times the users call the system functions;
[0055] In some embodiments of the present application, determining the active users corresponding to the target user category includes: determining multiple users whose user category is the target user category, and determining the number of times each of the multiple users calls each system function; determining the system function scores corresponding to each system function; determining the target score corresponding to each user, wherein the target score is the sum of the scores of each system function corresponding to each user, the score of the target system function is the number of times the target user calls the target system function multiplied by the system function score corresponding to the target system function, and the target system function is any one of the system functions.
[0056] In some embodiments of the present application, after clustering is completed, the active users corresponding to each user category have been determined. The system can store the active users corresponding to each user category in an active user table. Specifically, since the business logic of each atomic capability background interface call is fixed, the corresponding background query table when calling the atomic capability can also be predicted in advance, so the instance data of the active user in the predicted table is loaded into the memory database in advance.
[0057] Step S108, loading the service data corresponding to the active user into the memory, wherein the service data is used to provide the target user with the system function corresponding to the service data after the loading is completed.
[0058] In some implementations of the present application, the process of loading the service data corresponding to the active user into the memory is as follows: determine the scores of each system function corresponding to the active user; sort the various system functions corresponding to the active user in order from large to small according to the scores to obtain a system function loading order; and load the service data corresponding to the system functions in sequence according to the system function loading order.
[0059] Specifically, when loading service data, the system will give priority to loading data corresponding to more active atomic capabilities. Among them, this application defines that the atomic capabilities with a high call ratio within the same cluster class are active atomic capabilities, that is, the number of calls of each atomic capability / total number of samples, and a list of active atomic capabilities will be generated.
[0060] In some embodiments of the present application, determining the scores of each system function corresponding to the active user includes: determining, from the various system functions, a system function whose system response time is lower than a preset time threshold as a first category of system functions, and determining a system function whose system response time is higher than a preset time threshold as a first category of system functions; determining the score corresponding to the first category of system functions as a first score, and determining the score corresponding to the second category of system functions as a second score, wherein the first score is greater than the second score.
[0061] In some embodiments of the present application, in order to reduce memory load, after loading the service data corresponding to the active user into the memory, the system will also delete the service data corresponding to the target user loaded in the memory if the target user does not log in to the system within a preset time period.
[0062] To further explain Figure 1 The data loading method shown in the figure is further explained below by taking a user logging into a self-service query APP as a specific example:
[0063] In the first step, data collection.
[0064] Collect user behavior characteristics from the logs of the past month to form Figure 3 The sample set shown. Understandably, Figure 3 The sample set shown in is for illustration only and does not constitute a limitation on this application. Figure 3 The first column of the table is the user's identification information, the second column is the sample collection time, the third column is the sample number, and the following columns are different system atomic capabilities. Among them, when the value in the column corresponding to the system atomic capability is 1, it means that the user has called the atomic capability at the collection time point, and if it is empty, it means that the user has not called the atomic capability.
[0065] Specifically, Figure 3 The various system atomic capabilities are accUseDetailQry (user cumulative amount query), accuUseQry (user cumulative amount query), QueryBalance (balance query), Qrybill (arrears query), QryCustBill (bill query), QryReturnBalanceDetail (call fee return query), QryPayment (call fee query), QryReturnBalanceInfoDetail (call fee return detail query), accuoffer (package query), and QryInstantFeelist (real-time fee query).
[0066] The second step is to preprocess the samples.
[0067] LabelEncoder is used to numerically quantify atomic capabilities, and the corresponding value of each atomic capability in the sample is the number of times the atomic capability is called in the sample.
[0068] In some embodiments of the present application, since there are multiple samples of the same user in different time periods, in order to more clearly show the frequency of the user using the system, we merged different samples of the same user, that is, deleted the time field, and only retained one sample record for the same user. The quantification values of each atomic capability were merged to finally form a sample set of 21 samples.
[0069] In some embodiments of the present application, in order to avoid the influence of individual differences of users on clustering, the user field can be deleted from the sample after the corresponding relationship between the user and the sample ID is recorded during data preprocessing, and only the atomic capability parameter is retained, thereby obtaining Figure 4 The processed sample set shown in . Figure 4The first column of the table is the user identification information, and the second column is the sample identification information and the number of calls of each atomic capability corresponding to the sample. Starting from the third column in the following table, each column represents the number of times an atomic capability is called by different users. When a table under a column of atomic capabilities is empty, it means that the corresponding user has not called the atomic capability.
[0070] The third step is to more accurately identify users who have higher requirements for system timeliness. This application classifies the atomic capabilities in the system according to timeliness, and divides them into two categories, namely, a first category of atomic capabilities with particularly high timeliness requirements, such as query atomic capabilities, payment atomic capabilities, and ordering atomic capabilities, and a second category of atomic capabilities with less urgent timeliness requirements, such as statistical atomic capabilities. Different initial weight values are assigned according to the different timeliness requirements of each category of capabilities for the system, with a weight value of D1=0.3 for the first category of atomic capabilities and a weight value of D2=0.1 for the second category of atomic capabilities.
[0071] In some embodiments of the present application, the first type of atomic capabilities determined by the above method are: QueryBalance, Qrybill, QryCustBill, QryReturnBalanceDetail, QryPayment, QryReturnBalanceInfoDetail, accuoffer, QryInstantFeeList; the second type of atomic capabilities are: accuUseDetailQry, accuUseQry.
[0072] The fourth step is to cluster users who have basically the same behavior after logging into the APP through a clustering algorithm.
[0073] First, the marks of all samples Y(i) are set to -1, indicating that all samples have not been visited. At the same time, the class numbers of all samples are set to -1, and the number of the initial class is set to 1. During the sample classification process, the class number increases by 1 for each new class.
[0074] Next, we start setting the parameters of the DBSCAN algorithm.
[0075] The present invention selects the most active user as the initial P point, i.e., the first cluster core point. The active user is determined by calculating the number of calls of each atomic capability of the sample * the sum of the weight values of the atomic capability. Through calculation, sample y5 is taken as the first P point.
[0076] Referring to the number of samples in the sample set, the present invention sets the clustering density threshold minPts to half of the total number of samples, that is, 10.
[0077] Refer to the Euclidean distance and set the cluster radius ε to 4. The Euclidean distance calculation formula is:
[0078]
[0079] Through the first clustering, cluster 1 is formed: y5, y11, y14, y18, y19, y20, y26, y29, y30, and the following table is obtained. The first column in the following table indicates the identification information of the user corresponding to the sample in cluster 1, and the second column is the identification information of the sample and the number of calls of each atomic capability corresponding to the sample.
[0080]
[0081]
[0082] According to the calculation results of the first P point, the sample with the highest S(i) is selected from the unclustered samples as the next P point, and cluster calculation is performed again to form cluster 2: y1, y2, y3, y4, y6, y12, y17, y22, y23, y24, y27, y28, and the following table is obtained. The first column in the following table represents the identification information of the user corresponding to the sample in cluster 2, and the second column is the identification information of the sample, as well as the number of calls of each atomic capability corresponding to the sample.
[0083] User01 y1(1,1,3,1,0,0,0,0,1,1) User02 y2(1,1,1,1,0,0,1,0,2,0) User 03 y3(0,1,0,0,1,0,0,0,0,0) User04 y4(0,1,0,0,1,1,0,0,0,0) User06 y6(0,0,0,0,0,0,1,1,0,0) User08 y12(1,1,0,0,0,0,0,0,1,0) User 10 y17(1,1,1,0,0,0,1,0,0,0) User14 y22(0,0,1,0,0,0,1,0,0,0) User 15 y23(1,1,0,0,0,0,0,0,1,0) User16 y24(1,1,1,0,0,0,1,0,0,0) User 18 y27(1,1,0,0,0,0,0,0,1,0) User 19 y28(1,1,1,0,0,0,1,0,0,0)
[0084] Step 5: Load the prediction instance data into the in-memory database.
[0085] In some embodiments of the present application, users whose atomic capability call percentage in samples within the same cluster exceeds 20% can be considered active users, that is, the total number of all atomic capability calls in the sample / the total number of all atomic capability calls in the cluster, to generate an active user list.
[0086] In some embodiments of the present application, the atomic capabilities whose calling percentage exceeds 20% in the same cluster may be defined as active atomic capabilities, that is, the calling times of each atomic capability / total number of samples.
[0087] Specifically, it can be considered that active atomic capabilities are called by active users in the cluster. Since the business logic of each atomic capability background interface call is fixed, the corresponding background query table when calling the atomic capability can also be predicted in advance, so the instance data of active users in the predicted table is loaded into the memory database in advance.
[0088] The final active users and active atomic capabilities of cluster 1 and cluster 2 are as follows:
[0089] Cluster 1: Active users: User 05, User 07
[0090] Active atomic capabilities: QueryBalance, Qrybill, QryReturnBalanceDetail
[0091] Cluster 2: Active users: User01, User02
[0092] Active atomic capabilities: accuUseDetailQry, accuUseQry
[0093] For cluster 1, the backend call logic for balance query QueryBalance, arrears query Qrybill, and call charge refund query QryReturnBalanceDetail needs to query multiple tables such as user data table PRODUCT_INST, balance table ACCT_BALANCE, arrears table ACCT_ITEM, call charge refund record table A_RETURN_RULE_INSTANCE, etc., and load the instance records of user 05 and user 07 in the above tables into memory in advance. For cluster 2, the instance data of active users: user 01 and user 02 in the query tables EVENT_AGGR_NM and M_USAGE_BALANCE_NM corresponding to the cumulative amount detail query accuUseDetailQry and cumulative amount query accuUseQry are recorded in memory in advance. The system functions that users are about to use are predicted based on the user's historical behavior characteristics, and the instance data of different services are loaded in advance for different users to improve the efficiency of system use.
[0094] Since long-term storage of user instance data in the memory database will occupy a large amount of resources and affect the query speed of other users, the validity period of the user instance data stored in the memory database can be set to short-term validity in some embodiments of the present application. For example, the expiration of each user instance data stored in the memory database is set to 10 minutes. If the user logs in to the system again within 10 minutes, the instance data is saved for 10 minutes after the last login time. If the user does not log in to the BSS system for more than 10 minutes, the user-related instance data will be deleted from the memory database.
[0095] According to an embodiment of the present invention, a device embodiment of a data loading device is provided, which is applicable to a service system. Figure 5 is a data loading device provided according to an embodiment of the present invention, such as Figure 5As shown, the device includes: a retrieval module 50, used to determine the behavioral characteristic information of the target user; a comparison module 52, used to determine the target user category of the target user based on the behavioral characteristic information of the target user; a first processing module 54, used to determine the active users corresponding to the target user category, wherein the active users are users with the highest target scores among the users in the target user category, and the target score is the sum of the scores of various system functions corresponding to the users, and the score of each system function is determined based on the number of times the user calls the system function; a second processing module 56, used to load the service data corresponding to the active users into the memory, wherein the service data is used to provide the target users with the system functions corresponding to the service data after the loading is completed.
[0096] It should be noted that Figure 5 The data loading device shown in FIG. 1 can be used to perform Figure 1 The data loading method shown in Figure 1 The explanations of the data loading methods shown in Figure 3 The data loading device shown in FIG. 1 is not described in detail here.
[0097] According to an embodiment of the present invention, an embodiment of a non-volatile storage medium is provided. The non-volatile storage medium includes a stored program, wherein when the program is running, the device where the non-volatile storage medium is located is controlled to execute the following data loading method: determining the behavioral characteristic information of the target user; determining the target user category of the target user based on the behavioral characteristic information of the target user; determining the active user corresponding to the target user category, wherein the active user is the user with the highest target score among the users in the target user category, and the target score is the sum of the scores of each system function corresponding to the user, and the score of each system function is determined based on the number of times the user calls the system function; loading the service data corresponding to the active user into the memory, wherein the service data is used to provide the target user with the system function corresponding to the service data after the loading is completed.
[0098] According to an embodiment of the present invention, an electronic device embodiment of an electronic device is provided. The electronic device includes a processor, the processor is used to run a program, wherein the program executes the following data loading method when it is running: determining the behavior characteristic information of the target user; determining the target user category of the target user based on the behavior characteristic information of the target user; determining the active user corresponding to the target user category, wherein the active user is the user with the highest target score among the users in the target user category, the target score is the sum of the scores of each system function corresponding to the user, and the score of each system function is determined based on the number of times the user calls the system function; loading the service data corresponding to the active user into the memory, wherein the service data is used to provide the target user with the system function corresponding to the service data after the loading is completed.
[0099] According to an embodiment of the present invention, an embodiment of a computer terminal is also provided. Figure 6 FIG. 6 is a schematic diagram showing the structure of a computer device 600 according to an embodiment of the present invention.
[0100] In an exemplary embodiment, a computer-readable storage medium including instructions is also provided, such as a memory 604 including instructions, and the above instructions can be executed by the processor 602 of the device 600 to complete the following target device control method: determine the behavior characteristic information of the target user; determine the target user category of the target user based on the behavior characteristic information of the target user; determine the active user corresponding to the target user category, wherein the active user is the user with the highest target score among the users in the target user category, and the target score is the sum of the scores of each system function corresponding to the user, and the score of each system function is determined according to the number of times the user calls the system function; load the service data corresponding to the active user into the memory, wherein the service data is used to provide the target user with the system function corresponding to the service data after the loading is completed. Optionally, the storage medium can be a non-temporary computer-readable storage medium, for example, the non-temporary computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0101] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0102] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0103] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0104] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0105] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0106] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
[0107] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A data loading method, applicable to a service system, characterized in that: include: Determine the behavioral characteristics of target users; Determining a target user category of the target user based on the behavior characteristic information of the target user; Determine active users corresponding to the target user category, wherein the active users are users with the highest target scores among users of the target user category, the target score is the sum of scores of various system functions corresponding to users of the target user category, and the score of each system function is determined based on the number of times the users of the target user category call the system function and the initial weight value corresponding to the system function; Loading service data corresponding to the active user into a memory, wherein the service data is used to provide the target user with a system function corresponding to the service data after the loading is completed; Loading the service data corresponding to the active user into the memory includes: determining the scores of the various system functions corresponding to the active users; sorting the various system functions corresponding to the active users in descending order of the scores to obtain a system function loading order; and loading the service data corresponding to the system functions in sequence according to the system function loading order.
2. The data loading method according to claim 1, characterized in that: The active users corresponding to the target user category include: Determine a plurality of users whose user category is the target user category, and determine the number of times each of the plurality of users calls each system function; Determine the initial weight values corresponding to each of the system functions; Determine the target score corresponding to each user.
3. The data loading method according to claim 1, characterized in that: Determining the scores of various system functions corresponding to the active users includes: Determine from the various system functions that a system response time is lower than a preset time threshold as a first type of system function, and determine that a system function whose system response time is higher than the preset time threshold is a second type of system function; Determine that the score corresponding to the first type of system function is a first score, and determine that the score corresponding to the second type of system function is a second score, wherein the first score is greater than the second score.
4. The data loading method according to claim 1, characterized in that: Before determining the behavior characteristic information of the target user, the data loading method further includes: Obtain historical behavioral characteristic data of multiple users; The multiple users are clustered according to the historical behavior feature data of the multiple users to obtain multiple clusters, wherein the users in each of the multiple clusters are users of the same user category.
5. The data loading method according to claim 1, characterized in that: Clustering the multiple users according to the historical behavior feature data of the multiple users includes: Determine a first active user among the multiple users, and use the first active user as a cluster core point; Traversing each user among the multiple users, and determining a target distance between each user and the first active user according to the behavior characteristic data of each user, wherein the target distance is used to reflect the similarity between each user and the first active user, and the smaller the target distance, the greater the similarity; Determine that the user whose target distance is less than a preset clustering radius is a user in the same cluster as the first active user; Determine a second active user again from the remaining users among the multiple users, and cluster the remaining users by taking the second active user as a cluster core point, wherein the remaining users are users among the multiple users for which no cluster is determined; The process of determining the cluster core point and clustering the multiple users according to the cluster core point is repeated until a corresponding cluster is determined for each of the multiple users.
6. The data loading method according to claim 1, characterized in that: Loading the service data corresponding to the active user into the memory includes: When the target user does not log in to the system within a preset time period, the service data corresponding to the target user loaded in the memory is deleted.
7. A data loading device, suitable for use in a service system, characterized in that: include: A retrieval module is used to determine the behavioral characteristic information of the target user; A comparison module, used to determine a target user category of the target user based on the behavior characteristic information of the target user; A first processing module is used to determine active users corresponding to the target user category, wherein the active users are users with the highest target scores among users of the target user category, the target score is the sum of scores of various system functions corresponding to users of the target user category, and the score of each system function is determined according to the number of times the users of the target user category call the system function and the initial weight value corresponding to the system function; A second processing module, configured to load the service data corresponding to the active user into a memory, wherein the service data is used to provide the target user with a system function corresponding to the service data after the loading is completed; Loading the service data corresponding to the active user into the memory includes: determining the scores of the various system functions corresponding to the active users; sorting the various system functions corresponding to the active users in descending order of the scores to obtain a system function loading order; and loading the service data corresponding to the system functions in sequence according to the system function loading order.
8. A non-volatile storage medium, characterized in that: The non-volatile storage medium includes a stored program, wherein when the program is running, the device where the non-volatile storage medium is located is controlled to execute the data loading method according to any one of claims 1 to 6.
9. An electronic device, characterized in that: The electronic device comprises a processor, and the processor is used to run a program, wherein the program executes the data loading method according to any one of claims 1 to 6 when running.
