Function configuration method, device, electronic device and medium

By storing and querying the switch instructions of business functions and using query threads to optimize business function configuration, the problem of low configuration efficiency in the existing technology is solved, and efficient and reliable business function configuration is achieved.

CN111427692BActive Publication Date: 2024-09-13CHINA PING AN PROPERTY INSURANCE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010223994.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-03-26
Publication Date
2024-09-13
Estimated Expiration
2040-03-26

AI Technical Summary

Technical Problem

Existing business function configuration methods are inefficient. They need to find switch instructions for specific functions among a large number of business function switch instructions, resulting in long configuration time and low efficiency.

Method used

By obtaining the switch instructions and business attributes of the business function, store the switch instructions in the corresponding storage location, use the query thread to loop through the switch instructions in the storage location, and configure the business functions based on the query results to achieve reasonable management and efficient configuration.

Benefits of technology

It improves the efficiency of business function configuration, takes into account system performance and query reliability, and realizes efficient and reliable configuration of personalized business functions of the business system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111427692B
    Figure CN111427692B
Patent Text Reader

Abstract

The present application provides a function configuration method, device, electronic device and medium. The method includes: obtaining a switch instruction of a business function, obtaining a business attribute of the business function; according to the business attribute, storing the switch instruction in a storage location corresponding to the business attribute, and there are one or more storage locations; obtaining the number of switch instructions in each storage location, the business attribute corresponding to the switch instruction in each storage location, and the system resource usage data of the business system; based on the number of switch instructions, the business attribute corresponding to the switch instruction, and the system resource usage data of the business system, allocating a query thread to the storage location; using the query thread to cyclically query a predetermined number of switch instructions in the storage location to obtain a query result; configuring the business function according to the query result, which can efficiently configure the business function.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0002] Business function configuration is to configure the required business functions for the business system, that is, to load the business functions that meet the needs into the business system. With the iteration of business system functions, a lot of business functions will appear.

[0003] In the current business function configuration method, when configuring a business function, it is necessary to find the switch instruction corresponding to the business function among the switch instructions of all business functions. Due to the excessive number of business functions, it takes a lot of time to configure the business functions of the business system, which is extremely inefficient. Summary of the invention

[0004] The present application aims to provide a function configuration method, device, electronic device and medium, which can efficiently configure business functions.

[0005] According to one aspect of an embodiment of the present application, a function configuration method is provided, including: obtaining a switch instruction of a business function, obtaining a business attribute of the business function; according to the business attribute, storing the switch instruction in a storage location corresponding to the business attribute, wherein there are one or more storage locations; obtaining the number of switch instructions in each of the storage locations, the business attribute corresponding to the switch instruction in each of the storage locations, and system resource usage data of the business system, and allocating a query thread to the storage location based on the number of the switch instructions, the business attribute corresponding to the switch instruction, and the system resource usage data of the business system; using the query thread to cyclically query a predetermined number of switch instructions in the storage location to obtain a query result, and configuring the business function according to the query result.

[0006] According to one aspect of an embodiment of the present application, a function configuration device is provided, including: an acquisition module, used to acquire a switch instruction of a business function and acquire a business attribute of the business function; a storage module, used to store the switch instruction in a storage location corresponding to the business attribute according to the business attribute, and the storage location has one or more storage locations; an allocation module, used to acquire the number of switch instructions in each of the storage locations, the business attribute corresponding to the switch instruction in each of the storage locations, and system resource usage data of the business system, and allocate a query thread to the storage location based on the number of the switch instructions, the business attribute corresponding to the switch instruction, and the system resource usage data of the business system; a query module, used to use the query thread to cyclically query a predetermined number of switch instructions in the storage location to obtain a query result, and configure the business function according to the query result.

[0007] In some embodiments of the present application, based on the aforementioned scheme, the storage module is configured to combine the business attributes of the business functions to obtain a combination feature of the business functions; and store the switch instruction to a storage location corresponding to the combination feature.

[0008] In some embodiments of the present application, based on the aforementioned scheme, the allocation module is configured to: normalize the number of the switch instructions, the business attributes and the system resource usage data into input data; input the input data into a trained allocation strategy analysis model to obtain the system resources allocated to the query thread of the storage location.

[0009] In some embodiments of the present application, based on the aforementioned scheme, the query module is configured as follows: from the storage position, select the predetermined number of switch instructions to establish a string array; use the query thread to traverse and query the string array to obtain query results of the switch instructions corresponding to the characters in the string array; after the traversal query is completed, re-select the predetermined number of switch instructions from the storage position corresponding to the query thread to establish a string array, and traverse and query the string array; until the traversal query of all the switch instructions in the storage position corresponding to the query thread is completed.

[0010] In some embodiments of the present application, based on the aforementioned scheme, the query module is further configured to: obtain the number of switch instructions in the storage location corresponding to the query thread; if the number of switch instructions in the storage location corresponding to the query thread reaches the predetermined number, then select the predetermined number of switch instructions to establish a string array.

[0011] In some embodiments of the present application, based on the aforementioned scheme, the query module is further configured to: if the number of switch instructions in the storage location corresponding to the query thread does not reach the predetermined number, then all switch instructions in the storage location corresponding to the query thread are selected to establish a string array.

[0012] In some embodiments of the present application, based on the aforementioned scheme, the query module is further configured to: record the position information of the selected predetermined number of switch instructions; and determine the position information of the next selection of the predetermined number of switch instructions based on the position information of the selected predetermined number of switch instructions.

[0013] According to one aspect of an embodiment of the present application, a computer-readable program medium is provided, which stores computer program instructions. When the computer program instructions are executed by a computer, the computer executes any of the above methods.

[0014] According to one aspect of an embodiment of the present application, an electronic device is provided, including: a processor; a memory, wherein computer-readable instructions are stored in the memory, and when the computer-readable instructions are executed by the processor, the method described in any one of the above items is implemented.

[0015] The technical solution provided by the embodiments of the present application may have the following beneficial effects:

[0016] In the technical solutions provided by some embodiments of the present application, the switch instruction of the business function is obtained, the business attribute of the business function is obtained, and according to the business attribute, the switch instruction is stored in a storage location corresponding to the business attribute, and there are one or more storage locations. The switch instructions are classified and saved in different storage locations, which can ensure that the switch instructions are reasonably managed. At the same time, when configuring a certain business function, the storage location of the switch instruction of the business function can be easily found through the business attribute of the business function, so as to easily find the switch instruction of the business function switch, thereby improving the efficiency of business function configuration. Then, the number of switch instructions in each storage location, the business attributes corresponding to the switch instructions in each storage location, and the system resource usage data of the business system are obtained; based on the number of switch instructions, the business attributes corresponding to the switch instructions, and the system resource usage data of the business system, query threads are allocated to the storage locations, and system resources are reasonably allocated to the query threads of the switch instructions, which can take into account both system performance and switch query reliability; further, query threads are used in each storage location to cyclically query a predetermined number of switch instructions in the storage location to obtain query results, and business functions are configured according to the query results; through a cyclic query method, query statements are bound to limited variables to ensure query efficiency, thereby achieving high efficiency and reliability in the personalized business function configuration of the business system.

[0017] It should be understood that the foregoing general description and the following detailed description are exemplary only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The accompanying drawings herein are incorporated in and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the description, are used to explain the principles of the present application.

[0019] Figure 1 A schematic diagram showing an exemplary system architecture to which the technical solution of the embodiments of the present application can be applied;

[0020] Figure 2 A flowchart of a function configuration method according to an embodiment of the present application is schematically shown;

[0021] Figure 3 A block diagram schematically shows a function configuration device according to an embodiment of the present application;

[0022] Figure 4 is a hardware diagram of an electronic device according to an exemplary embodiment;

[0023] Figure 5 A computer-readable storage medium for implementing the above function configuration method is shown according to an exemplary embodiment. DETAILED DESCRIPTION

[0024] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this application will be more comprehensive and complete and fully convey the concept of the example embodiments to those skilled in the art.

[0025] In addition, described feature, structure or characteristic can be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present application. However, those skilled in the art will appreciate that the technical scheme of the present application can be put into practice without one or more of the specific details, or other methods, components, devices, steps, etc. can be adopted. In other cases, known methods, devices, realizations or operations are not shown or described in detail to avoid blurring the various aspects of the application.

[0026] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0027] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.

[0028] Figure 1 A schematic diagram of an exemplary system architecture 100 to which the technical solution of the embodiments of the present application can be applied is shown.

[0029] like Figure 1As shown, the system architecture 100 may include a terminal device 101 (the terminal device may be one or more of a smart phone, a tablet computer, a portable computer, and a desktop computer), a network 102, and a server 103. The network 102 is used to provide a medium for a communication link between the terminal device 101 and the server 103. The network 102 may include various connection types, such as a wired communication link, a wireless communication link, and the like.

[0030] It should be understood that Figure 1 The number of terminal devices 101, networks 102 and servers 103 in the embodiment is only for illustration. According to the implementation requirements, there may be any number of terminal devices 101, networks 102 and servers 103. For example, the server 103 may be a server cluster composed of multiple servers.

[0031] In one embodiment of the present application, the server 103 obtains the business attribute of the business function by obtaining the switch instruction of the business function, and stores the switch instruction in a storage location corresponding to the business attribute according to the business attribute. There are one or more storage locations, and the switch instructions are classified and saved in different storage locations, which can ensure that the switch instructions are reasonably managed. At the same time, when configuring a certain business function, the storage location of the switch instruction of the business function can be easily found through the business attribute of the business function, so as to easily find the switch instruction of the business function switch, thereby improving the efficiency of business function configuration. Then, the number of switch instructions in each storage location, the business attributes corresponding to the switch instructions in each storage location, and the system resource usage data of the business system are obtained; based on the number of switch instructions, the business attributes corresponding to the switch instructions, and the system resource usage data of the business system, query threads are allocated to the storage locations, and system resources are reasonably allocated to the query threads of the switch instructions, which can take into account both system performance and switch query reliability; further, query threads are used in each storage location to cyclically query a predetermined number of switch instructions in the storage location to obtain query results, and business functions are configured according to the query results; through a cyclic query method, query statements are bound to limited variables to ensure query efficiency, thereby achieving high efficiency and reliability in the personalized business function configuration of the business system.

[0032] It should be noted that the function configuration method provided in the embodiment of the present application is generally executed by the server 103, and accordingly, the function configuration device is generally set in the server 103. However, in other embodiments of the present application, the terminal device 101 may also have similar functions to the server 103, so as to execute the function configuration method provided in the embodiment of the present application.

[0033] The implementation details of the technical solution of the embodiment of the present application are described in detail below:

[0034] Figure 2 The flowchart of the function configuration method according to an embodiment of the present application is schematically shown. The execution subject of the function configuration method may be a server, for example, Figure 1 Server 103 shown in .

[0035] Reference Figure 2 As shown, the function configuration method at least includes steps S210 to S240, which are described in detail as follows:

[0036] In step S210, a switch instruction of a business function is obtained, and a business attribute of a function configuration business function is obtained.

[0037] In one embodiment of the present application, the switch instruction can be a set of key-value pairs, where the key stores the function identifier corresponding to the switch. If the function is allowed to be used, the value stores the enable parameter value, which can be 1; if the function is prohibited to be used, the value stores the disable parameter value, which can be 0.

[0038] In one embodiment of the present application, the switch instructions can be divided into two categories: switches based on the organization dimension, and channel switch instructions based on the three attributes of channel, insurance type, and organization dimension.

[0039] In one embodiment of the present application, a switch instruction corresponding to a business function in a business system is obtained, the validity of the switch instruction may be checked, and only valid switch instructions are queried.

[0040] In one embodiment of the present application, the business system log may be read, and if the operating frequency of a business function corresponding to a certain switch instruction does not reach a set frequency, it may be determined that the switch instruction is invalid.

[0041] In one embodiment of the present application, if the time from the last operation of a service function corresponding to a switch instruction to the time when the switch is acquired reaches a set time, it can be determined that the switch instruction is invalid.

[0042] In one embodiment of the present application, the service attributes of the service function may include service volume, service name, time consumption, and service importance.

[0043] In step S220, according to the service attribute, the switch instruction is stored in a storage location corresponding to the service attribute, and there are one or more storage locations.

[0044] In one embodiment of the present application, the business attributes of the function configuration business functions can be combined to obtain the combination characteristics of the function configuration business functions; the function configuration switch instructions are stored in the storage location corresponding to the function configuration combination characteristics, and the switches are classified according to the combination characteristics, so as to achieve unified management of switch instructions of the same type and facilitate the formulation of query strategies.

[0045] In one embodiment of the present application, the combined features corresponding to the switch instruction may include features reflecting the priority of switch deployment, such as business volume, business name, time consumption, and business importance.

[0046] In one embodiment of the present application, different storage locations may be different storage files.

[0047] In one embodiment of the present application, the switch instruction may include a service function identifier; thus, the service function identifier may be used to conveniently find the corresponding switch instruction and modify the switch instruction.

[0048] In one embodiment of the present application, switch instructions of different categories can be stored in different storage files, and the storage files can be database tables or folders, etc., so that the switch instructions can be reasonably managed, and the switch instructions can be queried from different storage files according to needs.

[0049] In this embodiment, by storing different types of switch instructions in different storage files, compared with putting different types of switch instructions in one file, it is more orderly and not easy to put different types of switches in the wrong position, which is not conducive to management. By allocating a corresponding thread to each storage file, parallel query can be implemented to ensure query efficiency.

[0050] Continue to refer to Figure 2 In step S230, the number of switch instructions in each storage location, the business attributes corresponding to the switch instructions in each storage location, and the system resource usage data of the business system are obtained, and based on the number of switch instructions, the business attributes corresponding to the switch instructions, and the system resource usage data of the business system, a query thread is allocated to the storage location.

[0051] In one embodiment of the present application, the number, business attributes and system resource usage data can be normalized into input data; the input data is input into a trained allocation strategy analysis model to obtain the system resources corresponding to each query thread.

[0052] In one embodiment of the present application, a training method for an allocation strategy analysis model includes: collecting a training sample set, each sample in the sample set including the number of switch instructions corresponding to a classification of switch instructions, business attributes, and system resource usage data, and system resource information of a calibrated target thread; inputting the input data of each sample in the sample set into the allocation strategy analysis model to obtain system resource information corresponding to the classification of switch instructions for each sample; if there is a sample whose input data is input into the allocation strategy analysis model, and the system resource information corresponding to the classification of switch instructions obtained by the sample is inconsistent with the system resource information of the classification of switch instructions calibrated for the sample in advance, then the coefficients of the allocation strategy analysis model are adjusted until they are consistent; when all the sample input data are input into the allocation strategy analysis model, the system resource information corresponding to the classification of switch instructions obtained by each sample is consistent with the system resource information of the classification of switch instructions calibrated for each sample in advance, and the training is completed.

[0053] In one embodiment of the present application, the number of switch instructions can reflect the size of the query volume, and the system resource usage data can include usage data of system resources such as CPU resources, memory resources, and I / O device resources, which can reflect the current resource usage of the system.

[0054] In one embodiment of the present application, these data analyses can be used to reasonably allocate query threads for switch instructions, thereby taking into account system performance while ensuring switch query reliability.

[0055] Continue to refer to Figure 2 In step S240, a query thread is used to cyclically query a predetermined number of switch instructions in the storage location to obtain a query result, and the business function is configured according to the query result.

[0056] In one embodiment of the present application, after completing a query, the data in the query thread can be released, and the query thread can be executed for the data that needs to be queried next time. The switch instructions in the system resources allocated to each query thread can be queried in batches, thereby avoiding database performance problems caused by too many switches and the binding variables of the query thread exceeding a certain threshold due to continuous updates and iterations of the business system.

[0057] In one embodiment of the present application, a predetermined number of switch instructions can be selected from a storage location to establish a string array; a query thread is used to traverse and query the string array to obtain query results of the switch instructions in the string array; after the traversal query is completed, a predetermined number of switch instructions are selected from the storage location corresponding to the query thread to establish a string array, and the string array is traversed and queried; until the traversal query of all switch instructions in the storage location corresponding to the query thread is completed, database performance problems caused by too many switches and the query thread's binding variables exceeding a certain threshold due to continuous updates and iterations of the business system are avoided.

[0058] In one embodiment of the present application, the number of switch instructions in the storage location corresponding to the query thread can be obtained; if the number of switch instructions in the storage location corresponding to the query thread reaches a predetermined number, a predetermined number of switch instructions are selected to establish a string array, and the string array is queried by thread to query the switch instructions in batches.

[0059] In one embodiment of the present application, if the number of switch instructions in the storage location corresponding to the query thread does not reach a predetermined number, all switch instructions in the storage location corresponding to the query thread are selected, a string array is established, and the string array is queried for threads to avoid omissions.

[0060] In one embodiment of the present application, after selecting a predetermined number of switch instructions to establish a string array, the position information of the selected predetermined number of switch instructions can be recorded; and the position information of the next selected predetermined number of switch instructions is determined based on the position information of the selected predetermined number of switch instructions.

[0061] In one embodiment of the present application, the position information adjacent to the position information of the predetermined number of switch instructions selected last time can be used as the position information of the starting position for selecting the predetermined number of switch instructions next time, and the predetermined number of switch instructions can be selected from the adjacent position to avoid omission. At the same time, since the switch instructions at the adjacent positions have similar functions, sequential processing or simultaneous query can improve the query efficiency.

[0062] In one embodiment of the present application, after establishing a string array according to a predetermined number of switch instructions, a target number of switch instructions can be selected to establish a temporary string array, and a query thread can be performed on the temporary string array. After the query is completed, the temporary string array is dissolved, and a target number of switch instructions can be selected again to establish a temporary string array and perform a query thread until the query is completed.

[0063] In one embodiment of the present application, the number of loops may be determined according to the total number of switch instructions stored in the storage location corresponding to the query thread and a predetermined number.

[0064] In one embodiment of the present application, the predetermined number may be determined based on usage data of system resources.

[0065] exist Figure 2 In the embodiment, by obtaining the switch instruction of the business function, the business attribute of the business function is obtained, and according to the business attribute, the switch instruction is stored in a storage location corresponding to the business attribute, and there are one or more storage locations. The switch instructions are classified and saved in different storage locations, which can ensure that the switch instructions are reasonably managed. At the same time, when configuring a certain business function, the storage location of the switch instruction of the business function can be easily found through the business attribute of the business function, so as to easily find the switch instruction of the business function switch, thereby improving the efficiency of business function configuration. Then, the number of switch instructions in each storage location, the business attributes corresponding to the switch instructions in each storage location, and the system resource usage data of the business system are obtained; based on the number of switch instructions, the business attributes corresponding to the switch instructions, and the system resource usage data of the business system, query threads are allocated to the storage locations, and system resources are reasonably allocated to the query threads of the switch instructions, which can take into account both system performance and switch query reliability; further, query threads are used in each storage location to cyclically query a predetermined number of switch instructions in the storage location to obtain query results, and business functions are configured according to the query results; through a cyclic query method, query statements are bound to limited variables to ensure query efficiency, thereby achieving high efficiency and reliability in the personalized business function configuration of the business system.

[0066] The following describes an apparatus embodiment of the present application, which can be used to execute the function configuration method in the above embodiment of the present application. For details not disclosed in the apparatus embodiment of the present application, please refer to the above embodiment of the function configuration method of the present application.

[0067] Figure 3 The block diagram schematically shows a function configuration device according to an embodiment of the present application.

[0068] Reference Figure 3 As shown, a function configuration device 300 according to an embodiment of the present application includes an acquisition module 301 , a storage module 302 , an allocation module 303 and a query module 304 .

[0069] In some embodiments of the present application, based on the aforementioned scheme, the acquisition module 301 is used to obtain the switch instructions of the business function and obtain the business attributes of the business function; the storage module 302 is used to store the switch instructions in the storage location corresponding to the business attributes according to the business attributes, and there are one or more storage locations; the allocation module 303 is used to obtain the number of switch instructions in each storage location, the business attributes corresponding to the switch instructions in each storage location, and the system resource usage data of the business system, and allocate query threads to the storage locations based on the number of switch instructions, the business attributes corresponding to the switch instructions, and the system resource usage data of the business system; the query module 304 is used to use the query thread to cyclically query a predetermined number of switch instructions in the storage location to obtain the query results, and configure the business function according to the query results.

[0070] In some embodiments of the present application, based on the aforementioned solution, the storage module 302 is configured to combine the business attributes of the business functions to obtain the combined features of the business functions; and store the switch instructions in the storage location corresponding to the combined features.

[0071] In some embodiments of the present application, based on the aforementioned scheme, the allocation module 303 is configured to: normalize the number of switch instructions, business attributes and system resource usage data into input data; input the input data into a trained allocation strategy analysis model to obtain the system resources allocated to the query thread of the storage location.

[0072] In some embodiments of the present application, based on the aforementioned scheme, the query module 304 is configured as follows: a predetermined number of switch instructions are selected from a storage location to establish a string array; a query thread is used to traverse and query the string array to obtain query results of the switch instructions corresponding to the characters in the string array; after the traversal query is completed, a predetermined number of switch instructions are selected from the storage location corresponding to the query thread to establish a string array, and a traversal query is performed on the string array; until the traversal query of all switch instructions in the storage location corresponding to the query thread is completed.

[0073] In some embodiments of the present application, based on the aforementioned scheme, the query module 304 is further configured to: obtain the number of switch instructions in the storage location corresponding to the query thread; if the number of switch instructions in the storage location corresponding to the query thread reaches a predetermined number, then select a predetermined number of switch instructions to establish a string array.

[0074] In some embodiments of the present application, based on the above scheme, the query module 304 is further configured to: if the number of switch instructions in the storage location corresponding to the query thread does not reach a predetermined number, all switch instructions in the storage location corresponding to the query thread are selected to establish a string array.

[0075] In some embodiments of the present application, based on the above scheme, the query module 304 is further configured to: record the position information of the selected predetermined number of switch instructions; determine the position information of the next selected predetermined number of switch instructions based on the position information of the selected predetermined number of switch instructions.

[0076] Those skilled in the art will appreciate that various aspects of the present application may be implemented as a system, method or program product. Therefore, various aspects of the present application may be specifically implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to as "circuit", "module" or "system" herein.

[0077] Refer to the following Figure 4 The electronic device 40 according to this embodiment of the present application is described. Figure 4 The electronic device 40 shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0078] like Figure 4 As shown, the electronic device 40 is in the form of a general computing device. The components of the electronic device 40 may include but are not limited to: at least one processing unit 41, at least one storage unit 42, a bus 43 connecting different system components (including the storage unit 42 and the processing unit 41), and a display unit 44.

[0079] The storage unit stores program codes, which can be executed by the processing unit 41, so that the processing unit 41 executes the steps described in the above “Embodiment Method” section of this specification according to various exemplary implementations of the present application.

[0080] The storage unit 42 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 421 and / or a cache memory unit 422 , and may further include a read-only memory unit (ROM) 423 .

[0081] The storage unit 42 may also include a program / utility 424 having a set (at least one) of program modules 425, such program modules 425 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.

[0082] Bus 43 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.

[0083] The electronic device 40 may also communicate with one or more external devices (e.g., keyboards, pointing devices, Bluetooth devices, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 40, and / or may communicate with any device that enables the electronic device 40 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 45. Furthermore, the electronic device 40 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 46. As shown, the network adapter 46 communicates with other modules of the electronic device 40 via a bus 43. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 40, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0084] Through the description of the above implementation methods, it is easy for those skilled in the art to understand that the example implementation methods described here can be implemented by software or by combining software with necessary hardware. Therefore, the technical solution according to the implementation methods of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the implementation methods of the present application.

[0085] According to one embodiment of the present application, a computer-readable storage medium is also provided, on which a program product capable of implementing the above method of the present specification is stored. In some possible implementations, various aspects of the present application can also be implemented in the form of a program product, which includes a program code, and when the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps according to various exemplary implementations of the present application described in the above "Exemplary Method" section of the present specification.

[0086] refer to Figure 5 As shown, a program product 50 for implementing the above method according to an embodiment of the present application is described, which can adopt a portable compact disk read-only memory (CD-ROM) and include program code, and can be run on a terminal device, such as a personal computer. However, the program product of the present application is not limited thereto. In this document, a readable storage medium can be any tangible medium containing or storing a program, which can be used by or in combination with an instruction execution system, an apparatus or a device.

[0087] The program product may use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0088] Computer readable signal media may include data signals propagated in baseband or as part of a carrier wave, in which readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Readable signal media may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0089] The program code embodied on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.

[0090] Program code for performing the operations of the present application may be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., using an Internet service provider to connect through the Internet).

[0091] In addition, the above-mentioned figures are only schematic illustrations of the processes included in the method according to the exemplary embodiments of the present application, and are not intended to be limiting. It is easy to understand that the processes shown in the above-mentioned figures do not indicate or limit the time sequence of these processes. In addition, it is also easy to understand that these processes can be performed synchronously or asynchronously, for example, in multiple modules.

[0092] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be performed without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. A function configuration method, It is characterized in that include: Obtaining a switch instruction of a business function and obtaining a business attribute of the business function; According to the service attribute, the switch instruction is stored in a storage location corresponding to the service attribute, and the storage location may be one or more; Acquire the number of switch instructions in each of the storage locations, the service attributes corresponding to the switch instructions in each of the storage locations, and system resource usage data of the business system, and allocate a query thread to the storage location based on the number of switch instructions, the service attributes corresponding to the switch instructions, and the system resource usage data of the business system; Using the query thread to cyclically query a predetermined number of switch instructions in the storage location to obtain a query result, and configuring the service function according to the query result; The step of using the query thread to cyclically query a predetermined number of switch instructions in the storage location to obtain a query result includes: Selecting the predetermined number of switch instructions from the storage location to establish a character string array; Use the query thread to traverse and query the string array to obtain query results of switch instructions corresponding to the characters in the string array; After the traversal query is completed, the predetermined number of switch instructions are selected from the storage location corresponding to the query thread to establish a string array, and the string array is traversed and queried; Until all the switch instructions in the storage location corresponding to the query thread are traversed and queried.

2. The function configuration method according to claim 1, It is characterized in that The storing the switch instruction to a storage location corresponding to the service attribute includes: Combining the business attributes of the business functions to obtain a combination feature of the business functions; The switch instruction is stored in a storage location corresponding to the combined feature.

3. The function configuration method according to claim 1, It is characterized in that The allocating a query thread to the storage location based on the number of the switch instructions, the service attributes corresponding to the switch instructions, and the system resource usage data of the service system includes: Normalizing the number of the switch instructions, the service attributes and the system resource usage data into input data; The input data is input into a trained allocation strategy analysis model to obtain system resources allocated to the query thread of the storage location.

4. The function configuration method according to claim 1, It is characterized in that The step of selecting the predetermined number of switch instructions from the storage location to establish a character string array comprises: Obtaining the number of switch instructions in the storage location corresponding to the query thread; If the number of switch instructions in the storage location corresponding to the query thread reaches the predetermined number, the predetermined number of switch instructions are selected to establish a character string array.

5. The function configuration method according to claim 4, It is characterized in that If the number of switch instructions in the storage location corresponding to the query thread does not reach the predetermined number, all switch instructions in the storage location corresponding to the query thread are selected to create a character string array.

6. The function configuration method according to claim 5, It is characterized in that After selecting the predetermined number of switch instructions from the storage location to establish a character string array, the method further includes: Recording the position information of the selected predetermined number of switch instructions; The position of selecting the predetermined number of switch instructions next time is determined according to the position information of the selected predetermined number of switch instructions.

7. A function configuration device, It is characterized in that include: An acquisition module, used to acquire a switch instruction of a business function and acquire a business attribute of the business function; A storage module, used for storing the switch instruction in a storage location corresponding to the service attribute according to the service attribute, and the storage location may be one or more; an allocation module, configured to obtain the number of switch instructions in each of the storage locations, the service attributes corresponding to the switch instructions in each of the storage locations, and system resource usage data of the business system, and allocate a query thread to the storage location based on the number of switch instructions, the service attributes corresponding to the switch instructions, and the system resource usage data of the business system; A query module, used for using the query thread to cyclically query a predetermined number of switch instructions in the storage location to obtain a query result, and configuring the service function according to the query result; Wherein, the query module includes: Selecting the predetermined number of switch instructions from the storage location to establish a character string array; Use the query thread to traverse and query the string array to obtain query results of switch instructions corresponding to the characters in the string array; After the traversal query is completed, the predetermined number of switch instructions are selected from the storage location corresponding to the query thread to establish a string array, and the string array is traversed and queried; Until all the switch instructions in the storage location corresponding to the query thread are traversed and queried.

8. An electronic device, It is characterized in that include: one or more processors; A storage device for storing one or more programs, which, when executed by the one or more processors, enables the one or more processors to implement the method according to any one of claims 1 to 6.

9. A computer program medium having computer-readable instructions stored thereon, which, when executed by a processor of a computer, causes the computer to execute the method according to any one of claims 1 to 6.