Method, device and computer-readable recording medium for order processing
Technical field
Embodiments of the present invention are related to Computer Applied Technology field, more specifically, embodiments of the present invention are related to
Method, device and computer-readable recording medium for order processing.
Background technology
This part is it is intended that the embodiments of the present invention stated in claims provide background or context.Herein
Description in being included in this part because just do not recognize it is prior art.
With the continuous development of network technology, network has come into the life of people gradually, and shopping at network also becomes increasingly
Popularization.In shopping at network, user is generally passed through into the instruments such as browser, app, commodity are bought in shopping website, generate order
Process be referred to as lower single process.
As a rule, lower single process is typically complex, it is necessary to the step of user operates is generally more, and each descends single current
Can not be interacted between journey, the requirement of real-time to data is higher, for example, need real-time query big during user places an order
The data of amount, and the related data that user places an order will be stored in database.
In related art, when lower single process starts, order institute is disposably found from database in need
Data, and there is local cache or third party's caching, in lower single process, A the step of need to use data for first should
Step A read the order from caching needed for all data, after step A is finished, if B is also the step of after the step
Certain some data is used, includes all data transfers to step B, the i.e. return value in the corresponding codes of step A by step A
Above-mentioned all data, as the input value of the corresponding codes of step B.After stepb, if step C will also be using certain some
All data transfers include above-mentioned all numbers to step C, the i.e. return value in the corresponding codes of step B by data by step B
According to as the input value of the corresponding codes of step C.If the step of after step C, D need not use any data, step C
Step D need not be transferred data to, and if E needs some data the step of after step D, then by step C by above-mentioned all numbers
According to passing to step E.Then the digital independent of each step is carried out successively in the manner described above with transmission logic in order.
The content of the invention
But, in above-mentioned correlation technique be used for order processing mode, for example it is assumed that step A, B, C may only need to it is whole
A part of data in all data needed for individual order, and all data are not needed, but still need to read all data simultaneously
Transmitted, caused lower single process response relatively slowly, the lower single process number that can be covered in the unit interval can be reduced, order processing efficiency
Lowly.Additionally, if a certain step does not need data, such as above-mentioned steps D at the beginning, but it is follow-up due to application logic Modification
The need for, subsequently need some data, then modified necessary not only for the code logic to step D, in addition it is also necessary to code C, E
Logic modify, code revision amount is huge, and the construction cycle is long, the problem that cannot be estimated easily is produced, so that system
Stability is not high.
Therefore, a kind of improved method and apparatus for order processing are highly desirable to, to avoid largely changing code, contracting
Short construction cycle, the increase stability of a system and raising order processing efficiency.
In the present context, embodiments of the present invention are expected to provide a kind of method and apparatus for order processing.
In the first aspect of embodiment of the present invention, there is provided a kind of method for order processing, including:Under
The operating procedure of single process carries out data query successively, will inquire about the data that obtain be stored in it is only for the lower single process distribution
In vertical spatial cache;After the lower single process terminates, by the data dump in the independent spatial cache.
In one embodiment of the invention, based on aforementioned schemes, should successively be carried out according to the operating procedure of lower single process
During data query, inquired about first from the independent spatial cache.
In another embodiment of the invention, based on aforementioned schemes, this will inquire about the data that obtain and be stored in as under described
The independent spatial cache of single process distribution includes:The new data obtained according to the inquiry of the operating procedure of lower single process is stored in
For in the independent spatial cache of the lower single process distribution.
In yet another embodiment of the present invention, based on aforementioned schemes, the independent caching distributed by the lower single process
Space is the caching of thread-level.
It is that the independent caching of the lower single process distribution is empty based on aforementioned schemes in yet another embodiment of the present invention
Between include:It is the independent spatial cache that the lower single process is distributed by specifying caching initial address.
It is that the independent caching of the lower single process distribution is empty based on aforementioned schemes in yet another embodiment of the present invention
Between include:Type according to the lower single process determines the size of allocation space, and the size according to the allocation space is described
The independent spatial cache of lower single process distribution.
In yet another embodiment of the present invention, based on aforementioned schemes, according to the lower single process generation order, cancellation
The corresponding order of the lower single process or after terminating the lower single process, by the data dump in the independent spatial cache.
In yet another embodiment of the present invention, based on aforementioned schemes, the operating procedure is included for inquiring about price
Step, for inquiring about stock the step of, and/or the step of for inquiring about advertising campaign.
It is that the lower single process distributes independent spatial cache based on aforementioned schemes in yet another embodiment of the present invention
Also include:Set in the setting subregion of the independent spatial cache at least one flag respectively with the lower single process institute
Need data correspondence;
When operating procedure according to lower single process carries out data query successively, inquired about first from the independent spatial cache
Including:When operating procedure according to lower single process carries out data query successively, the corresponding flag of data to be checked is first looked for,
Determine whether to inquire about the data to be checked from the independent spatial cache according to the identification information in the flag searched.
In yet another embodiment of the present invention, based on aforementioned schemes, will be inquired about according to the operating procedure of lower single process
To new data be stored in the independent spatial cache for the lower single process distribution after also include:To new data correspondence
Flag on identification information be configured, to allow described in operating procedure below inquire about from the independent spatial cache
New data.
In yet another embodiment of the present invention, based on aforementioned schemes, methods described also includes:In database is monitored
Data when changing, the identification information in the corresponding flag of the data changed to this is configured, to prohibit
Only operating procedure below inquires about the data for changing from the independent spatial cache.
In yet another embodiment of the present invention, based on aforementioned schemes, methods described also includes:It is empty in the independent caching
Between setting subregion at least one flag be set also include with data are corresponding needed for the lower single process respectively:Described
At least one advertising campaign information, at least one advertising campaign are also stored in second setting subregion of independent spatial cache
Information corresponds to out-of-service time and at least one failure parameter respectively, when reaching the advertising campaign information corresponding out-of-service time, will
The corresponding corresponding identification information of at least one failure parameter is configured, to forbid operating procedure below from the independence
At least one failure parameter is inquired about in spatial cache.
In yet another embodiment of the present invention, based on aforementioned schemes, in the corresponding mark letter of the data to changing
Breath or the corresponding identification information of failure parameter also include after being configured:Prompt message is sent to client.
In the second aspect of embodiment of the present invention, there is provided a kind of device for order processing, including:Data are looked into
Ask and buffer unit, data query is carried out successively for the operating procedure according to lower single process, the data storage for obtaining will be inquired about
To in the independent spatial cache for the lower single process distribution;Data dump unit, for after the lower single process terminates, inciting somebody to action
Data dump in the independent spatial cache.
In another embodiment of the present invention, based on aforementioned schemes, the data query is used for buffer unit:According to
When the operating procedure of lower single process carries out data query successively, inquired about first from the independent spatial cache.
In yet another embodiment of the present invention, based on aforementioned schemes, the data query is used for buffer unit:Will be according to
The new data that the operating procedure inquiry of lower single process is obtained is stored in the independent spatial cache for the lower single process distribution.
In yet another embodiment of the present invention, based on aforementioned schemes, the data query is used for buffer unit:For described
The independent spatial cache of lower single process assigned thread level.
In yet another embodiment of the present invention, based on aforementioned schemes, the data query is used for buffer unit:By referring to
Surely caching initial address is the independent spatial cache of the lower single process distribution.
In yet another embodiment of the present invention, based on aforementioned schemes, the data query is used for buffer unit:According to institute
The type for stating lower single process determines the size of allocation space, and the size according to the allocation space is the lower single process distribution
Independent spatial cache.
In yet another embodiment of the present invention, based on aforementioned schemes, the data dump unit is used for:According under described
Single process generation order, cancel the corresponding order of the lower single process or terminate the lower single process after, independently delay described
Deposit the data dump in space.
In yet another embodiment of the present invention, based on aforementioned schemes, the operating procedure includes the step for inquiring about price
Suddenly, for inquiring about stock the step of, and/or the step of for inquiring about advertising campaign.
In yet another embodiment of the present invention, based on aforementioned schemes, the data query is additionally operable to buffer unit:
Set in the setting subregion of the independent spatial cache at least one flag respectively with the lower single process
Required data correspondence;
When operating procedure according to lower single process carries out data query successively, the corresponding mark of data to be checked is first looked for
Position, determines whether to inquire about the number to be checked from the independent spatial cache according to the identification information in the flag searched
According to.
In yet another embodiment of the present invention, based on aforementioned schemes, the data query is additionally operable to buffer unit:It is right
Identification information in the corresponding flag of the new data is configured, to allow operating procedure below from the independent caching
The new data is inquired about in space.
In yet another embodiment of the present invention, based on aforementioned schemes, the data query is additionally operable to buffer unit:When
When monitoring that the data in database change, the identification information in the corresponding flag of the data changed to this
It is configured, to forbid operating procedure below that the data for changing are inquired about from the independent spatial cache.
In yet another embodiment of the present invention, based on aforementioned schemes, the data query is additionally operable to buffer unit:
At least one advertising campaign information, at least one promotion are also stored in second setting subregion of the independent spatial cache
Action message corresponds to out-of-service time and at least one failure parameter respectively, is reached when the advertising campaign information corresponding out-of-service time
When, the corresponding corresponding identification information of at least one failure parameter is configured, to forbid operating procedure below from institute
State and inquire about at least one failure parameter in independent spatial cache.
In yet another embodiment of the present invention, based on aforementioned schemes, the data query is additionally operable to buffer unit:
After the corresponding identification information of data or the corresponding identification information of failure parameter to changing are configured, to client
Send prompt message.
In the third aspect of embodiment of the present invention, there is provided a kind of computer-readable recording medium, it is stored thereon with
Computer program, the program is when executed by realizing the method as described in any one of first aspect.
The method and apparatus for order processing according to embodiment of the present invention, walk according to the operation of lower single process
Suddenly data query is carried out successively, be stored in the independent spatial cache for the lower single process distribution, can avoid a large amount of modifications
Code, shortens the construction cycle, can significantly increase the stability of a system, can improve order processing efficiency, is that user brings more preferably
Experience.
Brief description of the drawings
Detailed description below, above-mentioned and other mesh of exemplary embodiment of the invention are read by reference to accompanying drawing
, feature and advantage will become prone to understand.In the accompanying drawings, if showing by way of example, and not by way of limitation of the invention
Dry implementation method, wherein:
Fig. 1 schematically shows a kind of flow chart of the lower single process shown in application scenarios;
Fig. 2 schematically shows the flow chart of the lower single process shown in another application scenarios;
Fig. 3 schematically shows the flow chart of the method for order processing according to an embodiment of the invention;
Fig. 4 schematically shows the block diagram of the device for order processing according to an embodiment of the invention.
In the accompanying drawings, identical or corresponding label represents identical or corresponding part.
Specific embodiment
Principle of the invention and spirit are described below with reference to some illustrative embodiments.It should be appreciated that providing this
A little implementation methods are used for the purpose of better understood when those skilled in the art and then realizing the present invention, and not with any
Mode limits the scope of the present invention.Conversely, these embodiments are provided so that the disclosure is more thorough and complete, and energy
It is enough that the scope of the present disclosure is intactly conveyed into those skilled in the art.
Art technology technical staff knows, embodiments of the present invention can be implemented as a kind of system, device, equipment,
Method or computer program product.Therefore, the disclosure can be implemented as following form, i.e.,:It is complete hardware, complete soft
Part (including firmware, resident software, microcode etc.), or the form that hardware and software is combined.
According to the embodiment of the present invention, it is proposed that a kind of method and apparatus for order processing.
Herein, it is to be understood that the involved term flow that places an order represents user by browser, the work such as app
Tool, commodity are bought in shopping website, generate the process of order.
Additionally, any number of elements in accompanying drawing is used to example and unrestricted, and any name is only used for distinguishing,
Without any limitation.
Below with reference to some representative embodiments of the invention, principle of the invention and spirit are explained in detail.
Summary of the invention
The inventors discovered that, the mode for order processing of the prior art, order processing inefficiency, system stabilization
Property is not high.
Therefore, embodiments of the present invention provide the method and apparatus for order processing, according to the behaviour of lower single process
Make step carries out data query successively, and will inquire about the data for obtaining and be stored in is the independent spatial cache of the lower single process distribution
In;After the lower single process terminates, by the data dump in the independent spatial cache.So that code revision amount is reduced, plus
The strong maintainable and readability of code.In addition, in each step of lower single process, the number for each needing is extracted by step
According to, the time of the requirements of process that places an order can be reduced, improve throughput.
After general principle of the invention is described, lower mask body introduces various non-limiting embodiment party of the invention
Formula.
Application scenarios overview
Scene one and two is to can be applied to two exemplary application scenes therein, it is easy to understood, application described herein
Scene is only exemplary, rather than limitation of the present invention.
Scene one, the flow chart that a kind of lower single process shown in application scenarios is schematically shown such as Fig. 1, its lower single current
Journey include operating procedure S110, into single product page;Operating procedure S120, purchase;Operating procedure S130, registration are logged in;Operation step
Confirmation is filled in and bought to rapid S140, distribution information;Operating procedure S150, payment.
Scene two, the flow chart that lower single process shown in another application scenarios is schematically shown such as Fig. 2, it places an order
Flow include operating procedure S210, into single product page;Commodity are put into shopping cart by operating procedure S220, click shopping car, if after
Continuous shopping enters operating procedure S230, if not continuing shopping enters operating procedure S240;Operating procedure S230, continuation are done shopping, and are returned
Return operating procedure S210;Operating procedure S240, into cart page;Operating procedure S250, registration are logged in;Operating procedure
Confirmation is filled in and bought to S260, distribution information;Operating procedure S270, single payment;And operating procedure S280, payment.
Illustrative methods
With reference to the application scenarios of Fig. 1-2, it is described with reference to Figure 3 according to exemplary embodiment of the invention for ordering
The method of single treatment.It should be noted that above-mentioned application scenarios are for only for ease of and understanding spirit and principles of the present invention and showing
Go out, embodiments of the present invention are unrestricted in this regard.Conversely, embodiments of the present invention can apply to it is applicable
Any scene.
Fig. 3 schematically shows the flow chart of the method for order processing according to embodiment of the present invention.The method can
Be applied to previously described application scenarios and in shopping website server load service end perform, but the method applied field
Scape not limited to this.
As shown in figure 3, in step S310, data query is carried out successively according to the operating procedure of lower single process, will inquire about
The data for obtaining are stored in the independent spatial cache for the lower single process distribution.
In step s 320, after the lower single process terminates, by the data dump in the independent spatial cache.
For example, any lower single process of the user using scene one or scene two described in any one is realized carrying out one to certain commodity
During secondary buying behavior, that is, correspond to a lower single process.Server distributes independent spatial cache A for the lower single process, for each
Operating procedure, such as either step in operating procedure S110-S150 described in scene one, or the operating procedure described in scene two
Either step in S210 to S280, if operating procedure need to inquire about data, will need the data of inquiry according to step successively
It is stored in the independent spatial cache A.
For example, user's first buys certain commodity X by the lower single process described in scene one, business is entered by operating procedure S110
During single product page of product X, server needs the step data such as model, the price of inquiry commodity X to be stored in spatial cache A.With
Family first into operating procedure S120 bought when, operating procedure S120 is needed the stock of commodity X of inquiry also to deposit by server
Spatial cache A is put into, the rest may be inferred, until operating procedure S150 generation orders are completed, then by the data of A in the spatial cache
Remove.
Independently, user's second buys certain commodity X and Y by the lower single process described in scene two, by operating procedure S210
Into product X single product page when, the step is needed the data such as model, price of commodity X of inquiry to be stored in caching by server
Space B (space A and space B are independent spatial cache).User's second into operating procedure S220 bought when, server will
Operating procedure S220 needs the stock of the commodity X of inquiry to be also stored in spatial cache B, and user's second enters operation by step S230
When step S210 enters single product page of commodity Y, it is slow that operating procedure S210 is needed the commodity Y stocks of inquiry to be also stored in by server
Space B is deposited, the rest may be inferred, until operating procedure S280 generation orders are completed, then by the data dump in spatial cache B.
It should be noted that the operating procedure of lower single process is user being purchased in shopping website by instruments such as browser, APP
Buy commodity, the step of generation order, the particular content of the operating procedure, function and sequencing etc., be by browser,
The user interface of the instruments such as APP sets what is determined.
In each operating procedure of lower single process, some operating procedures need to carry out data query, such as inquiring about valency
The step of lattice, for inquiring about stock the step of, and/or the step of for inquiring about advertising campaign;And some operating procedures are then not required to
Data query is carried out, the present embodiment is primarily directed to for the operating procedure for needing to carry out data query.
Those of ordinary skill in the art it should be clear that, be described placing an order to improve the treatment effeciency of lower single process
The independent spatial cache that flow is distributed can be the caching of thread-level.
Wherein, be the lower single process distribute the concrete mode of independent spatial cache can in several ways, this step pair
This is not construed as limiting, for example, can be the independent spatial cache that the lower single process is distributed by specifying caching initial address.And for example,
The size of allocation space can also be first determined according to the type of the lower single process, the size further according to the allocation space is institute
State the independent spatial cache of lower single process distribution.
It should be noted that when carrying out data query successively according to the operating procedure of lower single process, each operating procedure can be straight
Connect and inquired about from database, can also be inquired about first from the independent spatial cache, do not found again from data in independently caching
Inquired about in storehouse.According to first way, it is the lower single process point that the data that can be inquired current procedures are directly stored in
In the independent spatial cache matched somebody with somebody, if the data of current operation step inquiry have weight with the data with existing in the independent spatial cache
It is multiple, the repeated data is skipped when can deposit data, also directly can cover earlier data with the new data of current operation step.If adopting
With the second way, then it is the lower single process point to be directly stored in the new data obtained according to the operating procedure inquiry preceding worked as
In the independent spatial cache matched somebody with somebody.
Specifically, when carrying out data query successively according to the operating procedure of lower single process, can be according under using which kind of mode
The repetitive rate of data to be checked is determined between each operating procedure in single process, if data to be checked between for example each operating procedure
Repetitive rate is relatively low, then directly inquired about from database when each operating procedure needs inquiry data;If to be checked between each operating procedure
The repetitive rate for asking data is higher, then each operating procedure needs to be inquired about first from the independent spatial cache during inquiry data,
Do not found in independent caching and inquired about from database again.
Wherein, can be inquired about first from the independent spatial cache when each operating procedure needs inquiry data, it is this
In the case of, in order to save inquiry cost, search efficiency being improved, finally to improve order processing efficiency, can placed an order for described in
When flow distributes independent spatial cache, at least one flag difference is set in the setting subregion of the independent spatial cache
It is corresponding with data needed for the lower single process.So, when carrying out data query successively according to the operating procedure of lower single process, first
Being inquired about from the independent spatial cache includes:When operating procedure according to lower single process carries out data query successively, look into first
The corresponding flag of data to be checked is looked for, is determined whether according to the identification information in the flag searched slow from the independence
Deposit and inquire about the data to be checked in space.
Can safeguard that data needed for the order distinguish corresponding flag in subregion is set, for example can be in setting
The corresponding flags such as price, stock and advertising campaign needed for the order is safeguarded in region.For in above-mentioned flag
Identification information, can be set to 0 or 1, if certain operating procedure reads certain data from database and writes the data
Enter spatial cache, then the identification information in corresponding flag is set to 1, be otherwise provided as zero.Operation step behind so
Suddenly when whether having required data in judging independent spatial cache, in respective identification that can directly in the setting subregion
Identification information judged, so as to when whether having required data in judging independent spatial cache, efficiency can be improved.
Because shopping at network is related to a server towards multi-client, therefore synchronization is often faced in the presence of to many
Individual lower single process carries out the situation of concurrent processing.For a lower single process, may be placed an order because of other during it
The process of flow and the data in database is changed (such as other lower single processes terminate, and generate order, influence commodity
Stock), therefore lower single process, when going to a certain operating procedure, its critical data there occurs change, and for example commodity stocks is by 1
Change turns to 0.And it is the data in the independent spatial cache of the lower single process distribution, it is change when being inquired about due to last action step
Preceding data, therefore the data got from the independent spatial cache thereafter are inaccurate.
Further to overcome above mentioned problem, can be when the data of certain in database change, by server and data
Storehouse interacts.For example, can be monitored with the data in database, when the data in monitoring database change,
The identification information in the corresponding flag of data changed to this is configured, to forbid operating procedure below from described
The data for changing are inquired about in independent spatial cache
For also by taking aforementioned exemplary as an example, when certain data in database change, server and database enter
Row interaction (for example can be periodically interaction or the shape such as triggers notification server when data change in database
Formula), server by the data respective identification position clear 0, thus subsequent step when the data are needed, it is necessary to from database obtain.
For example, can be especially by:When the data in monitoring database change, the number changed to this
It is configured according to the identification information in corresponding flag, to forbid operating procedure below to be looked into from the independent spatial cache
Ask the data for changing.For example, server sets to 0 the identification information of data respective identification position, thus subsequent step exists
, it is necessary to be obtained from database when needing the data.
Wherein, server and database are interacted into the present embodiment and is not construed as limiting, for example can periodically interact,
Or in database triggers notification server when data change.
In addition, at least one flag is set in the setting subregion of the independent spatial cache being placed an order with described respectively
Data correspondence may also include needed for flow:At least one rush is also stored in the second setting subregion of the independent spatial cache
Pin action message, at least one advertising campaign information corresponds to out-of-service time and at least one failure parameter, works as promotion respectively
When the action message corresponding out-of-service time reaches, the corresponding corresponding identification information of at least one failure parameter is set
Put, to forbid operating procedure below that at least one failure parameter is inquired about from the independent spatial cache.For example for
Some special datas, such as advertising campaign, campaign prices have the corresponding entry-into-force time, in the setting subregion, remove
Outside the identification information of the flag for preserving advertising campaign, the entry-into-force time of some parameters in advertising campaign can also be preserved, when
When entry-into-force time passes through, parameter fails, the identification information of flag is set to 0, to forbid operating procedure below from described
The data for changing are inquired about in independent spatial cache.
Furthermore it is also possible in the corresponding identification information of data or the corresponding identification information of failure parameter to changing
After being configured, prompt message is sent to client.For example, for the change of some special parameters of database or some numbers
In the case of being failed according to parameter, client is sent instructions to, point out user's parameter to have occurred and that change.For example price change is entered
Row prompting, and for example stock less than certain threshold value or for 0 when pointed out, it is to avoid frequently bother user.
, it is necessary to by the data dump in the independent spatial cache after the lower single process terminates.Generally produce order,
When cancelling an order and terminating placing an order, lower single process is to terminate, therefore, according to the lower single process generation order, cancellation institute
State the corresponding order of lower single process or terminate after the lower single process, it is necessary to the data in the independent spatial cache are clear
Remove.
According to the method for order processing of embodiment of the present invention, carried out successively according to the operating procedure of lower single process
Data query, is stored in the independent spatial cache for the lower single process distribution, can avoid largely changing code, and shortening is opened
In the hair cycle, the stability of a system can be significantly increased, order processing efficiency can be improved, be that user brings preferably experience.
Exemplary means
After the method for describing exemplary embodiment of the invention, next, with reference to Fig. 4 to exemplary reality of the invention
Apply mode, be described for the device of order processing.
Fig. 4 schematically shows the block diagram of the device for order processing according to an embodiment of the invention.This is used for
The device of order processing can realize previously described correlation method.This is described below for the device of order processing, with foregoing side
The corresponding part of method repeats no more.
As shown in figure 3, the device for being used for order processing includes data query and buffer unit 410 and data dump list
Unit 420.
Data query can be used to carry out data query successively according to the operating procedure of lower single process with buffer unit 410, will
The data that inquiry is obtained are stored in the independent spatial cache for the lower single process distribution.
Data dump unit 420 can be used for after the lower single process terminates, by the data in the independent spatial cache
Remove.
According to some embodiments, the data query is configured to buffer unit 410:Walked in the operation according to lower single process
When carrying out data query successively suddenly, inquired about first from the independent spatial cache.
According to some embodiments, the data query is configured to buffer unit 410:To be walked according to the operation of lower single process
Suddenly the new data for obtaining is inquired about to be stored in the independent spatial cache for the lower single process distribution.
According to some embodiments, the data query is configured to buffer unit 410:Line is distributed by the lower single process
The independent spatial cache of journey level.
According to some embodiments, the data query is configured to buffer unit 410:By specifying caching initial address to be
The independent spatial cache of the lower single process distribution.
According to some embodiments, the data query is configured to buffer unit 410:According to the type of the lower single process
Determine the size of allocation space, the size according to the allocation space is the independent spatial cache of the lower single process distribution.
According to some embodiments, the data dump unit 420 is configured to:According to the lower single process generation order,
After cancelling the corresponding order of the lower single process or terminating the lower single process, by the data in the independent spatial cache
Remove.
According to some embodiments, the operating procedure include for inquire about price the step of, for inquiring about stock the step of,
And/or the step of for inquiring about advertising campaign.
According to some embodiments, the data query is configured to buffer unit 410:
Set in the setting subregion of the independent spatial cache at least one flag respectively with the lower single process
Required data correspondence;
When operating procedure according to lower single process carries out data query successively, the corresponding mark of data to be checked is first looked for
Position, determines whether to inquire about the number to be checked from the independent spatial cache according to the identification information in the flag searched
According to.
According to some embodiments, the data query is configured to buffer unit 410:To the corresponding mark of the new data
Identification information on position is configured, to allow operating procedure below that the new number is inquired about from the independent spatial cache
According to.
According to some embodiments, the data query is configured to buffer unit 410:Data in database is monitored
When changing, the identification information in the corresponding flag of the data changed to this is configured, behind forbidding
Operating procedure the data for changing are inquired about from the independent spatial cache.
According to some embodiments, the data query is configured to buffer unit 410:The of the independent spatial cache
At least one advertising campaign information is also stored in two setting subregions, at least one advertising campaign information corresponds to failure respectively
Time and at least one failure parameter, when reaching the advertising campaign information corresponding out-of-service time, by corresponding at least one
The corresponding identification information of failure parameter is configured, to forbid operating procedure below to inquire about institute from the independent spatial cache
State at least one failure parameter.
According to some embodiments, the data query is configured to buffer unit 410:In the data correspondence to changing
Identification information or after the corresponding identification information of failure parameter is configured, send prompt message to client.
Example devices
After the method and apparatus for describing exemplary embodiment of the invention, next, introducing of the invention
The device for order processing of another exemplary implementation method.
Person of ordinary skill in the field it is understood that various aspects of the invention can be implemented as system, method or
Program product.Therefore, various aspects of the invention can be implemented as following form, i.e.,:It is complete hardware embodiment, complete
Full Software Implementation (including firmware, microcode etc.), or the implementation method that hardware and software aspect is combined, can unite here
Referred to as " circuit ", " module " or " system ".
In some possible implementation methods, the device for order processing of the invention can at least include at least
One processing unit and at least one memory cell.Wherein, the memory cell has program stored therein code, works as described program
When code is performed by the processing unit so that the processing unit is retouched in performing above-mentioned " illustrative methods " part of this specification
Step in the method for order processing according to various illustrative embodiments of the invention stated.For example, the treatment is single
The step of unit can perform as shown in Figure 3 S310, data query is carried out according to the operating procedure of lower single process successively, will be inquired about
The data for obtaining are stored in the independent spatial cache for the lower single process distribution;Step S320, in the lower single process knot
Shu Hou, by the data dump in the independent spatial cache.
Exemplary process product
In some possible implementation methods, various aspects of the invention are also implemented as a kind of shape of program product
Formula, it includes program code, and when described program product runs on the terminal device, described program code is used to make the terminal
Equipment performs the use according to various illustrative embodiments of the invention described in above-mentioned " illustrative methods " part of this specification
Step in the method for order processing, for example, the step of terminal device can be performed as shown in Figure 3 S310, according to
The operating procedure of lower single process carries out data query successively, and will inquire about the data for obtaining and be stored in is the lower single process distribution
In independent spatial cache;Step S320, after the lower single process terminates, by the data dump in the independent spatial cache.
Described program product can be using any combination of one or more computer-readable recording mediums.Computer-readable recording medium can be readable letter
Number medium or readable storage medium storing program for executing.Readable storage medium storing program for executing for example may be-but not limited to-electricity, magnetic, optical, electromagnetic, red
The system of outside line or semiconductor, device or device, or it is any more than combination.The more specifically example of readable storage medium storing program for executing
(non exhaustive list) includes:Electrical connection, portable disc with one or more wires, hard disk, random access memory
(RAM), read-only storage (ROM), erasable programmable read only memory (EPROM or flash memory), portable compact disc is read-only deposits
Reservoir (CD-ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.
Readable signal medium can include the data-signal propagated in a base band or as a carrier wave part, wherein carrying
Readable program code.The data-signal of this propagation can take various forms, including --- but being not limited to --- electromagnetism letter
Number, optical signal or above-mentioned any appropriate combination.Readable signal medium can also be beyond readable storage medium storing program for executing it is any can
Read medium, the computer-readable recording medium can send, propagate or transmit for by instruction execution system, device or device use or
Program in connection.
Program for performing present invention operation can be write with one or more any combination of programming language
Code, described program design language includes object oriented program language-Java, C++ etc., also including routine
Procedural programming language-such as " C " language or similar programming language.Program code can fully in user
Performed on computing device, part performs or remotely counting completely on a remote computing on the user computing device for part
Performed in calculation equipment or server.In the situation for being related to remote computing device, remote computing device can be by any kind
Network --- including LAN (LAN) or wide area network (WAN)-be connected to user calculating equipment.
Although it should be noted that be referred to some modules or unit for order processing device in above-detailed,
But it is this to divide only not enforceable.In fact, according to the embodiment of the present invention, it is above-described two or more
The feature and function of module or unit can embody in a module or unit.Conversely, an above-described module or
The feature and function of unit can be further divided into being embodied by multiple modules or unit.
Additionally, although the operation of the inventive method is described with particular order in the accompanying drawings, this do not require that or
Hint must be performed according to the particular order these operation, or the operation having to carry out shown in whole could realize it is desired
As a result.Additionally or alternatively, it is convenient to omit some steps, multiple steps are merged into a step to perform, and/or by one
Step is decomposed into execution of multiple steps.
Although describing spirit and principles of the present invention by reference to some specific embodiments, it should be appreciated that, this
Invention is not limited to disclosed specific embodiment, and the division to each side does not mean that the feature in these aspects can not yet
Combination is this to divide merely to the convenience of statement to be benefited.It is contemplated that cover appended claims spirit and
In the range of included various modifications and equivalent arrangements.