CN108009245A - Value of the product acquisition methods, device, computer equipment and storage medium - Google Patents

Value of the product acquisition methods, device, computer equipment and storage medium Download PDF

Info

Publication number
CN108009245A
CN108009245A CN201711240711.6A CN201711240711A CN108009245A CN 108009245 A CN108009245 A CN 108009245A CN 201711240711 A CN201711240711 A CN 201711240711A CN 108009245 A CN108009245 A CN 108009245A
Authority
CN
China
Prior art keywords
value
product
regulation
control data
data
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.)
Granted
Application number
CN201711240711.6A
Other languages
Chinese (zh)
Other versions
CN108009245B (en
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 Pension Insurance Corp
Original Assignee
Ping An Pension Insurance Corp
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 Pension Insurance Corp filed Critical Ping An Pension Insurance Corp
Priority to CN201711240711.6A priority Critical patent/CN108009245B/en
Publication of CN108009245A publication Critical patent/CN108009245A/en
Application granted granted Critical
Publication of CN108009245B publication Critical patent/CN108009245B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/24Querying
    • G06F16/245Query processing
    • G06F16/2453Query optimisation
    • G06F16/24534Query rewriting; Transformation
    • G06F16/24539Query rewriting; Transformation using cached or materialised query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/08Insurance

Abstract

The present invention relates to a kind of value of the product acquisition methods, device, computer equipment and storage medium.Method includes:The value of the product that receiving terminal is sent obtains request, and value of the product, which obtains, carries product information and user information in request;Value of the product combination table is obtained from the static data area of caching;Corresponding product information value is extracted from product information according to value of the product combination table;Corresponding user information value is extracted from user information according to value of the product combination table;Initial product corresponding with the product information value and user information value extracted is searched from value of the product combination table to be worth;The regulation and control data to match with product information are searched from the dynamic data area of caching;Initial product value is adjusted according to regulation and control data;Initial product value after adjustment is returned into terminal.Content product value capture method, apparatus, computer equipment and the storage medium of above-mentioned exclusive rights can improve data read rates, improve the treatment effeciency of value calculation.

Description

Value of the product acquisition methods, device, computer equipment and storage medium
Technical field
The present invention relates to field of computer technology, is set more particularly to a kind of value of the product acquisition methods, device, computer Standby and storage medium.
Background technology
With the growth of internet sales business, especially when company carries out sales publicity activity, there are a large amount of clients same Shi Jizhong initiates the acquisition request to value of the product, and the system of company needs to calculate the value of product, in calculating process Need to call mass data.Major part company is all to use the relevant database such as Oracle, Mysql etc to deposit at present Related data is stored up, but often occurs that database crashes because consuming excessive in the engineering from data base call data, property It can not meet the situation of selling operation demand.
The content of the invention
Based on this, it is necessary to poor performance during for the data base call data occurred during the said goods value capture Problem, there is provided a kind of value of the product acquisition methods, device, computer equipment and storage medium.
A kind of value of the product acquisition methods, comprise the following steps:
The value of the product that receiving terminal is sent obtains request, and the value of the product, which obtains, carries product information and use in request Family information;
Value of the product combination table is obtained from the static data area of caching;
Corresponding product information value is extracted from the product information according to the value of the product combination table;
Corresponding user information value is extracted from the user information according to the value of the product combination table;
Initial production corresponding with product information value and the user information value extracted is searched from value of the product combination table Product are worth;
The regulation and control data to match with the product information are searched from the dynamic data area of caching;
Initial product value is adjusted according to the regulation and control data;
Initial product value after adjustment is returned into the terminal.
In one of the embodiments, the method further includes:
When finding the regulation and control data to match with the product information in the dynamic data area from the caching, renewal The inquiry record of the regulation and control data found;
The inquiry record of respectively regulation and control data in the dynamic data area is obtained, is recorded according to the inquiry of each regulation and control data Each regulation and control data are ranked up.
In one of the embodiments, the method further includes:
When the regulation and control data to match with the product information are not found in the dynamic data area from the caching, from The regulation and control data to match with the product information are searched in database;
The regulation and control data found are write in the dynamic data area.
In one of the embodiments, the step regulation and control data found write in the dynamic data area Suddenly, including:
When the memory space of the dynamic data area is expired, delete and be located in the dynamic data area at preset order Regulate and control data;
According in the dynamic data area respectively regulation and control data inquiry record by the regulation and control data found write to In the dynamic data area.
In one of the embodiments, the method further includes:
When detecting that the in the database first regulation and control data are updated, it is corresponding to obtain the first regulation and control data Product information;
The second regulation and control data corresponding with the product information are searched from the dynamic data area, and described second is adjusted Control data replace with the first regulation and control data after renewal.
A kind of value of the product acquisition device, described device include:
Request receiving module, obtains request, the value of the product obtains request for the value of the product that receiving terminal is sent Middle carrying product information and user information;
Table acquisition module is worth, for obtaining value of the product combination table from the static data area of caching;
Product information value extraction module, it is corresponding for being extracted according to the value of the product combination table from the product information Product information value;
User information value extraction module, for extracting correspondence from the user information according to the value of the product combination table User information value;
Initial value searching module, for being searched from value of the product combination table and the product information value of extraction and user The corresponding initial product value of the value of information;
Regulate and control data search module, for searching the tune to match with the product information from the dynamic data area of caching Control data;
Numerical value adjusts module, for being adjusted according to the regulation and control data to initial product value;
Numerical value returns to module, for the initial product value after adjustment to be returned to the terminal.
In one of the embodiments, described device further includes:
Update module is recorded, is matched for working as to find from the dynamic data area of the caching with the product information Regulation and control data when, update the regulation and control data found inquiry record;
Data sorting module, for obtaining the inquiry record of respectively regulation and control data in the dynamic data area, according to described each The inquiry record of regulation and control data is ranked up each regulation and control data.
In one of the embodiments, described device further includes:
Data call module, does not find and the product information phase for working as from the dynamic data area of the caching During the regulation and control data matched somebody with somebody, the regulation and control data to match with the product information are searched from database;
Data write. module, for the regulation and control data found to be write in the dynamic data area.
A kind of computer equipment, including memory, processor and storage can be run on a memory and on a processor The step of computer program, the processor realizes the above method when performing described program.
A kind of computer-readable recording medium, is stored thereon with computer program, which realizes when being executed by processor The step of above method.
The said goods value capture method, apparatus, computer equipment and storage medium, with value of the product calculate it is relevant and The static state often called, dynamic data are all previously stored in the static data area and dynamic data area of caching, when terminal is sent out When playing value of the product acquisition request, the static number of the product information carried in request and user information from caching is sent according to terminal According to obtaining the corresponding value of information in area, and regulation and control data are obtained from the dynamic data area of caching according to product information, according to letter Breath value and regulation and control data obtain final initial product value.So that when calling value of the product to calculate relevant data, It can directly be read from caching, without being called from database, improve data reading performance using redundancy, and be avoided that database is delayed machine Situation, effectively increase the work efficiency of value of the product evaluation work.
Brief description of the drawings
Fig. 1 is the applied environment figure of value of the product acquisition methods in one embodiment;
Fig. 2 is the method flow diagram of value of the product acquisition methods in one embodiment;
Fig. 3 is the structure diagram of value of the product acquisition device in one embodiment;
Fig. 4 is the internal structure schematic diagram of one embodiment Computer equipment.
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.
Describe in detail according to an embodiment of the invention before, it should be noted that, the embodiment described essentially consist in Value of the product acquisition methods, device, computer equipment and the step of storage medium correlation and the combination of system component.Therefore, institute Belong to system component and method and step is showed in position by ordinary symbol in the accompanying drawings, and only show The details related with understanding the embodiment of the present invention, so as not to because for have benefited from those of ordinary skill in the art of the present invention and Those obvious details of speech have obscured the disclosure.
Herein, such as left and right, upper and lower, front and rear, first and second etc relational terms are used merely to area Divide an entity or action and another entity or action, and not necessarily require or imply and is between this entity or action any Actual this relation or order.Term " comprising ", "comprising" or any other variant are intended to non-exclusive inclusion, by This make it that including the process of a series of elements, method, article or equipment not only includes these key elements, but also comprising not bright The other element really listed, or be elements inherent to such a process, method, article, or device.
Value of the product acquisition methods provided in the embodiment of the present invention can be applied to application environment as shown in Figure 1 In.Server 102 passes through network connection with terminal 104.Wherein, the quantity of terminal 104 can be multiple.Terminal 104 is to service Device 102 sends value of the product and obtains request, and server 102 obtains product information and user information after receiving request from request, Server 102 obtains value of the product combination table from the static region of local cache, and according to value of the product combination table from product Product information value and user information value are extracted in information and user information, searches initial product value corresponding thereto, service Device 102 is searched the regulation and control data to match in product information from the dynamic area of local cache and is carried out with being worth to initial product Initial product value after adjustment is returned to terminal 104 by adjustment, server 102.So as to directly read number from caching According to raising data reading performance using redundancy.
Following embodiments are illustrated by taking the server 102 that value of the product acquisition methods are applied in Fig. 1 as an example.But need It is noted that in practical application this method and not only limit be applied to above-mentioned server.
Referring to Fig. 2, Fig. 2 is the flow chart of the value of the product acquisition methods in one embodiment, this method specifically includes Following steps:
Step 210, the value of the product that receiving terminal is sent obtains request, and value of the product obtains in request and carries product information And user information.
At present, the product release of oneself is promoted and sold on the internet by more and more companies.User can be with Product is bought by the shops of company, selling agency, can also voluntarily net purchase product.Terminal can be user, shops, selling agency etc. The computer equipments such as used computer, or the intelligent mobile terminal such as mobile phone, tablet computer.
The value of many products is not that the configuration, it is necessary to according to the personal considerations of user and product is unified in fixation now Situation determines the final value of insurance products.Therefore, before user buys product, terminal is needed according to tool input by user Body information sends value of the product to server and obtains request, to determine the final price of product.For example, purchase laptop etc. During electronic product, the laptop of same model can provide a variety of software and hardware configurations so that user is selected and combined, The processors of a variety of same types, video card, memory size, the guarantee time limit are such as provided for user according to oneself being that demand carries out group Close.Also, different configuration combinations can also have different preferential advertising campaigns.Therefore, the final value of laptop needs Configuration combined situation and preferential situation etc. is considered to determine.And for example, with a insurance products, if different sexes, year Then required insurance expenses is target protection amount institute that different, identical insurers insures different for people's purchase in age, physical condition The insurance expenses needed is also different, and it is also different that insurer, which selects different mechanisms or the discount of Sales Channel purchase, therefore, is needed The value of final insurance products is determined according to the self information and product information of insurer.Terminal receives user or work Make user, the product information of personnel's input, and obtain value of the product inquiry instruction, terminal is according to the user information and production received Product information generation value of the product obtains request, and value of the product acquisition request is sent to server.Server receiving terminal is sent out The value of the product sent obtains request, and the product information and user information of corresponding product are obtained from request.
In one embodiment, the value of the product that terminal is sent obtains request and obtains request, product premium for product premium The product information and user information that insurance products are carried in request are obtained, with request server according to product information and user information Calculate the premium for the insurance products that user's needs are paid.Wherein, product information can include but is not limited to insurance kind code, product generation The information such as code, amount of insuring, insurance class, channel code;User information can include insurer's gender, the age, physical examination information, The information such as situation of being in danger.It should be noted that in other embodiments, value of the product obtains request and is not limited to insurance products The request of premium calculating or the expense computation requests of other products on sale, product information and user information are according to specific Product on sale and determine.
Step 220, value of the product combination table is obtained from the static data area of caching.
Local caching is divided into static data area and dynamic data area by server, and static number is stored in static data area Can be stored according to, static data area needs the frequency modified relatively low with the relevant supplemental characteristic of value of the product, static data, Data are relatively stable, and the renewal of static data is independently of dynamic data.
The static data of insurance products can include insurance kind table, short period insurance table, value of the product combination table etc., and terminal can root Corresponding insurance kind etc. is searched from insurance kind table according to product code.Multiple combinations information can be included in value of the product combination table to join Number, and save the one-to-one relationship of the value of information and initial product value of various combined information parameters.Server is from quiet Value of the product combination table is obtained in state data field.
For example, the combination parameter information in value of the product combination table includes age, gender, ensures the amount of money, the type of insurance, friendship Take mode, guarantee phase etc., refer to table 1, table 1 lists the value of information of the combination parameter of portioned product in value of the product combination table With the correspondence of value of the product.
Table 1:The value of information of the combination parameter of product and the mapping table of value of the product
Age Gender Ensure the amount of money The type of insurance Way to pay dues The guarantee phase Initial product is worth
53 years old Female 150000 Anti-cancer danger Year hands over 10 years 1140 yuan
50 years old Female 150000 Anti-cancer danger Year hands over 10 years 1050 yuan
50 years old Man 150000 Anti-cancer danger Year hands over 10 years 1140 yuan
50 years old Man 200000 Anti-cancer danger Year hands over 10 years 1520 yuan
As it can be seen from table 1 the value of information of wherein some or some combination parameters changes and this may result in product Initial product value changes, and different information values are also possibly corresponding to identical initial product value.
In one embodiment, the caching of server uses Redis (Remote Dictionary Servers) storages system System.In other embodiments, the caching of server can also use other storage systems.
Step 230, corresponding product information value is extracted from product information according to value of the product combination table.
Server obtains the combined information parameter in value of the product combination table, and combined information parameter includes product information parameter With user information parameter, product information parameter of the server in combined information parameter is extracted corresponding from product information Product information value.For example, the product information parameter of insurance products can include the type of insurance, ensure the amount of money, ensure time limit, channel Code etc..
In one embodiment, when extracting product information value, server is needed according to product information parameter to corresponding Product information carries out conversion process.For example, product information parameter is insurance class, and insurance codes are only existed in product information, Server can be searched and the corresponding insurance class of insurance codes from the insurance kind table of static data area.
Step 240, corresponding user information value is extracted from user information according to value of the product combination table.
User information parameter of the server in combined information parameter extracts corresponding user's letter from user information Breath value.For example, the user information parameter of insurance products can include user's gender, age, relation of insuring etc..
In one embodiment, when extracting user information value, server is needed according to user information parameter to corresponding User information carries out conversion process.For example, user information parameter is age range, and age of user is only existed in user information, Server can be searched and the corresponding age range of age of user, such as age of user from the age-control table of static data area For 38 years old, its age range was -40 years old 36 years old.
Step 250, searched from value of the product combination table corresponding with the product information value and user information value extracted first Beginning value of the product.
Server extracts product information value with after user information value, will extract from product information and user information Product information value be compared with user information value with the value of information in value of the product combination table, find out complete matched letter Breath value combines, and obtains corresponding initial product value.
Illustrate the method for matched and searched by taking the value of the product combination table in table 1 as an example.Refer to table 1, server can be with First filter out the information values of age-matched, then from the information values for wherein filtering out gender and matching, and so on, by Tapered small matching range, until finding complete matched information values, obtains corresponding initial product value.
Step 260, the regulation and control data to match with product information are searched from the dynamic data area of caching.
Stored in the dynamic data area of server buffer and calculate relevant regulation and control data with value of the product, regulate and control data packet Include adjustment computation rule of value of the product etc..Such as, according to the different to initial product value carries out rounding, decimal place four is given up of product Five calculating entered, according to the difference of Sales Channel, corresponding special discount calculating is carried out to the product of different channels purchase.
Since the marketing activity and marketing plan of product are constantly adjusting, the regulation and control number stored in dynamic data area According to also often modifying and adjust constantly according to management tactics, for static data area, in dynamic data area The frequency that data are modified is higher, and data are relatively unstable.Under normal circumstances, data and product code and channel code are regulated and controled Corresponding, server obtains product code and channel code from product information, and is searched and product generation from dynamic data area Code and the corresponding regulation and control data of channel code.
Step 270, initial product value is adjusted according to regulation and control data.
Since regulation and control data generally adjust computation rule, calculation formula etc., regulation and control data can include default adjustment Coefficient, can also include needing the parameter that bring into etc., if any regulation and control data need to bring initial product value into, also need to sometimes Corresponding parameter value is extracted from product information or in user information to bring into.
Whois lookup judges to be to after the regulation and control data to match with product information according to the regulation and control data found It is no to extract corresponding parameter value, if desired, then to bring the parameter value of extraction into regulation and control data, and initial product is worth and is carried out Adjustment;If need not, directly initial product value is adjusted according to the regulation and control data found.
Step 280, the initial product value after adjustment is returned into terminal.
Server is to obtaining final value of the product after initial product value adjustment, and by the initial product valency after adjustment Value returns to the terminal for sending request.
In the present embodiment, value of the product is calculated static state that is relevant and being often called, dynamic data by server All it is previously stored in the static data area and dynamic data area of caching, when terminal, which initiates value of the product, obtains request, service Device sends the product information carried in request according to terminal and user information obtains corresponding letter from the static data area of caching Breath value, and regulation and control data are obtained from the dynamic data area of caching according to product information, obtained according to the value of information and regulation and control data Final initial product value.So that when calling value of the product to calculate relevant data, can directly be read from caching Access evidence, improves data reading performance using redundancy, reduces the frequency searched from database and call data, can delay to avoid database The situation of machine, strengthens availability of the server under request of data high concurrent state, improves work efficiency.
In one embodiment, method further includes:When being found in the dynamic data area from caching and product information phase During the regulation and control data matched somebody with somebody, the inquiry record of the regulation and control data found is updated;Obtain and respectively regulate and control looking into for data in dynamic data area Consultation record, is ranked up each regulation and control data according to the inquiry record of each regulation and control data.
When server finds the regulation and control data to match from the dynamic data area of caching every time, the tune found is obtained The inquiry record of data is controlled, the inquiry times that the inquiry to the regulation and control data records are updated.
Server is adjusted the putting in order for regulation and control data in dynamic data area in preset time.The default time Can be specific time interval, such as 30 minutes, 1 it is small when, 2 it is small when.Preset time can also be that server is to caching The busy degree of system is monitored, and when monitoring server to caching system is in idle condition, startup of server is to dynamic number According to the sequence of the regulation and control data in area.The monitoring standard of specific busy degree can be the dynamic of caching in statistics preset time period The frequency that regulation and control data in state data field are queried, if the frequency of inquiry is less than predetermined threshold value, judges at caching system In idle condition.Preferably, the frequency that server arranges dynamic data area regulation and control data is not easy excessively, in order to avoid increase clothes The workload of business device, avoids causing the concurrently execution with data query work, reduces the work efficiency of data query work.
In the present embodiment, after reaching preset time, server obtains the inquiry of all regulation and control data in dynamic data area Record, specifically, inquiry record can include the time that each regulation and control data are queried every time, accumulative inquiry times etc..Service Device comes the regulation and control data more than inquiry times before dynamic data area according to the inquiry times of each regulation and control data, server, The regulation and control data that inquiry times are lacked are come behind dynamic data area, if the inquiry times of some regulation and control data are consistent, are obtained The query time that their the last times are queried is taken, the nearer regulation and control data of query time are come into forward position.At other In embodiment, server can also arrange the regulation and control data in dynamic data area according to other predetermined order rules, and It is not limited to the ordering rule described in the present embodiment.
In the present embodiment, when regulation and control data are queried every time, server carries out inquiry record to the regulation and control data, And preset time is recorded according to inquiry all regulation and control data in dynamic data area are ranked up, so as to implementing monitoring The enquiry frequency of each regulation and control data, to the regulation and control data carry out order adjustment in dynamic data area, to improve high frequency and use number According to reading efficiency.
In one embodiment, the method further includes:Believe when not found in the dynamic data area from caching with product During the matched regulation and control data of manner of breathing, the regulation and control data to match with product information are searched from database;The regulation and control that will be found In data write-in dynamic data area.
When server searches the regulation and control data to match less than the product information with acquisition from dynamic data area, service Device is searched from database.All static datas relevant with value of the product calculating and dynamic number are stored in database According to.Server searched from database with the regulation and control data of product information such as product code, channel code match, and continue into The step 270 that row is adjusted initial product value according to regulation and control data.
Server writes the regulation and control data found from database in dynamic data area, to be carried out to dynamic data area Renewal.Specifically, server searches the regulation and control number consistent with the enquiry frequency of regulation and control data to be written from dynamic data area According to, and the regulation and control data being written into are inserted at the position of the consistent regulation and control data of frequency.Preferably due to tune to be written It is nearest to control the query time of data, if regulation and control data are arranged from front to back according to the order of inquiry times from high to low, The regulation and control data being then written into are come before the consistent regulation and control data of frequency;Conversely, the regulation and control data being written into come Behind the consistent regulation and control data of frequency.In addition, server carries out the query time and inquiry times of the regulation and control data of write-in Record.
In the present embodiment, when being searched from caching less than corresponding regulation and control data, server is searched from database Data ensure being normally carried out for value of the product evaluation work, and the tune storehouse data write-in dynamic number that will be found from database It is according to the regulation and control data in area, made in dynamic data area in dynamic renewal, to meet the newest query demand of user.
In one embodiment, the regulation and control data found are write to the step in dynamic data area, including:Work as dynamic number When expiring according to the memory space in area, the regulation and control data being located in dynamic data area at preset order are deleted;According to dynamic data area In the inquiry records of each regulation and control data the regulation and control data found are write into dynamic data area.
Before the regulation and control data found are write dynamic data area by server, the storage of the dynamic data area of caching is judged Whether space full, when the memory space in dynamic data area less than when, will regulate and control according to the method described in above-described embodiment In data write-in dynamic data area.
When the memory space in dynamic data area is expired, the regulation and control in whois lookup dynamic data area at preset order Data, and be deleted.In one embodiment, server, which obtains, regulates and controls putting in order for data in current dynamic data area, If regulating and controlling data is arranged from front to back according to the order of inquiry times from high to low, it is last dynamic data area will to be come The data in face are deleted;Conversely, server deletes the data for coming dynamic data area foremost.
In one embodiment, before data deletion is carried out, server obtains dynamic data area last time progress data row The time of sequence, and the time interval of sorting time and current time is calculated, determined whether to deleting data according to time interval Regulation and control data are ranked up before.For example, when the time interval of sorting time and current time exceedes and is ranked up default Between be spaced half when, then be ranked up, after sequence again carry out regulation and control data deletion, otherwise, not log-on data sequence step Suddenly, the regulation and control data at preset order are directly deleted.
After server deletes the regulation and control data at preset order, searched from dynamic data area and regulation and control number to be written According to the consistent regulation and control data of enquiry frequency, and the regulation and control data being written into are inserted into the position of the consistent regulation and control data of frequency Place.Preferably due to the query time of regulation and control data to be written is nearest, if regulation and control data be according to inquiry times from high to low Order arranged from front to back, then the regulation and control data being written into are come before the consistent regulation and control data of frequency;Conversely, The regulation and control data being written into are come behind the consistent regulation and control data of frequency.In addition, server is to the regulation and control data of write-in Query time and inquiry times are recorded.
In the present embodiment, when the memory space of dynamic data area is expired, server regulates and controls according in dynamic data area Data put in order, and the regulation and control data at preset order are deleted, and the regulation and control data insertion dynamic data area being written into Corresponding position, to be updated to dynamic data area, ensure that the data that store are newest are queried in dynamic data area Data.
In one embodiment, the method further includes:When detecting that the in database first regulation and control data are updated, Obtain the corresponding product information of the first regulation and control data;The second regulation and control number corresponding with product information is searched from dynamic data area According to, and the second regulation and control data are replaced with to the first regulation and control data after renewal.
Due to the adjustment of company management sales tactics and product itself, can also be carried out with the relevant data of value of the product Corresponding adjustment.Regulation and control data after adjustment and data update instruction are sent to server by the terminal of each produce sector, are taken Business device, which receives the regulation and control data after adjustment and obtains in data update instruction, regulates and controls the corresponding product information of data, is believed according to product Breath searches corresponding first regulation and control data from database, and the first regulation and control data are updated.
Server is searched and whether there is and product in dynamic data area according to the product information of the first of renewal the regulation and control data The corresponding second regulation and control data of information, when whois lookup is to the corresponding second regulation and control data, are then adjusted find second Control data replace with the first regulation and control data after renewal.In one embodiment, if server is searched not from dynamic data area To corresponding regulation and control data, then by the first regulation and control data after renewal according in write-in dynamic data area.In one embodiment, When with the addition of newly-increased regulation and control data in database, the regulation and control data increased newly in database are write dynamic data area by server In.Specific write-in rule refer to above-described embodiment, and details are not described herein.Under normal circumstances, the adjustment or more of data is regulated and controled New is due to that merchandising or new product are reached the standard grade, and therefore, the probability that corresponding regulation and control data are queried also can be improved accordingly, will more In the dynamic data area of new, newly-increased data write-in caching, it can be made quickly to be read, improve the efficiency of data query.
In one embodiment, when the static data stored in database is updated or has new static data addition When, the data in static data area in caching are synchronized renewal and addition by server.So as to ensure the number stored in caching According to the accuracy calculated for newest data, guarantee value of the product.
In one embodiment, server timing detection caching working status, as server every 30s detect once, If server detects buffer status exception, alarm mail is sent to administrator terminal.When caching is in abnormal state In, if server receives value of the product acquisition request, server reads static data and dynamic directly from database Data.
When monitoring server to buffer status recovers normal, the dynamic data in detection caching whether there is missing, if There are missing, then by the dynamic number of regulation and control data write-in caching newest being queried in database and suitable with missing quantity According in area, after the state recovery normally of caching, when server receives value of the product acquisition request again, regulated and controled from caching Data query.
Referring to Fig. 3, Fig. 3 is the schematic diagram of the value of the product acquisition device in an embodiment, which includes:
Request receiving module 310, obtains request, value of the product is obtained in request for the value of the product that receiving terminal is sent Carry product information and user information.
Table acquisition module 320 is worth, for obtaining value of the product combination table from the static data area of caching.
Product information value extraction module 330, for extracting corresponding product from product information according to value of the product combination table The value of information.
User information value extraction module 340, for extracting corresponding use from user information according to value of the product combination table The family value of information.
Initial value searching module 350, for being searched from value of the product combination table and the product information value of extraction and user The corresponding initial product value of the value of information.
Regulate and control data search module 360, for searching the tune to match with product information from the dynamic data area of caching Control data.
Numerical value adjusts module 370, for being adjusted according to regulation and control data to initial product value.
Numerical value returns to module 380, for the initial product value after adjustment to be returned to terminal.
In one embodiment, described device can also include:
Update module is recorded, the regulation and control number to match with product information is found from the dynamic data area of caching for working as According to when, update the regulation and control data found inquiry record.
Data sorting module, for obtaining the inquiry record of respectively regulation and control data in dynamic data area, according to each regulation and control data Inquiry record to it is each regulation and control data be ranked up.
In one embodiment, described device can also include:
Data call module, the regulation and control to match with product information are not found for working as from the dynamic data area of caching During data, the regulation and control data to match with product information are searched from database.
Data write. module, the regulation and control data for that will find are write in dynamic data area.
In one embodiment, Data write. module can also include:
Data removing module, for when the memory space of dynamic data area is expired, deleting and being located in dynamic data area in advance If the regulation and control data at order.
Data insertion module, for according to the regulation and control number that respectively the inquiry record of regulation and control data will be found in dynamic data area According to write-in into dynamic data area.
In one embodiment, described device can also include:
Data message acquisition module, for when detecting that the in database first regulation and control data are updated, obtaining first Regulate and control the corresponding product information of data.
Data replacement module, for searching the second regulation and control data corresponding with product information from dynamic data area, and will Second regulation and control data replace with the first regulation and control data after renewal.
Specific on value of the product acquisition device limits the limit that may refer to above for value of the product acquisition methods Fixed, details are not described herein.Modules in the said goods value capture device can fully or partially through software, hardware and its Combine to realize.Above-mentioned each module can in the form of hardware be embedded in or independently of in the processor in computer equipment, can also It is stored in a software form in the memory in computer equipment, in order to which processor calls execution above modules corresponding Operation.The processor can be central processing unit (CPU), microprocessor, microcontroller etc..The said goods value capture device can In the form of being embodied as a kind of computer program.
The embodiment of the present invention proposes a kind of computer equipment, which includes a series of be stored on memory Computer program, when computer program is executed by processor, it is possible to achieve the product valency that each embodiment of the present invention proposes Value-acquiring method, in certain embodiments, the specific operation realized based on the computer program each several part.Refering to Fig. 4, carry For a kind of computer equipment, including connected by system bus memory, processor, operating system, wherein, the processor use In providing calculating and control ability, the operation of whole computer equipment is supported.Memory is used to store data, program code etc..
At least one computer executable program is stored on the memory, which can be held by processor OK, to realize the value of the product acquisition methods provided in each embodiment of the application.The computer executable program can be by processor It is performed, for realizing a kind of value of the product acquisition methods that above-mentioned each embodiment is provided.It is interior in computer equipment Memory provides the fortune of cache for the operating system in non-volatile memory medium, database and computer executable program Row environment.
Wherein, following steps are realized during processor executive program:The value of the product that receiving terminal is sent obtains request, product Product information and user information are carried in value capture request;Value of the product combination table is obtained from the static data area of caching; Corresponding product information value is extracted from product information according to value of the product combination table;Believed according to value of the product combination table from user Corresponding user information value is extracted in breath;The product information value and user information value with extraction are searched from value of the product combination table Corresponding initial product value;The regulation and control data to match with product information are searched from the dynamic data area of caching;According to tune Control data are adjusted initial product value;Initial product value after adjustment is returned into terminal.
In one of the embodiments, following steps can also be realized during processor executive program:When the dynamic from caching When the regulation and control data to match with product information are found in data field, the inquiry record of the regulation and control data found is updated;Obtain The inquiry record of respectively regulation and control data in dynamic data area is taken, each regulation and control data are arranged according to the inquiry record of each regulation and control data Sequence.
In one of the embodiments, following steps can also be realized during processor executive program:When the dynamic from caching When not finding the regulation and control data to match with product information in data field, search what is matched with product information from database Regulate and control data;The regulation and control data found are write in dynamic data area.
In one of the embodiments, following steps can also be realized during processor executive program:When dynamic data area When memory space is expired, the regulation and control data being located in dynamic data area at preset order are deleted;According to respectively being adjusted in dynamic data area The inquiry record of control data writes the regulation and control data found into dynamic data area.
In one of the embodiments, following steps can also be realized during processor executive program:When detecting database In the first regulation and control data when being updated, obtain the corresponding product information of the first regulation and control data;From dynamic data area search with The corresponding second regulation and control data of product information, and the second regulation and control data are replaced with to the first regulation and control data after renewal.
The above-mentioned restriction for computer equipment may refer to limit above for the specific of value of the product acquisition methods, Details are not described herein.
Please continue to refer to Fig. 4, a kind of computer non-volatile memory medium is also provided, is stored thereon with computer program, Non-volatile memory medium as shown in Figure 4, wherein, which realizes following steps when being executed by processor:Receiving terminal The value of the product of transmission obtains request, and value of the product, which obtains, carries product information and user information in request;From the static state of caching Value of the product combination table is obtained in data field;Corresponding product information is extracted from product information according to value of the product combination table Value;Corresponding user information value is extracted from user information according to value of the product combination table;Searched from value of the product combination table Initial product value corresponding with product information value and the user information value of extraction;Search and produce from the dynamic data area of caching The regulation and control data of product information match;Initial product value is adjusted according to regulation and control data;By the initial product after adjustment Value returns to terminal.
In one of the embodiments, following steps can also be realized when which is executed by processor:When from caching When the regulation and control data to match with product information are found in dynamic data area, the inquiry note of the regulation and control data found is updated Record;The inquiry record of each regulation and control data in dynamic data area is obtained, is recorded according to the inquiry of each regulation and control data to each regulation and control data It is ranked up.
In one of the embodiments, following steps can also be realized when which is executed by processor:When from caching When not finding the regulation and control data to match with product information in dynamic data area, searched and product information phase from database The regulation and control data matched somebody with somebody;The regulation and control data found are write in dynamic data area.
In one of the embodiments, following steps can also be realized when which is executed by processor:Work as dynamic data When the memory space in area is expired, the regulation and control data being located in dynamic data area at preset order are deleted;According in dynamic data area The inquiry record of each regulation and control data writes the regulation and control data found into dynamic data area.
In one of the embodiments, following steps can also be realized when which is executed by processor:When detecting number When being updated according to the first regulation and control data in storehouse, the corresponding product information of the first regulation and control data is obtained;Looked into from dynamic data area The second regulation and control data corresponding with product information are looked for, and the second regulation and control data are replaced with to the first regulation and control data after renewal.
The above-mentioned restriction for computer-readable recording medium may refer to above for value of the product acquisition methods Specific to limit, details are not described herein.
One of ordinary skill in the art will appreciate that realize all or part of flow in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the program can be stored in a non-volatile computer and can be read In storage medium, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, the storage is situated between Matter can be magnetic disc, CD, read-only memory (Read-Only Memory, ROM) etc..
Each technical characteristic of embodiment described above can be combined arbitrarily, to make description succinct, not to above-mentioned reality Apply all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited In contradiction, the scope that this specification is recorded all is considered to be.
Embodiment described above only expresses the several embodiments of the present invention, its description is more specific and detailed, but simultaneously Cannot therefore it be construed as limiting the scope of the patent.It should be pointed out that come for those of ordinary skill in the art Say, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to the protection of the present invention Scope.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.

Claims (10)

1. a kind of value of the product acquisition methods, it is characterised in that the described method comprises the following steps:
The value of the product that receiving terminal is sent obtains request, and the value of the product, which obtains, carries product information and user's letter in request Breath;
Value of the product combination table is obtained from the static data area of caching;
Corresponding product information value is extracted from the product information according to the value of the product combination table;
Corresponding user information value is extracted from the user information according to the value of the product combination table;
Initial product valency corresponding with product information value and the user information value extracted is searched from value of the product combination table Value;
The regulation and control data to match with the product information are searched from the dynamic data area of caching;
Initial product value is adjusted according to the regulation and control data;
Initial product value after adjustment is returned into the terminal.
2. according to the method described in claim 1, it is characterized in that, the method further includes:
When finding the regulation and control data to match with the product information in the dynamic data area from the caching, renewal is searched The inquiry record of the regulation and control data arrived;
The inquiry record of respectively regulation and control data in the dynamic data area is obtained, is recorded according to the inquiry of each regulation and control data to institute Each regulation and control data are stated to be ranked up.
3. according to the method described in claim 2, it is characterized in that, the method further includes:
When not finding the regulation and control data to match with the product information in the dynamic data area from the caching, from data The regulation and control data to match with the product information are searched in storehouse;
The regulation and control data found are write in the dynamic data area.
It is 4. according to the method described in claim 3, it is characterized in that, described that the regulation and control data found write-in is described dynamic Step in state data field, including:
When the memory space of the dynamic data area is expired, the regulation and control being located in the dynamic data area at preset order are deleted Data;
According to respectively the inquiry record of regulation and control data writes the regulation and control data found to described in the dynamic data area In dynamic data area.
5. according to the method described in claim 3, it is characterized in that, the method further includes:
When detecting that the in the database first regulation and control data are updated, the corresponding product of the first regulation and control data is obtained Information;
The second regulation and control data corresponding with the product information are searched from the dynamic data area, and regulate and control number by described second Regulate and control data according to replace with after updating first.
6. a kind of value of the product acquisition device, it is characterised in that described device includes:
Request receiving module, obtains request, the value of the product obtains to be taken in request for the value of the product that receiving terminal is sent Band product information and user information;
Table acquisition module is worth, for obtaining value of the product combination table from the static data area of caching;
Product information value extraction module, for extracting corresponding product from the product information according to the value of the product combination table The value of information;
User information value extraction module, for extracting corresponding use from the user information according to the value of the product combination table The family value of information;
Initial value searching module, for searching the product information value and user information with extraction from value of the product combination table It is worth corresponding initial product value;
Regulate and control data search module, for searching the regulation and control number to match with the product information from the dynamic data area of caching According to;
Numerical value adjusts module, for being adjusted according to the regulation and control data to initial product value;
Numerical value returns to module, for the initial product value after adjustment to be returned to the terminal.
7. device according to claim 6, it is characterised in that described device further includes:
Update module is recorded, the tune to match with the product information is found from the dynamic data area of the caching for working as When controlling data, the inquiry record of the regulation and control data found is updated;
Data sorting module, for obtaining the inquiry record of respectively regulation and control data in the dynamic data area, according to each regulation and control The inquiry record of data is ranked up each regulation and control data.
8. device according to claim 7, it is characterised in that described device further includes:
Data call module, does not find what is matched with the product information for working as from the dynamic data area of the caching When regulating and controlling data, the regulation and control data to match with the product information are searched from database;
Data write. module, for the regulation and control data found to be write in the dynamic data area.
9. a kind of computer equipment, including memory, processor and storage are on a memory and the meter that can run on a processor Calculation machine program, it is characterised in that the processor realizes claim 1 to 5 any one the method when performing described program The step of.
10. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that the program is by processor The step of claim 1 to 5 any one the method is realized during execution.
CN201711240711.6A 2017-11-30 2017-11-30 Product value acquisition method and device, computer equipment and storage medium Active CN108009245B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711240711.6A CN108009245B (en) 2017-11-30 2017-11-30 Product value acquisition method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711240711.6A CN108009245B (en) 2017-11-30 2017-11-30 Product value acquisition method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN108009245A true CN108009245A (en) 2018-05-08
CN108009245B CN108009245B (en) 2021-02-26

Family

ID=62055240

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711240711.6A Active CN108009245B (en) 2017-11-30 2017-11-30 Product value acquisition method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN108009245B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020119111A1 (en) * 2018-12-13 2020-06-18 平安医疗健康管理股份有限公司 Insurance premium calculation method for non-disease treatment program, device, apparatus, and storage medium
CN112418827A (en) * 2020-12-16 2021-02-26 平安健康保险股份有限公司 Product scheme configuration method and device, computer equipment and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1339747A (en) * 2000-08-17 2002-03-13 国际商业机器公司 System and method for high speed buffer storage file information
CN101090401A (en) * 2007-05-25 2007-12-19 金蝶软件(中国)有限公司 Data buffer store method and system at duster environment
CN101246460A (en) * 2008-03-10 2008-08-20 华为技术有限公司 Caching data writing system and method, caching data reading system and method
CN101609432A (en) * 2009-07-13 2009-12-23 中国科学院计算技术研究所 Shared buffer memory management system and method
CN102185725A (en) * 2011-05-31 2011-09-14 北京星网锐捷网络技术有限公司 Cache management method and device as well as network switching equipment
US8495286B2 (en) * 2009-12-10 2013-07-23 International Business Machines Corporation Write buffer for improved DRAM write access patterns
CN105335402A (en) * 2014-07-23 2016-02-17 阿里巴巴集团控股有限公司 Search method, index data generation method and device on the basis of static Cache
CN107291920A (en) * 2017-06-28 2017-10-24 南京途牛科技有限公司 A kind of air ticket query caching method
CN107402982A (en) * 2017-07-07 2017-11-28 阿里巴巴集团控股有限公司 Data write-in, data matching method, device and computing device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1339747A (en) * 2000-08-17 2002-03-13 国际商业机器公司 System and method for high speed buffer storage file information
CN101090401A (en) * 2007-05-25 2007-12-19 金蝶软件(中国)有限公司 Data buffer store method and system at duster environment
CN101246460A (en) * 2008-03-10 2008-08-20 华为技术有限公司 Caching data writing system and method, caching data reading system and method
CN101609432A (en) * 2009-07-13 2009-12-23 中国科学院计算技术研究所 Shared buffer memory management system and method
US8495286B2 (en) * 2009-12-10 2013-07-23 International Business Machines Corporation Write buffer for improved DRAM write access patterns
CN102185725A (en) * 2011-05-31 2011-09-14 北京星网锐捷网络技术有限公司 Cache management method and device as well as network switching equipment
CN105335402A (en) * 2014-07-23 2016-02-17 阿里巴巴集团控股有限公司 Search method, index data generation method and device on the basis of static Cache
CN107291920A (en) * 2017-06-28 2017-10-24 南京途牛科技有限公司 A kind of air ticket query caching method
CN107402982A (en) * 2017-07-07 2017-11-28 阿里巴巴集团控股有限公司 Data write-in, data matching method, device and computing device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020119111A1 (en) * 2018-12-13 2020-06-18 平安医疗健康管理股份有限公司 Insurance premium calculation method for non-disease treatment program, device, apparatus, and storage medium
CN112418827A (en) * 2020-12-16 2021-02-26 平安健康保险股份有限公司 Product scheme configuration method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN108009245B (en) 2021-02-26

Similar Documents

Publication Publication Date Title
US10019184B2 (en) Amortized snapshots
US20170116652A1 (en) Revenue management system and revenue management method
US9858326B2 (en) Distributed data warehouse
US7437323B1 (en) Method and system for spot pricing via clustering based demand estimation
US20080172422A1 (en) Method and system for retrieving advertisement information
US20150347482A1 (en) Optimizing a content index for target audience queries
US8515897B2 (en) Automatically generating reports matching user interests represented in a dynamically adjusted user interest analytic model
CN106649349A (en) Method, device and system for data caching, applicable to game application
WO2006096768A2 (en) Enhanced online advertising system
CN107291779B (en) Cache data management method and device
US20090210409A1 (en) Increasing online search engine rankings using click through data
US9798760B2 (en) Application retention metrics
US11048423B2 (en) Method and system for synchronizing requests related to key-value storage having different portions
US20110225288A1 (en) Method and system for efficient storage and retrieval of analytics data
US9275125B1 (en) System for organizing data from a plurality of users to create individual user profiles
US20220138203A1 (en) Method and system for searching a key-value storage
US20210185000A1 (en) Dynamic Email Content Engine
US20100131338A1 (en) Method and system for managing categories of an electronic commerce website
CN108009245A (en) Value of the product acquisition methods, device, computer equipment and storage medium
CN108268660A (en) A kind of customer data recommends method, server and storage medium
CN103069418B (en) Information provider unit, information providing method, program and information recording carrier
US11206305B1 (en) Latency minimization in datacenters
US11537554B2 (en) Analysis of streaming data using deltas and snapshots
CN103778064A (en) Data management method and device
WO2011008282A2 (en) Evaluation of website visitor based on value grade

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
GR01 Patent grant
GR01 Patent grant