WO2018086265A1 - 业务数据处理方法及终端 - Google Patents

业务数据处理方法及终端 Download PDF

Info

Publication number
WO2018086265A1
WO2018086265A1 PCT/CN2017/073387 CN2017073387W WO2018086265A1 WO 2018086265 A1 WO2018086265 A1 WO 2018086265A1 CN 2017073387 W CN2017073387 W CN 2017073387W WO 2018086265 A1 WO2018086265 A1 WO 2018086265A1
Authority
WO
WIPO (PCT)
Prior art keywords
service
algorithm
data
service algorithm
preset
Prior art date
Application number
PCT/CN2017/073387
Other languages
English (en)
French (fr)
Inventor
王就堂
Original Assignee
平安科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2018086265A1 publication Critical patent/WO2018086265A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/284Relational databases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5016Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals the resource being the memory
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • H04L67/5682Policies or rules for updating, deleting or replacing the stored data

Definitions

  • the embodiments of the present invention belong to the field of communications, and in particular, to a service data processing method and a terminal.
  • Oracle Database is a relational database management system of Oracle Corporation. The system is portable, easy to use, and powerful. It is suitable for all kinds of large, medium, small and micro-computer environments.
  • the algorithm programs of premium, current price, and bonus for life products are generally placed in the omcle database, and then directly interact with the oracle database through the front-end system.
  • the interaction between the front-end system and the omcle database consumes too large omcle database resources, making the omcle database difficult to be effective. Support business use, and is likely to cause downtime directly.
  • the embodiments of the present invention provide a service data processing method and a terminal, which are intended to solve the problem that the omcle database is difficult to effectively support service usage, and is likely to directly cause downtime problems.
  • a first aspect of the embodiments of the present invention provides a service data processing method, where the method includes: [0006] after receiving an application service startup instruction, reading a service algorithm in the omcle database and the service algorithm involved Data
  • a second aspect of the embodiments of the present invention is a service data processing apparatus, where the apparatus includes: [0012] a service algorithm reading unit, configured to: after receiving the application service startup instruction, read a service algorithm in the omcle database and data related to the service algorithm;
  • a service algorithm cache unit configured to cache the read service algorithm and data related to the service algorithm
  • a service algorithm call instruction receiving unit configured to receive a service algorithm call instruction, where the service algorithm call instruction carries a unique identifier of the service algorithm
  • a service algorithm invoking unit configured to invoke a cached corresponding service algorithm and data related to the service algorithm according to the service algorithm call instruction
  • the service data processing unit is configured to process the specified service data according to the invoked service algorithm and data related to the service algorithm.
  • a third aspect of the embodiments of the present invention provides a terminal, where the terminal includes:
  • a processor an input device, a memory
  • the processor is configured to: after the input device receives the application service startup instruction, read a service algorithm in the omcle database and data related to the service algorithm,
  • a memory configured to cache the service algorithm read by the processor and data related to the service algorithm
  • the input device is further configured to receive a service algorithm call instruction, where the service algorithm call instruction carries a unique identifier of the service algorithm;
  • the processor is further configured to invoke a cached corresponding service algorithm and data related to the service algorithm according to the service algorithm call instruction received by the input device, according to the invoked service algorithm and the service algorithm.
  • the data is processed by the specified business data.
  • a fourth aspect of the embodiments of the present invention provides a non-transitory computer readable storage medium storing instructions executable by one or more processors to perform operations, The operations include:
  • the server can quickly invoke the service algorithm corresponding to the service algorithm call instruction and the service.
  • the data involved in the algorithm improves the calling speed of the business algorithm, and since the business algorithm and the data involved in the business algorithm are cached in the server, the consumption of the omcle database resource is reduced, thereby avoiding the occurrence of the omcle database. The situation of downtime.
  • FIG. 1 is a flowchart of a service data processing method according to a first embodiment of the present invention
  • FIG. 2 is a structural diagram of a service data processing according to a second embodiment of the present invention.
  • FIG. 3 is a structural diagram of a terminal according to a third embodiment of the present invention.
  • the service algorithm in the omcle database and the data involved in the service algorithm are read, and the service algorithm and the data involved in the service algorithm are cached.
  • FIG. 1 is a flowchart of a service data processing method according to a first embodiment of the present invention, which is described in detail as follows:
  • Step S1 after receiving the application service startup instruction, reading the service algorithm in the omcle database and the data involved in the service algorithm.
  • the application service refers to a service corresponding to various applications implemented by the server, for example, when the application is an application of a life product, the application service refers to a service corresponding to the application of the life product, when the user clicks
  • the application corresponding to the life product issues an application service startup instruction
  • the application corresponding to the life product receives the application service startup instruction
  • the server issues a service algorithm read instruction
  • the service algorithm read instruction carries the unique identifier of the application corresponding to the life product
  • the omcle database Receiving a service algorithm read instruction, searching for a service algorithm related to the application corresponding to the life product and data related to the service algorithm according to the unique identifier of the application corresponding to the life product carried by the service product, and feeding back the search result to the server, so that the server
  • the omcle database reads the business algorithm and the data involved in the business algorithm.
  • the business algorithm herein includes, but is not limited to, an algorithm related to the premium, current price, bonus, and the like of the life product.
  • the business algorithms involved in each product are usually different. For example, if the algorithm corresponding to a premium product is A+BC*D, then after reading the algorithm, you need to read "A, B”. , C, D" These four parameters involve variables, specific values and other data.
  • Step S12 Cache the read service algorithm and the data involved in the service algorithm.
  • the service algorithm with a higher frequency of use is preferentially cached, and the step S12 specifically includes:
  • A1. Determine, according to the pre-stated usage frequency, whether the used frequency of the read service algorithm is greater than a preset frequency threshold. Specifically, after the service algorithm is invoked, it is determined that the service algorithm is used, and the number of uses of different service algorithms in a period is counted, and then the frequency of use of the different service algorithms is calculated according to the number of uses of the different service algorithms.
  • the preset frequency threshold can be set according to actual conditions. For example, if the traffic volume is small, the preset frequency threshold is also small, such as 15, 20, etc., when the traffic volume is large, the preset frequency threshold is also Larger, such as 60, 70, etc., is not limited here.
  • the service algorithm that is greater than the preset frequency threshold and the data involved by the service algorithm are buffered.
  • the service algorithm with a higher frequency of use is preferentially cached, and the step S12 specifically includes:
  • A2' the N service algorithms whose frequency is used in the top N and the data involved in the service algorithm, where N is determined by: obtaining the frequency of use of the service algorithm with the highest frequency of use and the highest frequency of use
  • N is determined by: obtaining the frequency of use of the service algorithm with the highest frequency of use and the highest frequency of use
  • the size of the memory occupied by the service algorithm, the size of the central processing unit (CPU), and the size of the memory used by the service algorithm and the size of the CPU are estimated to be occupied by the service algorithm with the highest frequency of use.
  • a threshold if yes, only caching the service algorithm with the highest frequency of use and the business algorithm involved Data, if not, obtaining the frequency of use of the service algorithm with a higher frequency of use and the memory size and CPU size occupied by the service algorithm with a higher frequency of use, and using the frequency of use of the service algorithm with the highest frequency of use described above And processing the same operation of the memory size and the CPU size occupied by the service algorithm with a high frequency of use.
  • Step S13 Receive a service algorithm call instruction, where the service algorithm call instruction carries a unique identifier of the service algorithm.
  • the user in order to inform the user to process the memory and other information to be occupied by the service data, so as to reduce the occurrence of the oracle database downtime, the user may be invoked according to the service algorithm received in step S13.
  • the number of instructions predict the subsequent business algorithm call instructions to be received, and then estimate the memory and other information occupied by the business data to be processed, so that users can be reminded before the business surges and the database resources are tight.
  • Bl respectively, counting the number of all service algorithm call instructions received in the first preset inter-segment and the second preset inter-segment, the first preset inter-segment and the second pre- Set the inter-segment section to be adjacent to each other.
  • the first preset interval is earlier than the second preset interval.
  • the specific length of the first preset interval and the second preset interval may be set according to actual conditions. For example, in the case of no activity, the traffic does not suddenly increase or decrease. ⁇ , the first preset interval and the second preset interval can be set to be longer, but in the case of launching activities, the traffic may increase in a short period of time.
  • the first preset interval and the second preset interval may be set to be shorter, so as to improve the accuracy of subsequent estimation values.
  • the growth rate is further estimated according to the number of all service algorithm call instructions received in the second preset interval and the determined growth rate, and the number of service algorithm call instructions received in the third preset interval is estimated. , and then estimate the amount of memory and CPU size that will be used to process business data.
  • the memory size that is to be occupied by the estimated processing service data is greater than a preset memory threshold, or an alarm is issued when the estimated size of the central processing unit to be occupied by the service data is greater than a preset central processing unit threshold. Because the CPU needs to occupy a certain amount of memory and CPU during operation, therefore, in order to ensure that the server can run normally, there is no downtime.
  • the estimated memory size to be processed in the service data is greater than the preset memory threshold, or in the estimation. Processing the business data will take up the CPU size larger than the default CPU threshold, and send reminders, such as reminding the user and increasing the server's memory.
  • the preset memory threshold and the preset CPU threshold are the memory values and CPU values required for the server to start normally and run. For example, the memory value and the CPU value may be the minimum memory value required for the server to start normally and run. , CPU value.
  • Step S14 Call the cached corresponding service algorithm and the data involved in the service algorithm according to the service algorithm call instruction.
  • the corresponding service algorithm is searched according to the unique identifier of the service algorithm carried by the service algorithm call instruction, and the searched service algorithm and the data involved by the service algorithm are invoked. Further, if First, the calling mode of the data is specified, and the data involved in the business algorithm is invoked according to the pre-specified calling mode. For example, if the data involved in the specified business algorithm is in a Structured Query Language (SQL), the business algorithm is invoked through SQL. The data involved.
  • SQL Structured Query Language
  • Step S15 Process the specified service data according to the invoked service algorithm and the data involved in the service algorithm.
  • the service algorithm and the data involved in the service algorithm are all cached in the server, the service algorithm and the corresponding data can be quickly invoked to process the specified service data, thereby greatly improving the designated service.
  • the method includes:
  • the new business algorithm and the data involved in the new business algorithm need to be read and read;
  • the original business algorithm of the omcle database adds some data, and the server also needs to read some new data added by the original business algorithm.
  • the server reads the data involved in the new business algorithm and/or business algorithm, it will be cached in the server.
  • the step S15 includes: [0061] deleting the cached service algorithm and data related to the service algorithm.
  • the service algorithm in the omcle database and the data involved in the service algorithm are read, and the service algorithm and the service algorithm involved in the cache are read.
  • Data receiving a service algorithm call instruction, the service algorithm call instruction carrying a unique identifier of the service algorithm, calling a cached corresponding service algorithm and data related to the service algorithm according to the service algorithm call instruction, according to the invoked service algorithm and
  • the data involved in the business algorithm processes the specified business data.
  • the server can quickly invoke the service algorithm corresponding to the service algorithm call instruction and the data involved in the service algorithm, thereby improving the calling speed of the service algorithm, and because the service algorithm and the data involved in the service algorithm are both It has been cached to the server, thus reducing the consumption of omcle database resources, thus avoiding the downtime of the omcle database.
  • the size of the sequence numbers of the foregoing processes does not mean the order of execution sequence, and the order of execution of each process should be determined by its function and internal logic, and should not be in accordance with the embodiments of the present invention.
  • the implementation process constitutes any limitation.
  • Embodiment 2 is a diagrammatic representation of Embodiment 1
  • FIG. 2 is a structural diagram of a service data processing apparatus according to a second embodiment of the present invention.
  • the service data processing apparatus is applicable to various mobile terminals, and the mobile terminal may include a radio access network.
  • RA N is a user equipment that communicates with one or more core networks, which may be a mobile phone (or "cellular" phone), a computer with a mobile device, etc., for example, the user device may also be portable, pocket-sized , handheld, computer built-in or in-vehicle mobile devices that exchange voice and/or data with a wireless access network.
  • the mobile device can include a smartphone, a tablet, a tutor, a personal digital assistant PDA, a sales terminal POS, or a car computer. For the convenience of description, only parts related to the embodiment of the present invention are shown.
  • the service data processing device 2 includes: a service algorithm reading unit 21, a service algorithm buffer unit 22, a business algorithm call instruction receiving unit 23, a business algorithm calling unit 24, and a service data processing unit 25. among them:
  • the service algorithm reading unit 21 is configured to: after receiving the application service startup instruction, read the service algorithm in the omcle database and the data involved in the service algorithm.
  • the business algorithm herein includes, but is not limited to, an algorithm related to the premium, current price, bonus, and the like of the life product.
  • the business algorithms involved in each product are usually different. For example, if the formula for the algorithm involved in a premium product is A+B-C*D, then after reading the algorithm, you need to read "A,”
  • the service algorithm cache unit 22 is configured to cache the read service algorithm and the data involved in the service algorithm.
  • the priority cache is used.
  • a higher frequency service algorithm where the service algorithm cache unit 22 includes:
  • the frequency comparison module is configured to determine, according to the pre-stated usage frequency, whether the used frequency of the read service algorithm is greater than a preset frequency threshold. Specifically, after the service algorithm is invoked, it is determined that the service algorithm is used, and the number of times of using different service algorithms in a period of time is counted, and then the frequency of use of the different service algorithms is calculated according to the number of uses of the different service algorithms.
  • the preset frequency threshold can be set according to actual conditions. For example, if the traffic volume is small, the preset frequency threshold is also small, such as 15, 20, etc., when the traffic volume is large, the preset frequency threshold is also Larger, such as 60, 70, etc., is not limited here.
  • the data cache module is configured to cache a service algorithm greater than a preset frequency threshold and data related to the service algorithm when a frequency of use of the read service algorithm is greater than a preset frequency threshold.
  • the service algorithm cache unit 22 includes:
  • the frequency ordering module is configured to sort the frequency of use of the read service algorithm according to the pre-stated usage frequency.
  • N service algorithm cache modules configured to cache N service algorithms with the first frequency N and data related to the service algorithm, where N is determined by: obtaining the frequency of use of the service algorithm with the highest frequency of use And the memory size and the CPU size occupied by the service algorithm with the highest frequency of use, and the memory size to be occupied by the service algorithm with the highest frequency of use according to the usage frequency and the memory size occupied by the service algorithm and the CPU size.
  • the size of the CPU determining whether the estimated memory size to be occupied by the service algorithm with the highest frequency of use is greater than a preset memory cache threshold, and/or determining the estimated CPU size to be used by the service algorithm with the highest frequency of use Whether it is greater than a preset CPU cache threshold, and if so, only the service algorithm with the highest frequency of use and the data related to the service algorithm are cached, and if not, the frequency of use of the service algorithm with a higher frequency of use and the use
  • the memory size occupied by the higher frequency service algorithm, the CPU size, and the adoption It is processed in the same manner as the above-mentioned processing of the frequency of use of the service algorithm with the highest frequency of use and the memory size and CPU size occupied by the service algorithm having a high frequency of use.
  • the service algorithm call instruction receiving unit 23 is configured to receive a service algorithm call instruction, where the service algorithm call instruction carries a unique identifier of the service algorithm.
  • the service data processing apparatus includes: [0078] a service algorithm call instruction statistics unit, configured to separately count the number of all service algorithm call instructions received in the first preset interval and the second preset interval, the first preset time
  • the segment and the second predetermined inter-segment segment are adjacent inter-segment segments, and the first predetermined inter-segment segment is earlier than the second predetermined inter-segment segment.
  • the specific length of the first preset interval and the second preset interval may be set according to actual conditions. For example, in the case of no activity, the traffic does not suddenly increase or decrease. ⁇ , the first preset interval and the second preset interval can be set to be longer, but in the case of launching activities, the traffic may increase in a short period of time.
  • the first preset interval and the second preset interval may be set to be shorter, so as to improve the accuracy of subsequent estimation values.
  • a service algorithm call instruction estimating unit configured to estimate a third preset time according to the number of all service algorithm call instructions received in the first preset interval and the second preset interval The number of service algorithm call instructions received in the segment, and estimating the memory size to be used for processing the service data according to the number of the service algorithm call instructions received in the third preset inter-frame segment, and central processing
  • the second predetermined interval is earlier than the third predetermined interval.
  • a message reminding unit configured to: in the estimated processing service data, the memory size to be occupied is greater than a preset memory threshold, or in the estimated processing service data, the central processor size to be occupied is greater than a preset central processor threshold, remind.
  • the service algorithm invoking unit 24 is configured to invoke a cached corresponding service algorithm and data related to the service algorithm according to the service algorithm call instruction.
  • the corresponding service algorithm is searched according to the unique identifier of the service algorithm carried by the service algorithm call instruction, and the searched service algorithm and the data involved by the service algorithm are invoked. Further, if the calling mode of the data is specified in advance, the data related to the business algorithm is invoked according to the pre-specified calling mode. For example, if the data involved in the specified business algorithm adopts SQL, the data involved in the business algorithm is invoked through the SQL.
  • a service data processing unit 25 configured to: according to the invoked service algorithm and data related to the service algorithm Process specified business data.
  • the service data processing apparatus includes:
  • a service algorithm updating unit configured to query whether the oracle database has data related to a new service algorithm and/or a service algorithm, and a new service algorithm and/or a service algorithm exists in the omcle database.
  • the data involved read the data involved in the new business algorithm and/or business algorithm.
  • the omcle database has a new business algorithm, in order to enable the server to invoke the new service algorithm, the new business algorithm and the data involved in the new business algorithm need to be read and read;
  • the original business algorithm of the omcle database adds some data, and the server also needs to read some new data added by the original business algorithm.
  • the server reads the data involved in the new business algorithm and/or business algorithm, it will be cached in the server.
  • the service data processing apparatus includes: [0087] a service algorithm deleting unit, configured to delete the cached service algorithm and data related to the service algorithm.
  • the server can quickly invoke the service algorithm corresponding to the service algorithm call instruction and the The data involved in the business algorithm improves the calling speed of the business algorithm, and since the business algorithm and the data involved in the business algorithm are cached in the server, the consumption of the omcle database resource is reduced, thereby avoiding the omcle database. There was a downtime.
  • the disclosed apparatus can be implemented in other ways.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division, and the actual implementation may have another division manner, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the terminal may include a user equipment that communicates with one or more core networks via a radio access network RAN, and the user equipment may It is a mobile phone (or "cellular" phone), a computer with a mobile device, etc.
  • the user device can also be a portable, pocket, handheld, computer built-in or vehicle-mounted mobile device, with or without The line access network exchanges voice and/or data.
  • the mobile device can include a smart phone, a tablet, a tutor, a personal digital assistant PDA, a sales terminal POS, or an onboard computer.
  • the terminal is a mobile phone
  • the mobile phone includes: a radio frequency (RF) circuit, a memory, an input unit, and a display unit.
  • RF radio frequency
  • Components such as sensors, audio circuits, wireless modules, processors, and power supplies.
  • the terminal 3 includes: one or more processors 31 (only one is shown), one or more input devices 32 (only one is shown), and a memory 33. among them:
  • the memory 33 is configured to store a service data processing system, the service data processing system including at least one program instruction executable by the processor;
  • the input device 32 is configured to receive an application service startup instruction and a service algorithm call instruction, where the service algorithm call instruction carries a unique identifier of the service algorithm;
  • the processor 31 is configured to execute program instructions of the service data processing system to perform the following steps
  • the service algorithm in the omcle database and the data related to the service algorithm are read, and the read service data algorithm and the data involved in the service algorithm are read. Cache into the memory 33; and,
  • the business algorithm herein includes, but is not limited to, an algorithm related to the premium, current price, bonus, and the like of the life product.
  • the business algorithms involved in each product are usually different. For example, if the formula for the algorithm involved in a premium product is A+B-C*D, then after reading the algorithm, you need to read "A,”
  • Caching the involved data into the memory 33 includes:
  • the preset frequency threshold can be set according to actual conditions. For example, if the traffic volume is small, the preset frequency threshold is also small, such as 15, 20, etc., when the traffic volume is large, the preset frequency threshold is also Larger, such as 60, 70, etc., is not limited here.
  • the service algorithm with a higher frequency of use is preferentially cached, and the processor 31 is further configured to execute the service data processing system.
  • the frequency of use of the read traffic algorithm is ordered according to a pre-stated usage frequency.
  • the processor 31 is configured to cache N service algorithms with the first frequency N and data related to the service algorithm into the memory 33, where N is determined by: obtaining the highest frequency of use The frequency of use of the service algorithm and the memory size and CPU size occupied by the service algorithm with the highest frequency of use, and the service algorithm with the highest frequency of use is estimated according to the usage frequency and the memory size and CPU size occupied by the service algorithm.
  • the size of the memory to be occupied the size of the CPU; determining whether the estimated memory size of the service algorithm with the highest frequency of use is greater than a preset memory cache threshold, and/or determining the estimated service frequency with the highest frequency of use Whether the CPU size to be occupied by the algorithm is greater than a preset CPU buffer threshold, and if so, only the service algorithm with the highest frequency of use and the data related to the service algorithm are cached, and if not, the service algorithm with a higher frequency of use is acquired.
  • Frequency of use and memory size occupied by the business algorithm with high frequency of use, CPU The size is processed in the same manner as the above-mentioned operation frequency of the most frequently used service algorithm and the memory size and CPU size used by the service algorithm having a high frequency of use.
  • the processor 31 is further configured to execute program instructions of the service data processing system, to perform the following steps: separately counting the first preset interval and the second preset interval
  • the number of all the service algorithm call instructions received by the input device 32, the first preset inter-segment segment and the second preset inter-segment segment are adjacent inter-segment segments, and the first preset The inter-segment is earlier than the second predetermined inter-segment.
  • the specific length of the first preset interval and the second preset interval may be set according to actual conditions, for example. For example, in the absence of activity, the traffic does not suddenly increase or decrease.
  • the first preset interval and the second preset interval can be set to be longer, but in the launch In the case of activity, the traffic may increase in a short period of time. Therefore, the first preset interval and the second preset interval may be set to be shorter, so as to improve the subsequent advancement.
  • the accuracy of the evaluation, and the third pre-estimation for estimating the number of all service algorithm call instructions received by the input device 32 according to the first preset interval and the second preset interval Setting the number of service algorithm call instructions received in the inter-segment, and estimating the memory size to be processed by the service data according to the estimated number of service algorithm call instructions received in the third preset inter-segment
  • the central processor size, the second preset interval is earlier than the third preset interval, and the estimated memory to be occupied by the processing service data is greater than or less than a preset memory threshold, or is estimated Processing the business data will take up a large central processor Generates an alert message at or below the preset CPU threshold.
  • determining, from the first preset interval to the second preset according to all the service algorithm call instructions received by the input device 32 in the first preset interval and the second preset interval The growth rate of the interval is further estimated according to all the service algorithm call instructions received in the second preset interval and the determined growth rate, and the service algorithm call instruction received in the third preset interval is estimated, and then estimated The amount of memory and CPU size that will be used to process business data.
  • the terminal includes:
  • an output device configured to receive the reminder information and output a reminder.
  • the memory size that is to be occupied by the estimated processing service data is greater than a preset memory threshold, or an alarm is generated when the size of the central processor to be occupied by the estimated processing service data is greater than a preset central processor threshold.
  • the output device can communicate with the processor 31 or the like via the bus of FIG.
  • the processor 31 is further configured to invoke a cached corresponding service algorithm and data related to the service algorithm according to the service algorithm call instruction received by the input device 32, according to the invoked service algorithm and the service.
  • the data involved in the algorithm processes the specified business data.
  • the corresponding service algorithm is searched according to the unique identifier of the service algorithm carried by the service algorithm call instruction, and the searched service algorithm and the data involved in the service algorithm are invoked. Further, if the calling mode of the data is specified in advance, the data involved in the business algorithm is invoked according to the pre-specified calling mode.
  • the processor 31 is further configured to query whether the omcle database has data related to a new service algorithm and/or a service algorithm, and a new service algorithm exists in the omcle database. And/or the data involved in the business algorithm, reading the data involved in the new business algorithm and/or business algorithm.
  • the new business algorithm appears in the 0 mcle database, in order to enable the server to invoke the new service algorithm, the new business algorithm and the data involved in the newly added business algorithm need to be read and read;
  • the server also needs to read some new data added by the original business algorithm.
  • the server reads the data involved in the new business algorithm and/or business algorithm, it will be cached in the server.
  • the processor is further configured to execute the service after the specified service data is processed according to the invoked service algorithm and the data involved by the service algorithm.
  • the program instructions of the data processing system perform the following steps: deleting the cached business algorithm and the data involved in the business algorithm.
  • the server can quickly invoke the service algorithm corresponding to the service algorithm call instruction and the The data involved in the business algorithm improves the calling speed of the business algorithm, and since the business algorithm and the data involved in the business algorithm are cached in the server, the consumption of the omcle database resource is reduced, thereby avoiding the omcle database. There was a downtime.
  • the processor 31 may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (Digital Signal Processor). , DSP), Application Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, etc.
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
  • the input device 32 may include a touch panel, a fingerprint sensor (for collecting fingerprint information of the user and direction information of the fingerprint), a microphone, a data receiving interface, and the like.
  • the output device may include a display (LCD, etc.), a speaker, a data transmission interface, and the like.
  • the memory 33 may include a read only memory and a random access memory, and provides instructions and data to the processor 31. A portion of the memory 33 may also include a non-volatile random access memory. For example, memory 3 3 can also store information about the type of device.
  • the terminal 3 further includes a display, which can be used to display information input by the user or information provided to the user, and the like.
  • the display may include a display panel.
  • the display panel may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
  • the display may further include a touch panel, the touch panel may cover the display panel, and when the touch panel detects a touch operation on or near the touch panel, the touch panel transmits to the processor 31 to determine the type of the touch event.
  • the processor 31 then provides a corresponding visual output on the display panel depending on the type of touch event.
  • the processor 31, the input device 32, the output device, the memory 33, and the display described in the embodiment of the present invention may implement the implementation described in the embodiment of the service data processing method provided by the embodiment of the present invention.
  • the implementation manner described in the terminal in the second embodiment can also be implemented, and details are not described herein again.
  • Embodiments of the present invention also provide a non-transitory computer readable storage medium storing instructions executable by one or more processors to perform operations, the operations including
  • the function is implemented in the form of a software functional unit and sold or used as a separate product, Stored in a computer readable storage medium.
  • a computer readable storage medium including: u disk

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Telephonic Communication Services (AREA)

Abstract

一种业务数据处理方法及终端。所述方法包括:接收应用服务启动指令后,读取oracle数据库中的业务算法及所述业务算法涉及的数据;缓存读取的所述业务算法及所述业务算法涉及的数据;接收业务算法调用指令,所述业务算法调用指令携带业务算法的唯一标识;根据所述业务算法调用指令调用缓存的对应的业务算法以及所述业务算法涉及的数据;根据调用的业务算法以及所述业务算法涉及的数据处理指定的业务数据。通过上述方法能够避免oracle数据库出现宕机的情况。

Description

说明书 发明名称:业务数据处理方法及终端 技术领域
[0001] 本发明实施例属于通信领域, 尤其涉及一种业务数据处理方法及终端。
背景技术
[0002] oracle数据库 (Oracle Database, Oracle) 是甲骨文公司的一款关系数据库管理 系统, 该系统可移植性好、 使用方便、 功能强, 适用于各类大、 中、 小、 微机 环境。
[0003] 目前, 人寿产品的保费、 现价、 红利等算法程序一般放在 omcle数据库中, 再 通过前端系统直接与 oracle数据库进行交互。 但在抢售等业务的使用场景下, 由 于抢售会在短吋间内出现业务的高峰, 因此在前端系统与 omcle数据库进行交互 吋会消耗过大的 omcle数据库资源, 从而使得 omcle数据库难以有效支持业务使用 , 且很可能直接造成宕机。
技术问题
[0004] 本发明实施例提供了一种业务数据处理方法及终端, 旨在解决现有的方法使得 omcle数据库难以有效支持业务使用, 且很可能直接造成宕机的问题。
问题的解决方案
技术解决方案
[0005] 本发明实施例第一方面, 提供了一种业务数据处理方法, 所述方法包括: [0006] 接收应用服务启动指令后, 读取 omcle数据库中的业务算法及所述业务算法涉 及的数据;
[0007] 缓存读取的所述业务算法及所述业务算法涉及的数据;
[0008] 接收业务算法调用指令, 所述业务算法调用指令携带业务算法的唯一标识; [0009] 根据所述业务算法调用指令调用缓存的对应的业务算法以及所述业务算法涉及 的数据;
[0010] 根据调用的业务算法以及所述业务算法涉及的数据处理指定的业务数据。
[0011] 本发明实施例的第二方面, 一种业务数据处理装置, 所述装置包括: [0012] 业务算法读取单元, 用于接收应用服务启动指令后, 读取 omcle数据库中的业 务算法及所述业务算法涉及的数据;
[0013] 业务算法缓存单元, 用于缓存读取的所述业务算法及所述业务算法涉及的数据
[0014] 业务算法调用指令接收单元, 用于接收业务算法调用指令, 所述业务算法调用 指令携带业务算法的唯一标识;
[0015] 业务算法调用单元, 用于根据所述业务算法调用指令调用缓存的对应的业务算 法以及所述业务算法涉及的数据;
[0016] 业务数据处理单元, 用于根据调用的业务算法以及所述业务算法涉及的数据处 理指定的业务数据。
[0017] 本发明实施例的第三方面, 提供一种终端, 所述终端包括:
[0018] 处理器、 输入设备、 存储器;
[0019] 所述处理器, 用于在所述输入设备接收应用服务启动指令后, 读取 omcle数据 库中的业务算法及所述业务算法涉及的数据,
[0020] 存储器, 用于缓存所述处理器读取的所述业务算法及所述业务算法涉及的数据
[0021] 所述输入设备还用于接收业务算法调用指令, 所述业务算法调用指令携带业务 算法的唯一标识;
[0022] 所述处理器还用于根据所述输入设备接收的所述业务算法调用指令调用缓存的 对应的业务算法以及所述业务算法涉及的数据, 根据调用的业务算法以及所述 业务算法涉及的数据处理指定的业务数据。
[0023] 本发明实施例的第四方面, 提供一种非暂态计算机可读存储介质, 所述非暂态 计算机可读存储介质存储可由一个或多个处理器执行的指令以执行操作, 所述 操作包括:
[0024] 接收应用服务启动指令后, 读取 omcle数据库中的业务算法及所述业务算法涉 及的数据;
[0025] 缓存读取的所述业务算法及所述业务算法涉及的数据;
[0026] 接收业务算法调用指令, 所述业务算法调用指令携带业务算法的唯一标识; [0027] 根据所述业务算法调用指令调用缓存的对应的业务算法以及所述业务算法涉及 的数据;
[0028] 根据调用的业务算法以及所述业务算法涉及的数据处理指定的业务数据。
发明的有益效果
有益效果
[0029] 在本发明实施例中, 由于将 omcle数据库中的业务算法及所述业务算法涉及的 数据缓存至服务器中, 因此, 服务器能够快速调用与业务算法调用指令对应的 业务算法及所述业务算法涉及的数据, 提高了业务算法的调用速度, 并且, 由 于业务算法以及所述业务算法涉及的数据都已缓存至服务器中, 因此, 减少了 对 omcle数据库资源的消耗, 从而避免了 omcle数据库出现宕机的情况。
对附图的简要说明
附图说明
[0030] 图 1是本发明第一实施例提供的一种业务数据处理方法的流程图;
[0031] 图 2是本发明第二实施例提供的一种业务数据处理的结构图;
[0032] 图 3是本发明第三实施例提供的一种终端的结构图。
本发明的实施方式
[0033] 为了使本发明的目的、 技术方案及优点更加清楚明白, 以下结合附图及实施例 , 对本发明进行进一步详细说明。 应当理解, 此处所描述的具体实施例仅仅用 以解释本发明, 并不用于限定本发明。
[0034] 本发明实施例中, 接收应用服务启动指令后, 读取 omcle数据库中的业务算法 及所述业务算法涉及的数据, 缓存读取的所述业务算法及所述业务算法涉及的 数据, 接收业务算法调用指令, 所述业务算法调用指令携带业务算法的唯一标 识, 根据所述业务算法调用指令调用缓存的对应的业务算法以及所述业务算法 涉及的数据, 根据调用的业务算法以及所述业务算法涉及的数据处理指定的业 务数据。
[0035] 为了说明本发明所述的技术方案, 下面通过具体实施例来进行说明。 [0036] 实施例一:
[0037] 图 1示出了本发明第一实施例提供的一种业务数据处理方法的流程图, 详述如 下:
[0038] 步骤 Sl l, 接收应用服务启动指令后, 读取 omcle数据库中的业务算法及所述业 务算法涉及的数据。
[0039] 其中, 应用服务是指通过服务器实现的各种应用对应的服务, 例如, 当该应用 为人寿产品的应用吋, 该应用服务指的是人寿产品这一应用对应的服务, 当用 户点击人寿产品对应的应用, 发出应用服务启动指令, 人寿产品对应的应用接 收该应用服务启动指令, 服务器发出业务算法读取指令, 该业务算法读取指令 携带人寿产品对应的应用的唯一标识, omcle数据库接收业务算法读取指令, 根 据其携带的人寿产品对应的应用的唯一标识査找与人寿产品对应的应用有关的 业务算法及所述业务算法涉及的数据, 并反馈査找结果至服务器, 以使服务器 从 omcle数据库读取业务算法及所述业务算法涉及的数据。
[0040] 其中, 这里的业务算法包括但不限于人寿产品的保费、 现价、 红利等产品涉及 到的算法。 每种产品涉及的业务算法通常都不同, 例如, 假设某个保费产品涉 及的算法对应的公式为 A+B-C*D, 则在读取该某个算法吋, 需要同吋读取 "A、 B、 C、 D"这 4个参数涉及的变量、 具体值等数据。
[0041] 步骤 S12, 缓存读取的所述业务算法及所述业务算法涉及的数据。
[0042] 可选地, 为了保证缓存业务算法后服务器仍具有足够的内存, 则优先缓存使用 频率较高的业务算法, 此吋, 所述步骤 S12具体包括:
[0043] A1、 根据预先统计的使用频率判断读取的业务算法的使用频率是否大于预设频 率阈值。 具体地, 在业务算法被调用吋, 判定该业务算法被使用, 统计一段吋 间内不同业务算法的使用次数, 进而根据该不同业务算法的使用次数计算该不 同业务算法的使用频率。 其中, 预设频率阈值可根据实际情况进行设定, 例如 , 在业务量较少吋, 预设频率阈值也较小, 如为 15、 20等, 在业务量较多吋, 预设频率阈值也较大, 如 60, 70等, 此处不作限定。
[0044] A2、 在读取的业务算法的使用频率大于预设频率阈值吋, 缓存大于预设频率阈 值的业务算法及所述业务算法涉及的数据。 [0045] 或者, 可选地, 为了保证缓存业务算法后服务器仍具有足够的内存, 则优先缓 存使用频率较高的业务算法, 此吋, 所述步骤 S12具体包括:
[0046] ΑΓ、 根据预先统计的使用频率对读取的业务算法的使用频率进行排序;
[0047] A2'、 缓存使用频率在前 N的 N个业务算法及所述业务算法涉及的数据, 其中, N通过以下方式确定: 获取使用频率最高的业务算法的使用频率以及所述使用频 率最高的业务算法占用的内存大小、 中央处理器 (Central Processing Unit, CPU ) 大小, 根据所述使用频率和所述业务算法占用的内存大小、 CPU大小预估所述 使用频率最高的业务算法将要占用的内存大小、 CPU大小 (例如, 假设业务算法 X的使用频率为 5, 单词调用 X占用的内存为 200, 则同吋 5次调用该 X占用的内存 为 5*200=1000) ; 判断预估的所述使用频率最高的业务算法将要占用的内存大 小是否大于预设的内存缓存阈值, 和 /或, 判断预估的所述使用频率最高的业务 算法将要占用的 CPU大小是否大于预设的 CPU缓存阈值, 若是, 则仅缓存所述使 用频率最高的业务算法及所述业务算法涉及的数据, 若否, 则获取使用频率较 高的业务算法的使用频率以及所述使用频率较高的业务算法占用的内存大小、 C PU大小, 并采用与上述对使用频率最高的业务算法的使用频率以及所述使用频 率较高的业务算法占用的内存大小、 CPU大小的处理相同的操作进行处理。
[0048] 步骤 S13, 接收业务算法调用指令, 所述业务算法调用指令携带业务算法的唯 一标识。
[0049] 具体地, 当用户需要通过应用服务的某个功能处理指定的业务数据吋, 启动该 应用服务的某个功能后, 将发出该某个功能对应的业务算法调用指令。
[0050] 在其他实施例中, 可选地, 为了告知用户后续处理业务数据将要占用的内存等 信息, 以降低 oracle数据库出现宕机的情况, 可根据在步骤 S13中已接收到的业 务算法调用指令的个数, 预估后续将要接收到的业务算法调用指令, 进而预估 将要处理的业务数据所占用的内存等信息, 这样, 可以在业务剧增、 数据库资 源出现紧张前, 及吋提醒用户对数据库资源进行紧急处理, 降低数据库的宕机 风险。 具体地, 此吋包括:
[0051] Bl、 分别统计第一预设吋间段以及第二预设吋间段内接收到的所有业务算法调 用指令的个数, 所述第一预设吋间段与所述第二预设吋间段为相邻的吋间段, 且所述第一预设吋间段早于所述第二预设吋间段。 其中, 第一预设吋间段、 第 二预设吋间段的具体吋长可根据实际情况进行设定, 例如, 在无活动的情况下 , 业务量不会突然增大或减小, 此吋, 可设置第一预设吋间段、 第二预设吋间 段为较长的吋长, 但在推出活动的情况下, 业务量可能在短吋间内出现增大的 情况, 此吋, 可设置第一预设吋间段、 第二预设吋间段为较短的吋长, 以便提 高后续预估值的准确率。
[0052] B2、 根据统计第一预设吋间段以及第二预设吋间段内接收到的所有业务算法调 用指令的个数预估第三预设吋间段内接收到的业务算法调用指令的个数, 并根 据所述预估第三预设吋间段内接收到的业务算法调用指令的个数预估处理业务 数据将要占用的内存大小、 中央处理器大小, 所述第二预设吋间段早于所述第 三预设吋间段。 具体地, 根据统计的第一预设吋间段以及第二预设吋间段内接 收到的所有业务算法调用指令的个数确定从第一预设吋间段到第二预设吋间段 的增长率, 再根据第二预设吋间段内接收到的所有业务算法调用指令的个数以 及确定的增长率预估第三预设吋间段内接收到的业务算法调用指令的个数, 进 而预估处理业务数据将要占用的内存大小、 中央处理器大小。
[0053] B3、 在预估处理业务数据将要占用的内存大小大于预设内存阈值, 或在预估处 理业务数据将要占用的中央处理器大小大于预设中央处理器阈值吋, 发出提醒 。 由于服务器运行过程中需要占用一定的内存, CPU, 因此, 为了保证服务器能 够正常运行, 不出现宕机的情况, 在预估处理业务数据将要占用的内存大小大 于预设内存阈值, 或在预估处理业务数据将要占用的中央处理器大小大于预设 中央处理器阈值吋, 发出提醒, 如提醒用户及吋增加服务器的内存等。 其中, 预设内存阈值和预设中央处理器阈值为服务器正常启动、 运行所需的内存值、 C PU值, 例如, 该内存值、 CPU值可为服务器正常启动、 运行所需的最小内存值 、 CPU值。
[0054] 步骤 S14, 根据所述业务算法调用指令调用缓存的对应的业务算法以及所述业 务算法涉及的数据。
[0055] 具体地, 根据业务算法调用指令携带的业务算法的唯一标识査找对应的业务算 法, 并调用査找到的业务算法以及所述业务算法涉及的数据。 进一步地, 若预 先指定数据的调用方式, 则根据预先指定的调用方式调用业务算法涉及的数据 , 例如, 假设指定业务算法涉及的数据采用结构化査询语言 (Structured Query Language, SQL) , 则通过 SQL调用业务算法涉及的数据。
[0056] 步骤 S15, 根据调用的业务算法以及所述业务算法涉及的数据处理指定的业务 数据。
[0057] 由于业务算法以及所述业务算法涉及的数据都已缓存至服务器中, 因此, 能够 快速调用所述业务算法及对应的数据对指定的业务数据进行处理, 从而极大提 高了指定的业务数据的处理速度, 并且, 由于业务算法以及所述业务算法涉及 的数据都已缓存至服务器中, 因此, 减少了对 omcle数据库资源的消耗, 从而避 免了 omcle数据库出现宕机的情况。
[0058] 可选地, 在所述步骤 S15之前或之后 (当然, 若是多线程也可以在执行步骤 S15 吋) , 包括:
[0059] 定吋询问所述 omcle数据库是否存在新增的业务算法和 /或业务算法涉及的数据 , 并在所述 omcle数据库存在新增的业务算法和 /或业务算法涉及的数据吋, 读取 新增的业务算法和 /或业务算法涉及的数据。 当 omcle数据库出现新增的业务算法 吋, 为了使得服务器能够及吋调用该新增的业务算法, 则需要及吋读取新增的 业务算法及该新增的业务算法涉及的数据; 另外, 当 omcle数据库原有的业务算 法新增了某些数据, 则服务器同样需要读取该原有的业务算法新增的某些数据 。 当然, 当服务器读取新增的业务算法和 /或业务算法涉及的数据后, 将缓存至 所述服务器中。
[0060] 可选地, 为了避免服务器的内存一直被占用, 则在所述步骤 S15之后, 包括: [0061] 刪除缓存的业务算法及所述业务算法涉及的数据。
[0062] 本发明第一实施例中, 接收应用服务启动指令后, 读取 omcle数据库中的业务 算法及所述业务算法涉及的数据, 缓存读取的所述业务算法及所述业务算法涉 及的数据, 接收业务算法调用指令, 所述业务算法调用指令携带业务算法的唯 一标识, 根据所述业务算法调用指令调用缓存的对应的业务算法以及所述业务 算法涉及的数据, 根据调用的业务算法以及所述业务算法涉及的数据处理指定 的业务数据。 由于将 omcle数据库中的业务算法及所述业务算法涉及的数据缓存 至服务器中, 因此, 服务器能够快速调用与业务算法调用指令对应的业务算法 及所述业务算法涉及的数据, 提高了业务算法的调用速度, 并且, 由于业务算 法以及所述业务算法涉及的数据都已缓存至服务器中, 因此, 减少了对 omcle数 据库资源的消耗, 从而避免了 omcle数据库出现宕机的情况。
[0063] 应理解, 在本发明实施例中, 上述各过程的序号的大小并不意味着执行顺序的 先后, 各过程的执行顺序应以其功能和内在逻辑确定, 而不应对本发明实施例 的实施过程构成任何限定。
[0064] 实施例二:
[0065] 图 2示出了本发明第二实施例提供的一种业务数据处理装置的结构图, 该业务 数据处理装置可应用于各种移动终端中, 该移动终端可以包括经无线接入网 RA N与一个或多个核心网进行通信的用户设备, 该用户设备可以是移动电话 (或称 为"蜂窝"电话) 、 具有移动设备的计算机等, 例如, 用户设备还可以是便携式、 袖珍式、 手持式、 计算机内置的或者车载的移动装置, 它们与无线接入网交换 语音和 /或数据。 又例如, 该移动设备可以包括智能手机、 平板电脑、 家教机、 个人数字助理 PDA、 销售终端 POS或车载电脑等。 为了便于说明, 仅示出了与本 发明实施例相关的部分。
[0066] 该业务数据处理装置 2包括: 业务算法读取单元 21、 业务算法缓存单元 22、 业 务算法调用指令接收单元 23、 业务算法调用单元 24、 业务数据处理单元 25。 其 中:
[0067] 业务算法读取单元 21, 用于接收应用服务启动指令后, 读取 omcle数据库中的 业务算法及所述业务算法涉及的数据。
[0068] 其中, 这里的业务算法包括但不限于人寿产品的保费、 现价、 红利等产品涉及 到的算法。 每种产品涉及的业务算法通常都不同, 例如, 假设某个保费产品涉 及的算法对应的公式为 A+B-C*D, 则在读取该某个算法吋, 需要同吋读取 "A、
B、 C、 D"这 4个参数涉及的变量、 具体值等数据。
[0069] 业务算法缓存单元 22, 用于缓存读取的所述业务算法及所述业务算法涉及的数 据。
[0070] 可选地, 为了保证缓存业务算法后服务器仍具有足够的内存, 则优先缓存使用 频率较高的业务算法, 此吋, 所述业务算法缓存单元 22包括:
[0071] 使用频率比较模块, 用于根据预先统计的使用频率判断读取的业务算法的使用 频率是否大于预设频率阈值。 具体地, 在业务算法被调用吋, 判定该业务算法 被使用, 统计一段吋间内不同业务算法的使用次数, 进而根据该不同业务算法 的使用次数计算该不同业务算法的使用频率。 其中, 预设频率阈值可根据实际 情况进行设定, 例如, 在业务量较少吋, 预设频率阈值也较小, 如为 15、 20等 , 在业务量较多吋, 预设频率阈值也较大, 如 60, 70等, 此处不作限定。
[0072] 数据缓存模块, 用于在读取的业务算法的使用频率大于预设频率阈值吋, 缓存 大于预设频率阈值的业务算法及所述业务算法涉及的数据。
[0073] 可选地, 为了保证缓存业务算法后服务器仍具有足够的内存, 则优先缓存使用 频率较高的业务算法, 此吋, 所述业务算法缓存单元 22包括:
[0074] 使用频率排序模块, 用于根据预先统计的使用频率对读取的业务算法的使用频 率进行排序。
[0075] N个业务算法缓存模块, 用于缓存使用频率在前 N的 N个业务算法及所述业务算 法涉及的数据, 其中, N通过以下方式确定: 获取使用频率最高的业务算法的使 用频率以及所述使用频率最高的业务算法占用的内存大小、 CPU大小, 根据所述 使用频率和所述业务算法占用的内存大小、 CPU大小预估所述使用频率最高的业 务算法将要占用的内存大小、 CPU大小; 判断预估的所述使用频率最高的业务算 法将要占用的内存大小是否大于预设的内存缓存阈值, 和 /或, 判断预估的所述 使用频率最高的业务算法将要占用的 CPU大小是否大于预设的 CPU缓存阈值, 若 是, 则仅缓存所述使用频率最高的业务算法及所述业务算法涉及的数据, 若否 , 则获取使用频率较高的业务算法的使用频率以及所述使用频率较高的业务算 法占用的内存大小、 CPU大小, 并采用与上述对使用频率最高的业务算法的使用 频率以及所述使用频率较高的业务算法占用的内存大小、 CPU大小的处理相同的 操作进行处理。
[0076] 业务算法调用指令接收单元 23, 用于接收业务算法调用指令, 所述业务算法调 用指令携带业务算法的唯一标识。
[0077] 可选地, 所述业务数据处理装置包括: [0078] 业务算法调用指令统计单元, 用于分别统计第一预设吋间段以及第二预设吋间 段内接收到的所有业务算法调用指令的个数, 所述第一预设吋间段与所述第二 预设吋间段为相邻的吋间段, 且所述第一预设吋间段早于所述第二预设吋间段 。 其中, 第一预设吋间段、 第二预设吋间段的具体吋长可根据实际情况进行设 定, 例如, 在无活动的情况下, 业务量不会突然增大或减小, 此吋, 可设置第 一预设吋间段、 第二预设吋间段为较长的吋长, 但在推出活动的情况下, 业务 量可能在短吋间内出现增大的情况, 此吋, 可设置第一预设吋间段、 第二预设 吋间段为较短的吋长, 以便提高后续预估值的准确率。
[0079] 业务算法调用指令预估单元, 用于根据统计第一预设吋间段以及第二预设吋间 段内接收到的所有业务算法调用指令的个数预估第三预设吋间段内接收到的业 务算法调用指令的个数, 并根据所述预估第三预设吋间段内接收到的业务算法 调用指令的个数预估处理业务数据将要占用的内存大小、 中央处理器大小, 所 述第二预设吋间段早于所述第三预设吋间段。 具体地, 根据统计的第一预设吋 间段以及第二预设吋间段内接收到的所有业务算法调用指令确定从第一预设吋 间段到第二预设吋间段的增长率, 再根据第二预设吋间段内接收到的所有业务 算法调用指令以及确定的增长率预估第三预设吋间段内接收到的业务算法调用 指令, 进而预估处理业务数据将要占用的内存大小、 中央处理器大小。
[0080] 消息提醒单元, 用于在预估处理业务数据将要占用的内存大小大于预设内存阈 值, 或在预估处理业务数据将要占用的中央处理器大小大于预设中央处理器阈 值吋, 发出提醒。
[0081] 业务算法调用单元 24, 用于根据所述业务算法调用指令调用缓存的对应的业务 算法以及所述业务算法涉及的数据。
[0082] 具体地, 根据业务算法调用指令携带的业务算法的唯一标识査找对应的业务算 法, 并调用査找到的业务算法以及所述业务算法涉及的数据。 进一步地, 若预 先指定数据的调用方式, 则根据预先指定的调用方式调用业务算法涉及的数据 , 例如, 假设指定业务算法涉及的数据采用 SQL, 则通过 SQL调用业务算法涉及 的数据。
[0083] 业务数据处理单元 25, 用于根据调用的业务算法以及所述业务算法涉及的数据 处理指定的业务数据。
[0084] 可选地, 所述业务数据处理装置包括:
[0085] 业务算法更新单元, 用于定吋询问所述 oracle数据库是否存在新增的业务算法 和 /或业务算法涉及的数据, 并在所述 omcle数据库存在新增的业务算法和 /或业 务算法涉及的数据吋, 读取新增的业务算法和 /或业务算法涉及的数据。 当 omcle 数据库出现新增的业务算法吋, 为了使得服务器能够及吋调用该新增的业务算 法, 则需要及吋读取新增的业务算法及该新增的业务算法涉及的数据; 另外, 当 omcle数据库原有的业务算法新增了某些数据, 则服务器同样需要读取该原有 的业务算法新增的某些数据。 当然, 当服务器读取新增的业务算法和 /或业务算 法涉及的数据后, 将缓存至所述服务器中。
[0086] 可选地, 为了避免服务器的内存一直被占用, 所述业务数据处理装置包括: [0087] 业务算法刪除单元, 用于刪除缓存的业务算法及所述业务算法涉及的数据。
[0088] 本发明第二实施例中, 由于将 omcle数据库中的业务算法及所述业务算法涉及 的数据缓存至服务器中, 因此, 服务器能够快速调用与业务算法调用指令对应 的业务算法及所述业务算法涉及的数据, 提高了业务算法的调用速度, 并且, 由于业务算法以及所述业务算法涉及的数据都已缓存至服务器中, 因此, 减少 了对 omcle数据库资源的消耗, 从而避免了 omcle数据库出现宕机的情况。
[0089] 应该理解到, 所揭露的装置可以通过其它的方式实现。 例如, 以上所描述的装 置实施例仅仅是示意性的, 例如, 所述单元的划分, 仅仅为一种逻辑功能划分 , 实际实现吋可以有另外的划分方式, 例如多个单元或组件可以结合或者可以 集成到另一个系统, 或一些特征可以忽略, 或不执行。 另一点, 所显示或讨论 的相互之间的耦合或直接耦合或通信连接可以是通过一些接口, 装置或单元的 间接耦合或通信连接, 可以是电性, 机械或其它的形式。
[0090] 实施例三:
[0091] 图 3示出了本发明第三实施例提供的一种终端的结构图, 该终端可以包括经无 线接入网 RAN与一个或多个核心网进行通信的用户设备, 该用户设备可以是移 动电话 (或称为"蜂窝"电话) 、 具有移动设备的计算机等, 例如, 用户设备还可 以是便携式、 袖珍式、 手持式、 计算机内置的或者车载的移动装置, 它们与无 线接入网交换语音和 /或数据。 又例如, 该移动设备可以包括智能手机、 平板电 脑、 家教机、 个人数字助理 PDA、 销售终端 POS或车载电脑等。 为了便于说明, 仅示出了与本发明实施例相关的部分。 需要指出的是, 当该终端为手机吋, 该 手机包括: 射频 (Radio Frequency, RF) 电路、 存储器、 输入单元、 显示单元
、 传感器、 音频电路、 无线模块、 处理器、 以及电源等部件。
[0092] 该终端 3包括: 一个或多个处理器 31 (图中仅示出一个) 、 一个或多个输入设 备 32 (图中仅示出一个) 以及存储器 33。 其中:
[0093] 所述存储器 33用于存储一种业务数据处理系统, 所述业务数据处理系统包括至 少一个可被处理器所执行的程序指令;
[0094] 所述输入设备 32用于接收应用服务启动指令及业务算法调用指令, 所述业务算 法调用指令携带业务算法的唯一标识;
[0095] 所述处理器 31, 用于执行所述业务数据处理系统的程序指令, 以执行以下步骤
[0096] 在所述输入设备 32接收应用服务启动指令后, 读取 omcle数据库中的业务算法 及所述业务算法涉及的数据, 将读取到的所述业务算法及所述业务算法涉及的 数据缓存到所述存储器 33中; 以及,
[0097] 根据所述输入设备 32接收的所述业务算法调用指令调用缓存的对应的业务算法 以及所述业务算法涉及的数据, 根据调用的业务算法以及所述业务算法涉及的 数据处理指定的业务数据。
[0098] 其中, 这里的业务算法包括但不限于人寿产品的保费、 现价、 红利等产品涉及 到的算法。 每种产品涉及的业务算法通常都不同, 例如, 假设某个保费产品涉 及的算法对应的公式为 A+B-C*D, 则在读取该某个算法吋, 需要同吋读取 "A、
B、 C、 D"这 4个参数涉及的变量、 具体值等数据。
[0099] 可选地, 为了保证缓存业务算法后服务器仍具有足够的内存, 则优先缓存使用 频率较高的业务算法, 此吋, 所述将读取到的所述业务算法及所述业务算法涉 及的数据缓存到所述存储器 33中包括:
[0100] 根据预先统计的使用频率判断读取的业务算法的使用频率是否大于预设频率阈 值。 [0101] 在读取的业务算法的使用频率大于预设频率阈值吋, 将大于预设频率阈值的业 务算法及所述业务算法涉及的数据缓存到所述存储器 33中。
[0102] 具体地, 在业务算法被调用吋, 判定该业务算法被使用, 统计一段吋间内不同 业务算法的使用次数, 进而根据该不同业务算法的使用次数计算该不同业务算 法的使用频率。 其中, 预设频率阈值可根据实际情况进行设定, 例如, 在业务 量较少吋, 预设频率阈值也较小, 如为 15、 20等, 在业务量较多吋, 预设频率 阈值也较大, 如 60, 70等, 此处不作限定。
[0103] 可选地, 为了保证缓存业务算法后服务器仍具有足够的内存, 则优先缓存使用 频率较高的业务算法, 此吋, 所述处理器 31还用于执行所述业务数据处理系统 的程序指令, 以执行以下步骤:
[0104] 根据预先统计的使用频率对读取的业务算法的使用频率进行排序。
[0105] 具体地, 所述处理器 31用于将使用频率在前 N的 N个业务算法及所述业务算法 涉及的数据缓存至存储器 33中, 其中, N通过以下方式确定: 获取使用频率最高 的业务算法的使用频率以及所述使用频率最高的业务算法占用的内存大小、 CPU 大小, 根据所述使用频率和所述业务算法占用的内存大小、 CPU大小预估所述使 用频率最高的业务算法将要占用的内存大小、 CPU大小; 判断预估的所述使用频 率最高的业务算法将要占用的内存大小是否大于预设的内存缓存阈值, 和 /或, 判断预估的所述使用频率最高的业务算法将要占用的 CPU大小是否大于预设的 C PU缓存阈值, 若是, 则仅缓存所述使用频率最高的业务算法及所述业务算法涉 及的数据, 若否, 则获取使用频率较高的业务算法的使用频率以及所述使用频 率较高的业务算法占用的内存大小、 CPU大小, 并采用与上述对使用频率最高的 业务算法的使用频率以及所述使用频率较高的业务算法占用的内存大小、 CPU大 小的处理相同的操作进行处理。
[0106] 可选地, 所述处理器 31还用于执行所述业务数据处理系统的程序指令, 以执行 以下步骤: 分别统计第一预设吋间段以及第二预设吋间段内所述输入设备 32接 收到的所有业务算法调用指令的个数, 所述第一预设吋间段与所述第二预设吋 间段为相邻的吋间段, 且所述第一预设吋间段早于所述第二预设吋间段。 其中 , 第一预设吋间段、 第二预设吋间段的具体吋长可根据实际情况进行设定, 例 如, 在无活动的情况下, 业务量不会突然增大或减小, 此吋, 可设置第一预设 吋间段、 第二预设吋间段为较长的吋长, 但在推出活动的情况下, 业务量可能 在短吋间内出现增大的情况, 此吋, 可设置第一预设吋间段、 第二预设吋间段 为较短的吋长, 以便提高后续预估值的准确率, 以及, 用于根据统计的第一预 设吋间段以及第二预设吋间段内所述输入设备 32接收到的所有业务算法调用指 令的个数预估第三预设吋间段内接收到的业务算法调用指令的个数, 并根据所 述预估第三预设吋间段内接收到的业务算法调用指令的个数预估处理业务数据 将要占用的内存大小、 中央处理器大小, 所述第二预设吋间段早于所述第三预 设吋间段, 在预估处理业务数据将要占用的内存大于或小于预设内存阈值吋, 或在预估处理业务数据将要占用的中央处理器大于或小于预设中央处理器阈值 吋, 生成提醒信息。 具体地, 根据统计的第一预设吋间段以及第二预设吋间段 内所述输入设备 32接收到的所有业务算法调用指令确定从第一预设吋间段到第 二预设吋间段的增长率, 再根据第二预设吋间段内接收到的所有业务算法调用 指令以及确定的增长率预估第三预设吋间段内接收到的业务算法调用指令, 进 而预估处理业务数据将要占用的内存大小、 中央处理器大小。
[0107] 对应地, 所述终端包括:
[0108] 输出设备, 用于接收所述提醒信息并输出提醒。 具体地, 在预估处理业务数据 将要占用的内存大小大于预设内存阈值, 或在预估处理业务数据将要占用的中 央处理器大小大于预设中央处理器阈值吋, 发出提醒。 该输出设备可通过图 3的 总线与处理器 31等通信。
[0109] 所述处理器 31还用于根据所述输入设备 32接收的所述业务算法调用指令调用缓 存的对应的业务算法以及所述业务算法涉及的数据, 根据调用的业务算法以及 所述业务算法涉及的数据处理指定的业务数据。
[0110] 具体地, 根据业务算法调用指令携带的业务算法的唯一标识査找对应的业务算 法, 并调用査找到的业务算法以及所述业务算法涉及的数据。 进一步地, 若预 先指定数据的调用方式, 则根据预先指定的调用方式调用业务算法涉及的数据
, 例如, 假设指定业务算法涉及的数据采用 SQL, 则通过 SQL调用业务算法涉及 的数据。 [0111] 可选地, 所述处理器 31还用于定吋询问所述 omcle数据库是否存在新增的业务 算法和 /或业务算法涉及的数据, 并在所述 omcle数据库存在新增的业务算法和 / 或业务算法涉及的数据吋, 读取新增的业务算法和 /或业务算法涉及的数据。 当0 mcle数据库出现新增的业务算法吋, 为了使得服务器能够及吋调用该新增的业务 算法, 则需要及吋读取新增的业务算法及该新增的业务算法涉及的数据; 另外 , 当 omcle数据库原有的业务算法新增了某些数据, 则服务器同样需要读取该原 有的业务算法新增的某些数据。 当然, 当服务器读取新增的业务算法和 /或业务 算法涉及的数据后, 将缓存至所述服务器中。
[0112] 可选地, 为了避免服务器的内存一直被占用, 在所述根据调用的业务算法以及 所述业务算法涉及的数据处理指定的业务数据之后, 所述处理器还用于执行所 述业务数据处理系统的程序指令, 以执行以下步骤: 刪除缓存的业务算法及所 述业务算法涉及的数据。
[0113] 本发明第三实施例中, 由于将 omcle数据库中的业务算法及所述业务算法涉及 的数据缓存至服务器中, 因此, 服务器能够快速调用与业务算法调用指令对应 的业务算法及所述业务算法涉及的数据, 提高了业务算法的调用速度, 并且, 由于业务算法以及所述业务算法涉及的数据都已缓存至服务器中, 因此, 减少 了对 omcle数据库资源的消耗, 从而避免了 omcle数据库出现宕机的情况。
[0114] 应当理解, 在本发明实施例中, 所述处理器 31可以是中央处理单元 (Central Processing Unit, CPU) , 该处理器还可以是其他通用处理器、 数字信号处理器 (Digital Signal Processor, DSP)、 专用集成电路 (Application Specific Integrated Circuit, ASIC)、 现成可编程门阵列(Field-Programmable Gate Array, FPGA)或 者其他可编程逻辑器件、 分立门或者晶体管逻辑器件、 分立硬件组件等。 通用 处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。
[0115] 输入设备 32可以包括触控板、 指纹采传感器 (用于采集用户的指纹信息和指纹 的方向信息) 、 麦克风、 数据接收接口等。 输出设备可以包括显示器 (LCD等 ) 、 扬声器、 数据发送接口等。
[0116] 该存储器 33可以包括只读存储器和随机存取存储器, 并向处理器 31提供指令和 数据。 存储器 33的一部分还可以包括非易失性随机存取存储器。 例如, 存储器 3 3还可以存储设备类型的信息。
[0117] 可选地, 该终端 3还包括显示器, 该显示器可用于显示由用户输入的信息或提 供给用户的信息等。 显示器可包括显示面板, 可选的, 可以采用液晶显示器 (Li quid Crystal Display , LCD) 、 有机发光二极管 (Organic Light-Emitting Diode, OLED)等形式来配置显示面板。 进一步的, 所述显示器还可包括触控面板, 所 述触控面板可覆盖显示面板, 当触控面板检测到在其上或附近的触摸操作后, 传送给处理器 31以确定触摸事件的类型, 随后处理器 31根据触摸事件的类型在 显示面板上提供相应的视觉输出。
[0118] 具体实现中, 本发明实施例中所描述的处理器 31、 输入设备 32、 输出设备、 存 储器 33和显示器可执行本发明实施例提供的业务数据处理方法的实施例中所描 述的实现方式, 也可执行实施例二所述终端中所描述的实现方式, 在此不再赘 述。
[0119] 本发明实施例还提供了一种非暂态计算机可读存储介质, 所述非暂态计算机可 读存储介质存储可由一个或多个处理器执行的指令以执行操作, 所述操作包括
[0120] 接收应用服务启动指令后, 读取 oracle数据库中的业务算法及所述业务算法涉 及的数据;
[0121] 缓存读取的所述业务算法及所述业务算法涉及的数据;
[0122] 接收业务算法调用指令, 所述业务算法调用指令携带业务算法的唯一标识; [0123] 根据所述业务算法调用指令调用缓存的对应的业务算法以及所述业务算法涉及 的数据;
[0124] 根据调用的业务算法以及所述业务算法涉及的数据处理指定的业务数据。
[0125] 本领域普通技术人员可以意识到, 结合本文中所公幵的实施例描述的各示例的 单元及算法步骤, 能够以电子硬件、 或者计算机软件和电子硬件的结合来实现 。 这些功能究竟以硬件还是软件方式来执行, 取决于技术方案的特定应用和设 计约束条件。 专业技术人员可以对每个特定的应用来使用不同方法来实现所描 述的功能, 但是这种实现不应认为超出本发明的范围。
[0126] 所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用吋, 可 以存储在一个计算机可读取存储介质中。 基于这样的理解, 本发明的技术方案 本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产 品的形式体现出来, 该计算机软件产品存储在一个存储介质中, 包括若干指令 用以使得一台计算机设备 (可以是个人计算机, 服务器, 或者网络设备等) 执 行本发明各个实施例所述方法的全部或部分步骤。 而前述的存储介质包括: u盘
、 移动硬盘、 只读存储器 (ROM, Read-Only Memory) 、 随机存取存储器 (RAM , Random Access Memory)、 磁碟或者光盘等各种可以存储程序代码的介质。 以上所述, 仅为本发明的具体实施方式, 但本发明的保护范围并不局限于此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可轻易想到变化 或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明的保护范围应所述 以权利要求的保护范围为准。

Claims

权利要求书
[权利要求 1] 一种业务数据处理方法, 其特征在于, 所述方法包括:
接收应用服务启动指令后, 读取 omcle数据库中的业务算法及所述业 务算法涉及的数据;
缓存读取的所述业务算法及所述业务算法涉及的数据;
接收业务算法调用指令, 所述业务算法调用指令携带业务算法的唯一 标识;
根据所述业务算法调用指令调用缓存的对应的业务算法以及所述业务 算法涉及的数据;
根据调用的业务算法以及所述业务算法涉及的数据处理指定的业务数 据。
[权利要求 2] 根据权利要求 1所述的方法, 其特征在于, 所述缓存读取的所述业务 算法及所述业务算法涉及的数据, 包括:
根据预先统计的使用频率判断读取的业务算法的使用频率是否大于预 设频率阈值;
在读取的业务算法的使用频率大于预设频率阈值吋, 缓存大于预设频 率阈值的业务算法及所述业务算法涉及的数据。
[权利要求 3] 根据权利要求 1所述的方法, 其特征在于, 所述方法还包括:
分别统计第一预设吋间段以及第二预设吋间段内接收到的所有业务算 法调用指令的个数, 所述第一预设吋间段与所述第二预设吋间段为相 邻的吋间段, 且所述第一预设吋间段早于所述第二预设吋间段; 根据统计第一预设吋间段以及第二预设吋间段内接收到的所有业务算 法调用指令的个数预估第三预设吋间段内接收到的业务算法调用指令 的个数, 并根据所述预估第三预设吋间段内接收到的业务算法调用指 令的个数预估处理业务数据将要占用的内存大小、 中央处理器大小, 所述第二预设吋间段早于所述第三预设吋间段; 在预估处理业务数据将要占用的内存大小大于预设内存阈值, 或在预 估处理业务数据将要占用的中央处理器大小大于预设中央处理器阈值 吋, 发出提醒。
根据权利要求 1所述的方法, 其特征在于, 在所述根据调用的业务算 法以及所述业务算法涉及的数据处理指定的业务数据之前或之后包括 定吋询问所述 oracle数据库是否存在新增的业务算法和 /或业务算法涉 及的数据, 并在所述 omcle数据库存在新增的业务算法和 /或业务算法 涉及的数据吋, 读取新增的业务算法和 /或业务算法涉及的数据。 根据权利要求 1至 4任一项所述的方法, 其特征在于, 在所述根据调用 的业务算法以及所述业务算法涉及的数据处理指定的业务数据之后, 包括:
刪除缓存的业务算法及所述业务算法涉及的数据。
一种业务数据处理装置, 其特征在于, 所述装置包括:
业务算法读取单元, 用于接收应用服务启动指令后, 读取 omcle数据 库中的业务算法及所述业务算法涉及的数据;
业务算法缓存单元, 用于缓存读取的所述业务算法及所述业务算法涉 及的数据;
业务算法调用指令接收单元, 用于接收业务算法调用指令, 所述业务 算法调用指令携带业务算法的唯一标识;
业务算法调用单元, 用于根据所述业务算法调用指令调用缓存的对应 的业务算法以及所述业务算法涉及的数据;
业务数据处理单元, 用于根据调用的业务算法以及所述业务算法涉及 的数据处理指定的业务数据。
根据权利要求 6所述的装置, 其特征在于, 所述业务算法缓存单元包 括:
使用频率比较模块, 用于根据预先统计的使用频率判断读取的业务算 法的使用频率是否大于预设频率阈值;
数据缓存模块, 用于在读取的业务算法的使用频率大于预设频率阈值 吋, 缓存大于预设频率阈值的业务算法及所述业务算法涉及的数据。 [权利要求 8] 根据权利要求 6所述的装置, 其特征在于, 所述装置还包括:
业务算法调用指令统计单元, 用于分别统计第一预设吋间段以及第二 预设吋间段内接收到的所有业务算法调用指令的个数, 所述第一预设 吋间段与所述第二预设吋间段为相邻的吋间段, 且所述第一预设吋间 段早于所述第二预设吋间段;
业务算法调用指令预估单元, 用于根据统计第一预设吋间段以及第二 预设吋间段内接收到的所有业务算法调用指令的个数预估第三预设吋 间段内接收到的业务算法调用指令的个数, 并根据所述预估第三预设 吋间段内接收到的业务算法调用指令的个数预估处理业务数据将要占 用的内存大小、 中央处理器大小, 所述第二预设吋间段早于所述第三 预设吋间段;
消息提醒单元, 用于在预估处理业务数据将要占用的内存大小大于预 设内存阈值, 或在预估处理业务数据将要占用的中央处理器大小大于 预设中央处理器阈值吋, 发出提醒。
[权利要求 9] 根据权利要求 6所述的装置, 其特征在于, 所述装置包括:
业务算法更新单元, 用于定吋询问所述 omcle数据库是否存在新增的 业务算法和 /或业务算法涉及的数据, 并在所述 omcle数据库存在新增 的业务算法和 /或业务算法涉及的数据吋, 读取新增的业务算法和 /或 业务算法涉及的数据。
[权利要求 10] 根据权利要求 6至 9任一项所述的装置, 其特征在于, 所述装置包括: 业务算法刪除单元, 用于刪除缓存的业务算法及所述业务算法涉及的 数据。
[权利要求 11] 一种终端, 其特征在于, 所述终端包括处理器、 输入设备、 存储器; 所述存储器用于存储一种业务数据处理系统, 所述业务数据处理系统 包括至少一个可被处理器所执行的程序指令; 所述输入设备用于接收应用服务启动指令及业务算法调用指令, 所述 业务算法调用指令携带业务算法的唯一标识;
所述处理器, 用于执行所述业务数据处理系统的程序指令, 以执行以 下步骤:
在所述输入设备接收应用服务启动指令后, 读取 omcle数据库中的业 务算法及所述业务算法涉及的数据, 将读取到的所述业务算法及所述 业务算法涉及的数据缓存到所述存储器中; 以及, 根据所述输入设备接收的所述业务算法调用指令调用缓存的对应的业 务算法以及所述业务算法涉及的数据, 根据调用的业务算法以及所述 业务算法涉及的数据处理指定的业务数据。
[权利要求 12] 根据权利要求 11所述的终端, 其特征在于, 所述将读取到的所述业务 算法及所述业务算法涉及的数据缓存到所述存储器中包括: 根据预先统计的使用频率判断读取的业务算法的使用频率是否大于预 设频率阈值;
在读取的业务算法的使用频率大于预设频率阈值吋, 将大于预设频率 阈值的业务算法及所述业务算法涉及的数据缓存到所述存储器中。
[权利要求 13] 根据权利要求 11所述的终端, 其特征在于, 所述处理器还用于执行所 述业务数据处理系统的程序指令, 以执行以下步骤:
分别统计第一预设吋间段以及第二预设吋间段内所述输入设备接收到 的所有业务算法调用指令的个数, 所述第一预设吋间段与所述第二预 设吋间段为相邻的吋间段, 且所述第一预设吋间段早于所述第二预设 吋间段; 以及,
根据统计的第一预设吋间段以及第二预设吋间段内所述输入设备接收 到的所有业务算法调用指令的个数预估第三预设吋间段内接收到的业 务算法调用指令的个数, 并根据所述预估第三预设吋间段内接收到的 业务算法调用指令的个数预估处理业务数据将要占用的内存大小、 中 央处理器大小, 所述第二预设吋间段早于所述第三预设吋间段; 在预估处理业务数据将要占用的内存大于或小于预设内存阈值吋, 或 在预估处理业务数据将要占用的中央处理器大于或小于预设中央处理 器阈值吋, 生成提醒信息。
[权利要求 14] 根据权利要求 13所述的终端, 其特征在于, 所述终端还包括输出设备 , 用于接收所述提醒信息并输出提醒。
[权利要求 15] 根据权利要求 11所述的终端, 其特征在于, 所述处理器还用于: 定吋 询问所述 oracle数据库是否存在新增的业务算法和 /或业务算法涉及的 数据, 并在所述 omcle数据库存在新增的业务算法和 /或业务算法涉及 的数据吋, 读取新增的业务算法和 /或业务算法涉及的数据。
[权利要求 16] 根据权利要求 11至 15任一项所述的终端, 其特征在于, 在所述根据调 用的业务算法以及所述业务算法涉及的数据处理指定的业务数据之后 , 所述处理器还用于执行所述业务数据处理系统的程序指令, 以执行 以下步骤:
刪除所述存储器缓存的业务算法及所述业务算法涉及的数据。
[权利要求 17] —种非暂态计算机可读存储介质, 其特征在于, 所述非暂态计算机可 读存储介质存储可由一个或多个处理器执行的指令以执行操作, 所述 操作包括:
接收应用服务启动指令后, 读取 omcle数据库中的业务算法及所述业 务算法涉及的数据;
缓存读取的所述业务算法及所述业务算法涉及的数据;
接收业务算法调用指令, 所述业务算法调用指令携带业务算法的唯一 标识;
根据所述业务算法调用指令调用缓存的对应的业务算法以及所述业务 算法涉及的数据;
根据调用的业务算法以及所述业务算法涉及的数据处理指定的业务数 据。
PCT/CN2017/073387 2016-11-14 2017-02-13 业务数据处理方法及终端 WO2018086265A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201611032547.5A CN106776753B (zh) 2016-11-14 2016-11-14 业务数据处理方法及装置
CN201611032547.5 2016-11-14

Publications (1)

Publication Number Publication Date
WO2018086265A1 true WO2018086265A1 (zh) 2018-05-17

Family

ID=58970686

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/073387 WO2018086265A1 (zh) 2016-11-14 2017-02-13 业务数据处理方法及终端

Country Status (2)

Country Link
CN (1) CN106776753B (zh)
WO (1) WO2018086265A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115270275A (zh) * 2022-08-17 2022-11-01 佛山市南海区微高软件有限公司 一种窗户尺寸输入提醒方法、装置、电子设备及存储介质

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108038667B (zh) * 2017-12-21 2021-01-08 平安科技(深圳)有限公司 保单生成方法、装置及设备

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101625699A (zh) * 2009-07-28 2010-01-13 大连新中连软件集团有限公司 基于业务组件化的应用软件进行业务控制的方法和系统
CN102137144A (zh) * 2010-11-11 2011-07-27 华为终端有限公司 第三方软件的配置管理方法及系统、管理服务器
CN104850509A (zh) * 2015-04-27 2015-08-19 交通银行股份有限公司 一种银行业务数据内存缓存的操作方法及系统
WO2016022976A1 (en) * 2014-08-08 2016-02-11 Alibaba Group Holding Limited Data storage upon database failure

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101625699A (zh) * 2009-07-28 2010-01-13 大连新中连软件集团有限公司 基于业务组件化的应用软件进行业务控制的方法和系统
CN102137144A (zh) * 2010-11-11 2011-07-27 华为终端有限公司 第三方软件的配置管理方法及系统、管理服务器
WO2016022976A1 (en) * 2014-08-08 2016-02-11 Alibaba Group Holding Limited Data storage upon database failure
CN104850509A (zh) * 2015-04-27 2015-08-19 交通银行股份有限公司 一种银行业务数据内存缓存的操作方法及系统

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115270275A (zh) * 2022-08-17 2022-11-01 佛山市南海区微高软件有限公司 一种窗户尺寸输入提醒方法、装置、电子设备及存储介质
CN115270275B (zh) * 2022-08-17 2023-11-24 佛山市南海区微高软件有限公司 一种窗户尺寸输入提醒方法、装置、电子设备及存储介质

Also Published As

Publication number Publication date
CN106776753B (zh) 2020-08-21
CN106776753A (zh) 2017-05-31

Similar Documents

Publication Publication Date Title
US11188961B2 (en) Service execution method and device
CN106557330B (zh) 移动终端系统通知栏通知信息处理方法、装置和移动终端
US10171615B1 (en) Smart cache warming
US9807218B2 (en) Method for filtering spam in electronic device and the electronic device
US9014720B2 (en) Methods and devices for prioritizing message threads
CN108616654B (zh) 消息提醒的方法、装置、终端及计算机可读存储介质
US9589007B2 (en) Method for issuing multipart receipts in connection to extensive database operations
US9348858B2 (en) Methods and systems for dynamically changing contact information
CN108112063A (zh) 电量管理方法、电量管理装置、终端和可读存储介质
WO2014102456A1 (en) Method and apparatus for secure advertising
WO2018086265A1 (zh) 业务数据处理方法及终端
US10609523B2 (en) Context and environmentally aware notifications on mobile devices
CN110633302B (zh) 一种海量结构化数据的处理方法及装置
CN104869617A (zh) 一种终端的控制方法
US20210132855A1 (en) Method and device for detecting slow node and computer-readable storage medium
JP5646534B2 (ja) 携帯端末、情報処理方法及びプログラム
US9521545B2 (en) Methods and systems for notification management between an electronic device and a wearable electronic device
WO2020140472A1 (zh) 时区确定方法、装置、可穿戴设备及系统
CN108616637B (zh) 信息处理方法和装置、电子设备、计算机可读存储介质
WO2023045673A1 (zh) 呼叫时间提醒的方法及终端
CN112187667B (zh) 数据下载方法、装置、设备及存储介质
CN110007968B (zh) 信息处理方法、装置、计算机设备和计算机可读存储介质
WO2015112315A1 (en) Selecting a communication mode
CN112799863A (zh) 用于输出信息的方法和装置
CN104954583A (zh) 一种终端

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17868853

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 11.09.2019)

122 Ep: pct application non-entry in european phase

Ref document number: 17868853

Country of ref document: EP

Kind code of ref document: A1