CN108241583A - Data processing method, application server and the computer readable storage medium that wages calculate - Google Patents

Data processing method, application server and the computer readable storage medium that wages calculate Download PDF

Info

Publication number
CN108241583A
CN108241583A CN201711141746.4A CN201711141746A CN108241583A CN 108241583 A CN108241583 A CN 108241583A CN 201711141746 A CN201711141746 A CN 201711141746A CN 108241583 A CN108241583 A CN 108241583A
Authority
CN
China
Prior art keywords
data
wages
memory headroom
calculating process
calculate
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201711141746.4A
Other languages
Chinese (zh)
Inventor
黄平根
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201711141746.4A priority Critical patent/CN108241583A/en
Priority to PCT/CN2018/089701 priority patent/WO2019095669A1/en
Publication of CN108241583A publication Critical patent/CN108241583A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/08Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
    • G06F12/0802Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/08Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
    • G06F12/0802Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches
    • G06F12/0877Cache access modes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2212/00Indexing scheme relating to accessing, addressing or allocation within memory systems or architectures
    • G06F2212/10Providing a specific technical effect
    • G06F2212/1016Performance improvement
    • G06F2212/1024Latency reduction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2212/00Indexing scheme relating to accessing, addressing or allocation within memory systems or architectures
    • G06F2212/10Providing a specific technical effect
    • G06F2212/1032Reliability improvement, data loss prevention, degraded operation etc
    • G06F2212/1036Life time enhancement

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a kind of wages calculate data processing method, the method includes:The data that frequency of use in wages calculating process is more than preset value are counted in the preset period;The memory headroom of default size delimited, the frequency of use is more than the data buffer storage of preset value to the memory headroom;Setting accesses the access interface of the memory headroom;Wages calculating process is monitored, obtains data needed for the wages calculating process;Judge whether data needed for the wages calculating process belong to the data in the memory headroom;Wages calculating is carried out according to judging result.The present invention also provides a kind of application server and computer readable storage mediums.Data processing method, application server and the computer readable storage medium that wages provided by the invention calculate enable to memory read-write speed faster, wages calculating speed are substantially improved, integral operation speed is greatly improved compared with conventional treatment mode.

Description

Data processing method, application server and the computer-readable storage that wages calculate Medium
Technical field
The present invention relates to field of communication technology more particularly to a kind of data processing method of wages calculating, application servers And computer readable storage medium.
Background technology
With the development of enterprise, various channel mechanisms gradually complicate, and the wages of corresponding channel calculate also complexity therewith Change, the reading of data is also more and more numerous and diverse with handling.The calculating of many commissions, meeting wherein especially involved in wages calculating process The slave database repeated reads many data, and according to the mechanism of current database, it may need to read from hard disk when reading data It takes, the slave hard disk that data needs many in this way repeat imported into memory, yet further carries out the processing of internal storage data, so not It only results in because influencing the service life of hard disk on the repetitive read-write of hard disc data, while also because of the data weight of some repetitions It is re-reading to write the inefficiency for leading to entire wages calculation process.
Invention content
In view of this, the present invention proposes data processing method, application server that a kind of wages calculate and computer-readable Storage medium enables to memory read-write speed faster, and wages calculating speed is substantially improved, whole compared with conventional treatment mode Arithmetic speed is greatly improved.
First, to achieve the above object, the present invention proposes a kind of application server, and the application server includes storage Device, processor, the data processor that the wages that be stored on the memory to run on the processor calculate are described The data processor that wages calculate realizes following steps when being performed by the processor:
The data that frequency of use in wages calculating process is more than preset value are counted in the preset period;
The memory headroom of default size delimited, the data buffer storage that the frequency of use is more than to preset value is empty to the memory Between;
Setting accesses the access interface of the memory headroom;
Wages calculating process is monitored, obtains data needed for the wages calculating process;
Judge whether data needed for the wages calculating process belong to the data in the memory headroom;
If data needed for the wages calculating process belong to the data in the memory headroom, pass through the access interface Required data in the wages calculating process are transferred from the memory headroom;And
Wages calculating is carried out according to data required in the wages calculating process transferred.
Optionally, the data processor that the wages calculate also realizes following steps when being performed by the processor:
After wages calculating terminates, the data of the memory headroom are wiped.
Optionally, data buffer storage to the memory headroom by the frequency of use in pre-set interval the step of Later, the data processor that the wages calculate also realizes following steps when being performed by the processor:
By the data backup of the memory headroom to high in the clouds.
Optionally, the frequency of use in statistics wages calculating process of preset period is more than the data of preset value Step specifically includes:
Obtain the identification information that wages calculating process uses data;And
The number for the data that the identification information represents is read from hard disk by identification information statistics.
Optionally, data step needed for the acquisition wages calculating process, specifically further includes:
It intercepts the data that the wages calculating process generates and transfers order;And
It parses the data and transfers order, obtain the identification information of the required data.
Optionally, it is described to judge whether data needed for the wages calculating process belong to the data in the memory headroom Step specifically includes:
Whether the identification information for comparing the required data is consistent with the identification information of data in the memory headroom;And
If the identification information of data is consistent with the identification information of data in the memory headroom needed for described, the wages Data needed for calculating process belong to the data that frequency of use described in the memory headroom is more than preset value.
Optionally, the access interface supports the digital independent of k/v modes and list modes.
In addition, to achieve the above object, the present invention also provides the data processing method that a kind of wages calculate, this method applications In application server, the method includes the steps:
The data that frequency of use in wages calculating process is more than preset value are counted in the preset period;
The memory headroom of default size delimited, the data buffer storage that the frequency of use is more than to preset value is empty to the memory Between;
Setting accesses the access interface of the memory headroom;
Wages calculating process is monitored, obtains data needed for the wages calculating process;
Judge whether data needed for the wages calculating process belong to the data in the memory headroom;
If data needed for the wages calculating process belong to the data in the memory headroom, pass through the access interface Required data in the wages calculating process are transferred from the memory headroom;And
Wages calculating is carried out according to data required in the wages calculating process transferred.
Optionally, the method further includes step:
After wages calculating terminates, the data of the memory headroom are wiped.
Optionally, data buffer storage to the memory headroom by the frequency of use in pre-set interval the step of Later, the method further includes step:
By the data backup of the memory headroom to high in the clouds.
Optionally, the frequency of use in statistics wages calculating process of preset period is more than the data of preset value Step, including:
Obtain the identification information that wages calculating process uses data;And
The number for the data that the identification information represents is read from hard disk by identification information statistics.
Optionally, data step needed for the acquisition wages calculating process, further includes:
It intercepts the data that the wages calculating process generates and transfers order;And
It parses the data and transfers order, obtain the identification information of the required data.
Optionally, it is described to judge whether data needed for the wages calculating process belong to the data in the memory headroom Step, including:
Whether the identification information for comparing the required data is consistent with the identification information of data in the memory headroom;And
If the identification information of data is consistent with the identification information of data in the memory headroom needed for described, the wages Data needed for calculating process belong to the data that frequency of use described in the memory headroom is more than preset value.
Optionally, the method further includes step:
The access interface supports the digital independent of k/v modes and list modes.
Further, to achieve the above object, the present invention also provides a kind of computer readable storage medium, the computers Readable storage medium storing program for executing is stored with the data processor of wages calculating, and the data processor that the wages calculate can be by least one A processor performs, so that the step of at least one processor performs the data processing method that wages as described above calculate.
Compared to the prior art, data processing method and calculating that application server proposed by the invention, wages calculate Machine readable storage medium storing program for executing first, the data that frequency of use in wages calculating process is more than preset value is counted in the preset period; Then, the memory headroom of default size delimited, the frequency of use is more than the data buffer storage of preset value to the memory headroom; Secondly, setting accesses the access interface of the memory headroom;Again, wages calculating process is monitored, the wages is obtained and calculated Cheng Suoxu data;Later, judge whether data needed for the wages calculating process belong to the data in the memory headroom;And work as When data needed for the wages calculating process belong to the data in the memory headroom, then by the access interface from described interior It deposits space and transfers required data in the wages calculating process;Finally, according to required number in the wages calculating process transferred According to progress wages calculating.It in this way, both can be to avoid the use of hard disk be influenced on the repetitive read-write of hard disc data in the prior art Service life, while also because of the drawbacks of some Data duplication read-writes repeated lead to the inefficiency of entire wages calculation process, again It enables to memory read-write speed faster, wages calculating speed is substantially improved, the integral operation speed compared with conventional treatment mode It is greatly improved.
Description of the drawings
Fig. 1 is the schematic diagram of one optional hardware structure of application server in the present invention;
Fig. 2 is the Program modual graph for the data processor first embodiment that wages of the present invention calculate;
Fig. 3 is the Program modual graph for the data processor second embodiment that wages of the present invention calculate;
Fig. 4 is the Program modual graph for the data processor 3rd embodiment that wages of the present invention calculate;
Fig. 5 is the flow chart for the data processing method first embodiment that wages of the present invention calculate;
Fig. 6 is the flow chart for the data processing method second embodiment that wages of the present invention calculate;
Fig. 7 is the flow chart for the data processing method 3rd embodiment that wages of the present invention calculate.
Reference numeral:
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, with reference to the accompanying drawings and embodiments, it is right The present invention is further elaborated.It should be appreciated that specific embodiment described herein is only to explain the present invention, not For limiting the present invention.Based on the embodiments of the present invention, those of ordinary skill in the art are not before creative work is made All other embodiments obtained are put, shall fall within the protection scope of the present invention.
It should be noted that the description for being related to " first ", " second " etc. in the present invention is only used for description purpose, and cannot It is interpreted as indicating or implies its relative importance or imply the quantity of the technical characteristic indicated by indicating.Define as a result, " the One ", at least one this feature can be expressed or be implicitly included to the feature of " second ".In addition, the skill between each embodiment Art scheme can be combined with each other, but must can be implemented as basis with those of ordinary skill in the art, when technical solution Will be understood that the combination of this technical solution is not present with reference to there is conflicting or can not realize when, also not the present invention claims Protection domain within.
As shown in fig.1, it is the schematic diagram of 1 one optional hardware structure of application server.
The application server 1 can be rack-mount server, blade server, tower server or cabinet-type service The computing devices such as device, the application server 1 can be the servers that independent server or multiple servers are formed Cluster.
In the present embodiment, the application server 1 may include, but be not limited only to, and company can be in communication with each other by system bus Connect memory 11, processor 12, network interface 13.
The application server 1 connects network by network interface 13, obtains information.The network can be enterprises Net (Intranet), internet (Internet), global system for mobile communications (Global System of Mobile Communication, GSM), wideband code division multiple access (Wideband Code Division Multiple Access, WCDMA), the wirelessly or non-wirelessly network such as 4G networks, 5G networks, bluetooth (Bluetooth), Wi-Fi, speech path network.
It should be pointed out that Fig. 1 illustrates only the application server 1 with component 11-13, it should be understood that simultaneously All components shown realistic are not applied, the more or less component of the implementation that can be substituted.
Wherein, the memory 11 includes at least a type of readable storage medium storing program for executing, and the readable storage medium storing program for executing includes Flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memories etc.), random access storage device (RAM), it is static with Machine accesses memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), may be programmed only Read memory (PROM), magnetic storage, disk, CD etc..In some embodiments, the memory 11 can be described answers With the hard disk or memory of the internal storage unit of server 1, such as the application server 1.In further embodiments, it is described to deposit Reservoir 11 can also be the External memory equipment of the application server 1, such as the plug-in type that the application server 1 is equipped with is hard Disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card) etc..Certainly, the memory 11 can also both include the internal storage unit of the application server 1 or wrap Include its External memory equipment.In the present embodiment, the memory 11 is installed on the behaviour of the application server 1 commonly used in storage Make system and types of applications software, such as program code of data processor 200 of wages calculating etc..In addition, the storage Device 11 can be also used for temporarily storing the Various types of data that has exported or will export.
The processor 12 can be in some embodiments central processing unit (Central Processing Unit, CPU), controller, microcontroller, microprocessor or other data processing chips.The processor 12 is answered commonly used in control is described With the overall operation of server 1, such as execution data interaction or the relevant control of communication and processing etc..In the present embodiment, institute Processor 12 is stated for running the program code stored in the memory 11 or processing data, such as run the wages Data processor 200 of calculating etc..
The network interface 13 may include radio network interface or wired network interface, which is commonly used in Communication connection is established between the application server 1 and other electronic equipments.
In the present embodiment, the data processor 200 of wages calculating is installed and run in the application server 1, when When the data processor 200 that the wages calculate is run, the application server 2 is calculated in statistics wages of preset period Frequency of use is more than the data of preset value in the process;The memory headroom of default size delimited, the frequency of use be more than default The data buffer storage of value is to the memory headroom;Setting accesses the access interface of the memory headroom;Wages calculating process is monitored, is obtained Take data needed for the wages calculating process;Judge whether data needed for the wages calculating process belong in the memory headroom Data;When data needed for the wages calculating process belong to the data in the memory headroom, then connect by the access Mouth transfers required data in the wages calculating process from the memory headroom;And according in the wages calculating process transferred Required data carry out wages calculating.It in this way, both can be to avoid influencing hard disk to the repetitive read-write of hard disc data in the prior art Service life, while also because some repeat Data duplications read-write cause entire wages calculation process inefficiency disadvantage End, and enable to memory read-write speed faster, wages calculating speed is substantially improved, the integral operation compared with conventional treatment mode Speed is greatly improved.
So far, oneself is through describing the application environment of each embodiment of the present invention and the hardware configuration and work(of relevant device in detail Energy.In the following, above application environment and relevant device will be based on, each embodiment of the present invention is proposed.
First, the present invention proposes the data processor 200 that a kind of wages calculate.
As shown in fig.2, it is the Program modual graph for 200 first embodiment of data processor that wages of the present invention calculate.
In the present embodiment, the data processor 200 that the wages calculate is stored in memory 11 including a series of On computer program instructions, when the computer program instructions are performed by processor 12, can realize various embodiments of the present invention Wages calculate data processing operation.In some embodiments, the spy realized based on the computer program instructions each section Fixed operation, the data processor 200 that the wages calculate can be divided into one or more modules.For example, in Fig. 2 In, the data processor 200 that the wages calculate can be divided into statistical module 201, cache module 202, setting mould Block 203, acquisition module 204, judgment module 205 and computing module 206.Wherein:
The statistical module 201, for counted in the preset period frequency of use in wages calculating process be more than it is default The data of value.In the present embodiment, the preset time and preset value are all configured as needed by administrative staff, the present invention The specific range of the preset time and preset value is not construed as limiting.For example, administrative staff wonder that wages calculate in 1 week Frequency of use is more than the data of 50 times in the process, then is set as preset time 1 week, preset value is set as 50.
In addition, counting for convenience, added in the data that the statistical module 201 is more than preset value in the frequency of use Identification information.
It is more than the data of preset value for frequency of use in statistics wages calculating process, the statistical module 201 is additionally operable to, obtains Wages calculating process is taken to use the identification information of data, and passes through the identification information statistics and reads the mark letter from hard disk Cease the number of the data represented.
The frequency of use for delimiting the memory headroom of default size, is more than preset value by the cache module 202 Data buffer storage is to the memory headroom.Specifically, the default size by administrative staff according to headcount and calculating cycle into Row setting.For example, when headcount is few, calculating cycle in short-term, the memory headroom can be set it is smaller, such as in 1G It deposits, conversely, when headcount is more, when calculating cycle is long, the memory headroom can be set to bigger, such as 10G memories. In the present embodiment, by data buffer storage of the frequency of use more than preset value to the memory headroom, multiple calculating can be realized The data sharing of process reduces reading and writing data number, promotes calculated performance and keeps data consistency.
The setup module 203, for setting the access interface for accessing the memory headroom.In the present embodiment, the visit Ask the digital independent that interface supports k/v modes and list modes.
The acquisition module 204 for monitoring wages calculating process, obtains data needed for the wages calculating process.
Specifically, to obtain data needed for the wages calculating process, the acquisition module 204 is additionally operable to described in interception The data that wages calculating process generates transfer order;And parse the data and transfer order, obtain the mark of the required data Information.
The judgment module 205, for judging whether data needed for the wages calculating process belong to the memory headroom Interior data.Further, the judgment module 205 is additionally operable to compare the identification information of the required data and the memory Whether the identification information of data is consistent in space.If consistent, the judgment module 205 is judged needed for the wages calculating process Data belong to the data that frequency of use described in the memory headroom is more than preset value.
The computing module 206, if for belonging in the memory headroom in data needed for the wages calculating process During data, required data in the wages calculating process are transferred from the memory headroom by the access interface.
The computing module 206 is additionally operable to carry out wages meter according to data required in the wages calculating process transferred It calculates.Further, the wages result of calculation can be shown by the mobile terminal.In the present embodiment, the mobile terminal Can be mobile phone, smart phone, laptop, digit broadcasting receiver, PDA (personal digital assistant), PAD (tablets Computer), PMP (portable media player), navigation device, the movable equipment of car-mounted device etc. and such as digital The fixed terminal of TV, desktop computer, notebook, server etc..
The data processor 200 calculated by above procedure module 201-206, wages proposed by the invention, first, The application server 2 counts the data that frequency of use in wages calculating process is more than preset value in the preset period;Then, The memory headroom of default size delimited, the frequency of use is more than the data buffer storage of preset value to the memory headroom;Secondly, Setting accesses the access interface of the memory headroom;Again, wages calculating process is monitored, is obtained needed for the wages calculating process Data;Later, judge whether data needed for the wages calculating process belong to the data in the memory headroom;And when the firewood Data needed for money calculating process are when belonging to the data in the memory headroom, then by the access interface from the memory headroom Transfer required data in the wages calculating process;Finally, it is carried out according to data required in the wages calculating process transferred Wages calculate.It in this way, both can be to avoid the service life of hard disk be influenced on the repetitive read-write of hard disc data in the prior art, together When also because of some Data duplications read-writes the drawbacks of leading to the inefficiency of entire wages calculation process for repeating, and enable to Faster, wages calculating speed is substantially improved in memory read-write speed, and integral operation speed obtains very big compared with conventional treatment mode It is promoted.
Further, the above-mentioned first embodiment of the data processor 200 calculated based on wages of the present invention, proposes this hair Bright second embodiment (as shown in Figure 3).In the present embodiment, the data processor 200 that the wages calculate further includes removing Module 207, wherein:
The removing module 207, after terminating in wages calculating, wipes the data of the memory headroom It removes.
By above procedure module 207, the data processor 200 that wages proposed by the invention calculate can be clear in time Except the invalid data in memory, data processing speed is improved.
Further, the above-mentioned first embodiment of the data processor 200 calculated based on wages of the present invention, proposes this hair Bright 3rd embodiment (as shown in Figure 4).In the present embodiment, the data processor 200 that the wages calculate further includes backup Module 208, wherein:
The backup module 208, for by the data backup of the memory headroom to high in the clouds.
In the present embodiment, by the data backup of the memory headroom to high in the clouds, on the one hand, after can ensureing disk failures, Data will not lose.On the other hand, by being stored to the backup of internal storage data, intermediate computations data can also be preserved, just In the correctness of verification wages calculating process.
By above procedure module 208, the data processor 200 that wages proposed by the invention calculate can ensure number According to will not lose, and by being stored to the backup of internal storage data, intermediate computations data can also be preserved, convenient for verifying firewood Provide the correctness of calculating process.
In addition, the present invention also proposes the data processing method that a kind of wages calculate.
As shown in fig.5, it is the implementation process diagram for the data processing method first embodiment that wages of the present invention calculate. In the present embodiment, according to different demands, the execution sequence of the step in flow chart shown in fig. 5 can change, Mou Xiebu Suddenly it can be omitted.
Step S501 counts the data that frequency of use in wages calculating process is more than preset value in the preset period.This In embodiment, the preset time and preset value are all configured as needed by administrative staff, and the present invention is not to described Preset time and the specific range of preset value are construed as limiting.It is used in wages calculating process for example, administrative staff were wondered in 1 week Frequency is more than the data of 50 times, then is set as preset time 1 week, preset value is set as 50.Wherein, the application server 1 passes through Preset period frequency of use is more than the data of preset value in the following manner statistics wages calculating process:
The application server 1 obtains wages calculating process and uses the identification information of data, and passes through the mark letter Breath statistics reads the number for the data that the identification information represents from hard disk.
In addition, counting for convenience, added in the data that the application server 1 is more than preset value in the frequency of use Identification information.
Step S502, delimit the memory headroom of default size, and the frequency of use is more than the data buffer storage of preset value extremely The memory headroom.
Specifically, the default size is configured by administrative staff according to headcount and calculating cycle.For example, the person of working as Number amount is few, and the memory headroom in short-term, can be set smaller, such as 1G memories, conversely, working as staff number by calculating cycle Amount is more, and when calculating cycle is long, the memory headroom can be set to bigger, such as 10G memories.In the present embodiment, by institute Data buffer storage of the frequency of use more than preset value is stated to the memory headroom, can realize the data sharing of multiple calculating process, Reading and writing data number is reduced, promote calculated performance and keeps data consistency.
Step S503, setting access the access interface of the memory headroom.
In the present embodiment, the access interface supports the digital independent of k/v modes and list modes.
Step S504 monitors wages calculating process, obtains data needed for the wages calculating process.Wherein, the application Server 1 obtains data needed for wages calculating process in the following manner:
The application server 1, first, the data that interception wages calculating process generates transfer order.Then, described in parsing Data transfer order, obtain the identification information of the required data.
Step S505, judges whether data needed for the wages calculating process belong to the data in the memory headroom.If Data needed for the wages calculating process belong to the data in the memory headroom, perform step S506, otherwise, terminate.
Further, the identification information and number in the memory headroom that the application server 1 compares the required data According to identification information it is whether consistent.If consistent, the application server 1 judges that data needed for the wages calculating process belong to Frequency of use described in the memory headroom is more than the data of preset value.
Step S506 transfers required number in the wages calculating process by the access interface from the memory headroom According to.
Step S507 carries out wages calculating according to data required in the wages calculating process transferred.Further, institute Stating wages result of calculation can be shown by the mobile terminal.In the present embodiment, the mobile terminal can be mobile phone, Smart phone, laptop, digit broadcasting receiver, PDA (personal digital assistant), PAD (tablet computer), PMP are (portable Multimedia player), navigation device, car-mounted device etc. movable equipment and such as number TV, desktop computer, pen The fixed terminal of note sheet, server etc..
By above-mentioned steps S501-507, the data processing method of wages proposed by the invention calculating is first, described to answer The data that frequency of use in wages calculating process is more than preset value are counted in the preset period with server 1;Then, it delimit pre- If the memory headroom of size, the frequency of use is more than the data buffer storage of preset value to the memory headroom;Secondly, setting is visited Ask the access interface of the memory headroom;Again, wages calculating process is monitored, obtains data needed for the wages calculating process; Later, judge whether data needed for the wages calculating process belong to the data in the memory headroom;And when the wages meter When data needed for calculation process belong to the data in the memory headroom, then transferred by the access interface from the memory headroom Required data in the wages calculating process;Finally, wages are carried out according to data required in the wages calculating process transferred It calculates.In this way, both can to avoid the service life of hard disk is influenced on the repetitive read-write of hard disc data in the prior art, while Since the drawbacks of some Data duplication repeated read-writes lead to the inefficiency of entire wages calculation process, and enable to memory Faster, wages calculating speed is substantially improved in read or write speed, and integral operation speed is greatly improved compared with conventional treatment mode.
As shown in fig.6, it is the implementation process diagram for the data processing method second embodiment that wages of the present invention calculate. In the present embodiment, according to different demands, the execution sequence of the step in flow chart shown in fig. 6 can change, Mou Xiebu Suddenly it can be omitted.
Step S601 counts the data that frequency of use in wages calculating process is more than preset value in the preset period.Its In, the application server 1 count in the following manner in wages calculating process preset period frequency of use be more than it is default The data of value:
The application server 1 obtains wages calculating process and uses the identification information of data, and passes through the mark letter Breath statistics reads the number for the data that the identification information represents from hard disk.
Step S602, delimit the memory headroom of default size, and the frequency of use is more than the data buffer storage of preset value extremely The memory headroom.
Step S603, setting access the access interface of the memory headroom.
Step S604 monitors wages calculating process, obtains data needed for the wages calculating process.
Step S605, judges whether data needed for the wages calculating process belong to the data in the memory headroom.If Data needed for the wages calculating process belong to the data in the memory headroom, perform step S606, otherwise, terminate.
Step S606 transfers required number in the wages calculating process by the access interface from the memory headroom According to.
Step S607 carries out wages calculating according to data required in the wages calculating process transferred.
Step S608 after wages calculating terminates, wipes the data of the memory headroom.
By above-mentioned steps S601-608, the data processing method of wages proposed by the invention calculating can be clear in time Except the invalid data in memory, data processing speed is improved.
As shown in fig.7, it is the implementation process diagram for the data processing method 3rd embodiment that wages of the present invention calculate. In the present embodiment, according to different demands, the execution sequence of the step in flow chart shown in Fig. 7 can change, Mou Xiebu Suddenly it can be omitted.
Step S701 counts the data that frequency of use in wages calculating process is more than preset value in the preset period.
Wherein, the application server 1 counts preset period use frequency in wages calculating process in the following manner Rate is more than the data of preset value:
The application server 1 obtains wages calculating process and uses the identification information of data, and passes through the mark letter Breath statistics reads the number for the data that the identification information represents from hard disk.
Step S702, delimit the memory headroom of default size, and the frequency of use is more than the data buffer storage of preset value extremely The memory headroom.
Step S703, by the data backup of the memory headroom to high in the clouds.
Step S704, setting access the access interface of the memory headroom.
Step S705 monitors wages calculating process, obtains data needed for the wages calculating process.
Wherein, the application server 1 obtains data needed for wages calculating process in the following manner:
The application server 1, first, the data that interception wages calculating process generates transfer order.Then, described in parsing Data transfer order, obtain the identification information of the required data.
Step S706, judges whether data needed for the wages calculating process belong to the data in the memory headroom.If Data needed for the wages calculating process belong to the data in the memory headroom, perform step S807, otherwise, terminate.
Step S707 transfers required number in the wages calculating process by the access interface from the memory headroom According to.
Step S708 carries out wages calculating according to data required in the wages calculating process transferred.
By above-mentioned steps S701-708, the data processing method of wages proposed by the invention calculating, by by described in The data backup of memory headroom is to high in the clouds, on the one hand, after can ensureing disk failures, data will not lose.On the other hand, pass through The backup of internal storage data is stored, intermediate computations data can also be preserved, convenient for verifying the correctness of wages calculating process.
Further, to achieve the above object, the present invention also provides a kind of computer readable storage medium, the computers Readable storage medium storing program for executing is stored with the data processor of wages calculating, and the data processor that the wages calculate can be by least one A processor performs, so that the step of at least one processor performs the data processing method that wages as described above calculate.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on such understanding, technical scheme of the present invention substantially in other words does the prior art Going out the part of contribution can be embodied in the form of software product, which is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), used including some instructions so that a station terminal equipment (can be mobile phone, computer takes Be engaged in device, air conditioner or the network equipment etc.) perform method described in each embodiment of the present invention.
It these are only the preferred embodiment of the present invention, be not intended to limit the scope of the invention, it is every to utilize this hair The equivalent structure or equivalent flow shift that bright specification and accompanying drawing content are made directly or indirectly is used in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of data processing method that wages calculate, applied to application server, which is characterized in that the method includes steps Suddenly:
The data that frequency of use in wages calculating process is more than preset value are counted in the preset period;
The memory headroom of default size delimited, the frequency of use is more than the data buffer storage of preset value to the memory headroom;
Setting accesses the access interface of the memory headroom;
Wages calculating process is monitored, obtains data needed for the wages calculating process;
Judge whether data needed for the wages calculating process belong to the data in the memory headroom;
If data needed for the wages calculating process belong to the data in the memory headroom, by the access interface from institute It states memory headroom and transfers required data in the wages calculating process;And
Wages calculating is carried out according to data required in the wages calculating process transferred.
2. the data processing method that wages as described in claim 1 calculate, which is characterized in that the method further includes step:
After wages calculating terminates, the data of the memory headroom are wiped.
3. the data processing method that wages as described in claim 1 calculate, which is characterized in that described by the frequency of use After data buffer storage to the step of memory headroom in pre-set interval, the method further includes step:
By the data backup of the memory headroom to high in the clouds.
4. the data processing method that wages as described in claim 1 calculate, which is characterized in that described to unite in the preset period The step of frequency of use is more than the data of preset value in wages calculating process is counted, including:
Obtain the identification information that wages calculating process uses data;And
The number for the data that the identification information represents is read from hard disk by identification information statistics.
5. the data processing method that wages as described in claim 1 calculate, which is characterized in that described to obtain the wages calculating Data step needed for process, further includes:
It intercepts the data that the wages calculating process generates and transfers order;And
It parses the data and transfers order, obtain the identification information of the required data.
6. the data processing method that wages as claimed in claim 5 calculate, which is characterized in that described to judge that the wages calculate Whether data needed for process belong to the step of data in the memory headroom, including:
Whether the identification information for comparing the required data is consistent with the identification information of data in the memory headroom;And
If the identification information of data is consistent with the identification information of data in the memory headroom needed for described, the wages calculate Data needed for process belong to the data that frequency of use described in the memory headroom is more than preset value.
7. the data processing method that wages as described in claim 1 calculate, which is characterized in that the method further includes step:
The access interface supports the digital independent of k/v modes and list modes.
8. a kind of application server, which is characterized in that the application server includes memory, processor, on the memory The data processor that the wages that be stored with to run on the processor calculate, the data processor that the wages calculate Following steps are realized when being performed by the processor:
The data that frequency of use in wages calculating process is more than preset value are counted in the preset period;
The memory headroom of default size delimited, the frequency of use is more than the data buffer storage of preset value to the memory headroom;
Setting accesses the access interface of the memory headroom;
Wages calculating process is monitored, obtains data needed for the wages calculating process;
Judge whether data needed for the wages calculating process belong to the data in the memory headroom;
If data needed for the wages calculating process belong to the data in the memory headroom, by the access interface from institute It states memory headroom and transfers required data in the wages calculating process;And
Wages calculating is carried out according to data required in the wages calculating process transferred.
9. application server as claimed in claim 8, which is characterized in that the data processor that the wages calculate is described When processor performs, following steps are also realized:
After wages calculating terminates, the data of the memory headroom are wiped.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has the data processing that wages calculate Program, the data processor that the wages calculate can be performed by least one processor, so that at least one processor The step of performing the data processing method that the wages as described in any one of claim 1-7 calculate.
CN201711141746.4A 2017-11-17 2017-11-17 Data processing method, application server and the computer readable storage medium that wages calculate Pending CN108241583A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201711141746.4A CN108241583A (en) 2017-11-17 2017-11-17 Data processing method, application server and the computer readable storage medium that wages calculate
PCT/CN2018/089701 WO2019095669A1 (en) 2017-11-17 2018-06-03 Salary calculation data processing method, application server, and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711141746.4A CN108241583A (en) 2017-11-17 2017-11-17 Data processing method, application server and the computer readable storage medium that wages calculate

Publications (1)

Publication Number Publication Date
CN108241583A true CN108241583A (en) 2018-07-03

Family

ID=62701008

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711141746.4A Pending CN108241583A (en) 2017-11-17 2017-11-17 Data processing method, application server and the computer readable storage medium that wages calculate

Country Status (2)

Country Link
CN (1) CN108241583A (en)
WO (1) WO2019095669A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109976905A (en) * 2019-03-01 2019-07-05 联想(北京)有限公司 EMS memory management process, device and electronic equipment
CN110018969A (en) * 2019-03-08 2019-07-16 平安科技(深圳)有限公司 Data cache method, device, computer equipment and storage medium

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020091902A1 (en) * 2001-01-10 2002-07-11 Susumu Hirofuji File system and data caching method thereof
CN1542644A (en) * 2003-04-28 2004-11-03 威盛电子股份有限公司 Salary paying system and payment method thereof
CN101013400A (en) * 2007-01-30 2007-08-08 金蝶软件(中国)有限公司 Method and apparatus for cache data in memory
CN101286143A (en) * 2008-05-26 2008-10-15 中兴通讯股份有限公司 Method for supervisory unit driving cache
CN101388110A (en) * 2008-10-31 2009-03-18 深圳市同洲电子股份有限公司 Data rapidly-reading method and apparatus
CN101692229A (en) * 2009-07-28 2010-04-07 武汉大学 Self-adaptive multilevel cache system for three-dimensional spatial data based on data content
CN101882119A (en) * 2009-05-08 2010-11-10 炬力集成电路设计有限公司 NAND flash memory controller and data transmission method thereof
CN104598615A (en) * 2015-01-31 2015-05-06 广州亦云信息技术有限公司 Memory access method and device supporting data persistence
CN105808451A (en) * 2014-12-29 2016-07-27 华为技术有限公司 Data caching method and related apparatus
CN106484633A (en) * 2016-10-08 2017-03-08 广州华多网络科技有限公司 A kind of data cached method and device
US9658957B2 (en) * 2011-02-15 2017-05-23 Sandisk Technologies Llc Systems and methods for managing data input/output operations
CN107169709A (en) * 2017-05-25 2017-09-15 四川建联达网络科技有限公司 The one-stop management method of building trade and its management platform

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9032113B2 (en) * 2008-03-27 2015-05-12 Apple Inc. Clock control for DMA busses
CN102591799B (en) * 2011-12-30 2015-04-15 华为技术有限公司 Method and device for data storage

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020091902A1 (en) * 2001-01-10 2002-07-11 Susumu Hirofuji File system and data caching method thereof
CN1542644A (en) * 2003-04-28 2004-11-03 威盛电子股份有限公司 Salary paying system and payment method thereof
CN101013400A (en) * 2007-01-30 2007-08-08 金蝶软件(中国)有限公司 Method and apparatus for cache data in memory
CN101286143A (en) * 2008-05-26 2008-10-15 中兴通讯股份有限公司 Method for supervisory unit driving cache
CN101388110A (en) * 2008-10-31 2009-03-18 深圳市同洲电子股份有限公司 Data rapidly-reading method and apparatus
CN101882119A (en) * 2009-05-08 2010-11-10 炬力集成电路设计有限公司 NAND flash memory controller and data transmission method thereof
CN101692229A (en) * 2009-07-28 2010-04-07 武汉大学 Self-adaptive multilevel cache system for three-dimensional spatial data based on data content
US9658957B2 (en) * 2011-02-15 2017-05-23 Sandisk Technologies Llc Systems and methods for managing data input/output operations
CN105808451A (en) * 2014-12-29 2016-07-27 华为技术有限公司 Data caching method and related apparatus
CN104598615A (en) * 2015-01-31 2015-05-06 广州亦云信息技术有限公司 Memory access method and device supporting data persistence
CN106484633A (en) * 2016-10-08 2017-03-08 广州华多网络科技有限公司 A kind of data cached method and device
CN107169709A (en) * 2017-05-25 2017-09-15 四川建联达网络科技有限公司 The one-stop management method of building trade and its management platform

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109976905A (en) * 2019-03-01 2019-07-05 联想(北京)有限公司 EMS memory management process, device and electronic equipment
CN110018969A (en) * 2019-03-08 2019-07-16 平安科技(深圳)有限公司 Data cache method, device, computer equipment and storage medium
CN110018969B (en) * 2019-03-08 2023-06-02 平安科技(深圳)有限公司 Data caching method, device, computer equipment and storage medium

Also Published As

Publication number Publication date
WO2019095669A1 (en) 2019-05-23

Similar Documents

Publication Publication Date Title
CN105205014B (en) A kind of date storage method and device
CN108062573A (en) Model training method and device
CN107038256B (en) Business customizing device, method and computer readable storage medium based on data source
CN106780045B (en) Policy information corrects method and apparatus
CN104268248B (en) Recommendation method and device for application program and terminal
CN108449313B (en) Electronic device, Internet service system risk early warning method and storage medium
CN104298680A (en) Data statistic method and device
CN111984400A (en) Memory allocation method and device of neural network
CN108241583A (en) Data processing method, application server and the computer readable storage medium that wages calculate
CN104320266A (en) Charging method and device under cloud computing operation system
CN107992516A (en) Electronic device, the method for data query and storage medium
CN108256986A (en) Wages computational methods, application server and computer readable storage medium based on cloud computing
CN109213448A (en) A kind of method, apparatus, equipment and the storage medium of the erasable data of smart card
CN109543940A (en) Active evaluation method, apparatus, electronic equipment and storage medium
CN112367384A (en) Kafka cluster-based dynamic speed limiting method and device and computer equipment
CN111784173A (en) AB experiment data processing method, device, server and medium
CN109521970B (en) Data processing method and related equipment
CN111858612B (en) Data accelerated access method and device based on graph database and storage medium
CN109800085A (en) Detection method, device, storage medium and the electronic equipment of resource distribution
CN107102799A (en) A kind of method and its intelligent terminal for adjusting the screen time of going out
CN108256818A (en) Wages computational methods, application server and computer readable storage medium
CN107403336A (en) Methods of marking and device based on flow data
CN108762684B (en) Hot spot data migration flow control method and device, electronic equipment and storage medium
CN102237117A (en) Method and device for calculating service life of mobile storage device
CN116360704A (en) Kernel parameter determining method and device, storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180703