Obtain the method and device of the maximum conversion step number of session
Technical field
The present invention relates to computer internet field, in particular to a kind of maximum conversion step number obtaining session
Method and device.
Background technology
In the prior art traditional calculations that maximum conversion step number is provided in determining various sessions, occur in each session
After the continuous page browsing of user, can attempt sequentially carrying out Screening Treatment to transduction pathway, thus obtaining in page browsing
Take the most preferred conversion step number of current sessions, the above-mentioned Screening Treatment to transduction pathway obtains most preferably turning of current sessions
The method changing step number, the table scan data generally requiring one or many is deleted, and relatively consumption energy also can after having converted
Reattempt and order coupling is done by the path chain of client oneself setting, see whether comprise to own in the routing information that user accesses
Configuration path, and need do by suitable progressive scan, centre must neglect interference path recited above, this traditional
Mode, very consumption energy, have even with recurrence or be configured with how many paths, will constantly be reached with the connection of how many times table
To this purpose.
Carry out Screening Treatment currently for correlation technique for the transduction pathway in session and obtain optimum conversion step number
Method consumption system resource is larger, and reduces the problem of systematic function, not yet proposes effective solution at present.
Content of the invention
Carry out the method that Screening Treatment obtains optimum conversion step number for correlation technique for the transduction pathway in session
Consumption system resource is larger, and reduces the problem of systematic function, not yet proposes effective solution at present, for this reason, this
Bright main purpose is to provide a kind of method and device of the maximum conversion step number obtaining session, to solve the above problems.
To achieve these goals, according to an aspect of the invention, it is provided a kind of maximum conversion obtaining session walks
The method of number, the method includes:Obtain the path configuration information of the conversion route chain being pre-configured with, path configuration information includes:
The banner of each webpage, the conversion step number of each webpage and a upper conversion step number in path conversion chain;Receive user exists
Routing information produced by webpage is browsed, routing information includes in conversation procedure:The banner of each webpage in conversation procedure;
Routing information is mated with path configuration information, is obtained the conversion step number that in session, each webpage matches and upper one turn
Change step number;The conversion step number being matched according to each webpage in session and a upper conversion step number, to arrange each net in session
The arrival step number of page;Calculate upper one difference converting step number and the arrival step number of each webpage that each webpage in session matches
Value, generates the conversion step number difference of each webpage in session;Extract the webpage that conversion step number difference in session is 1, according to conversion
Step number difference is the maximum conversion step number of the conversion step number acquisition session corresponding to 1 webpage.
To achieve these goals, according to a further aspect in the invention, there is provided a kind of maximum conversion step obtaining session
The device of number, this device includes:Acquisition module, for obtaining the path configuration information of the conversion route chain being pre-configured with, path
Configuration information includes:The banner of each webpage, the conversion step number of each webpage and a upper conversion step in path conversion chain
Number;Receiver module, browses routing information produced by webpage for receive user in conversation procedure, and routing information includes:Meeting
The banner of each webpage during words;Matching module, for being mated routing information with path configuration information, is obtained
Conversion step number and a upper conversion step number that in session, each webpage matches;Setup module, for according to each net in session
Conversion step number and a upper conversion step number that page matches, to arrange the arrival step number of each webpage in session;Computing module, uses
In calculating a upper conversion step number and the difference of the arrival step number of each webpage that each webpage in session matches, generate session
In each webpage conversion step number difference;Processing module, for extracting in session the webpage that conversion step number difference is 1, according to turning
Change the maximum conversion step number that the conversion step number that step number difference is corresponding to 1 webpage obtains session.
By the present invention, using the path configuration information obtaining the conversion route chain being pre-configured with, path configuration information bag
Include:The banner of each webpage, the conversion step number of each webpage and a upper conversion step number in path conversion chain;Receive user
Browse routing information produced by webpage in conversation procedure, routing information includes:The webpage mark of each webpage in conversation procedure
Know;Routing information is mated with path configuration information, is obtained the conversion step number and upper that in session, each webpage matches
Individual conversion step number;The conversion step number being matched according to each webpage in session and a upper conversion step number, to arrange every in session
The arrival step number of individual webpage;Calculate the upper one arrival step number converting step number and each webpage that each webpage in session matches
Difference, generate session in each webpage conversion step number difference;Extract the webpage that conversion step number difference in session is 1, according to
Conversion step number difference is the maximum conversion step number of the conversion step number acquisition session corresponding to 1 webpage, solves correlation technique
Carry out Screening Treatment for the transduction pathway in session to obtain the method for optimum conversion step number to consume system resource larger, and reduce
The problem of systematic function, and then realize reducing during Screening Treatment obtains optimum conversion step number and consume excessive performance, carry
The high effect of deduplicated efficiency.
Brief description
Accompanying drawing described herein is used for providing a further understanding of the present invention, constitutes the part of the application, this
Bright schematic description and description is used for explaining the present invention, does not constitute inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the method flow diagram of the maximum conversion step number of acquisition session according to embodiments of the present invention;
Fig. 2 is the method detail flowchart of the maximum conversion step number of acquisition session according to embodiments of the present invention;And
Fig. 3 is the apparatus structure schematic diagram of the maximum conversion step number of acquisition session according to embodiments of the present invention.
Specific embodiment
It should be noted that in the case of not conflicting, the embodiment in the application and the feature in embodiment can phases
Mutually combine.To describe the present invention below with reference to the accompanying drawings and in conjunction with the embodiments in detail.
The basic conception being related to regard to the application below is described in detail.
The page browsing that the application is related to refers to a page access of user.
The path that the application is related to refers to the routing information after there are browsing pages during user access website, notes path
Middle identical page browsing is can be merged, therefore is not in similar A->The routing information of A.For example, the page of user is clear
Looking at is successively sequentially:A->B->B->C->B->B->D, then corresponding routing information is A->B->C->B->D, now, neighbouring and
Identical page browsing can be merged, and non-conterminous same page browses will not be merged, here it is the implication in term path.
The path conversion that the application is related to refers to that client can configure some specific conversion pathway to website, such as registers
Conversion pathway, the conversion chain corresponding to configurable conversion pathway is:Homepage->Registration->Succeed in registration.Institute when user conversation
Have contain in accession page on conversion chain from start the page to subsequently arbitrarily the page all will be considered convert, and only
The conversion pathway of all configurations all be have accessed and be just considered to convert successfully, otherwise can record the conversion step number of maximum, for example, exist
In registration conversion pathway, unsuccessful registration after user is to enrollment page is out, then maximum conversion step number can be 2, if
Just have left to homepage, that maximum conversion step number can be 1, if all have accessed, will be considered that it is to convert completely, maximum step number,
System assume that acquiescence particular path conversion completes value 100.
Specifically, above-mentioned path conversion only needs to client and sequentially accesses, and the path access chain as above is A->B->
C->B->D, if the conversion chain of client's configuration is A->B->D, then also will be regarded as converting, that is, only need to ensure the access road of user
On the chain of footpath, there is A- in order>B->D can be although A->Between B, user once removed the C page, but can exclude above-mentioned
Interference, for example, when defining a customer path be:Browse commodity->Addition shopping cart->Place an order->Behind the path of payment, even if
Adding shopping cart in the path placing an order, user removed other goods browses or the page of personal address administration, these
The information of this path conversion shall not be disturbed, system still thinks that user is to there occurs conversion according to our paths of definition
's.
Embodiment one:
Based on above-mentioned vocabulary in its most basic configuration, Fig. 1 is according to embodiments of the present invention to obtain session
The big method flow diagram converting step number;Fig. 2 is that the method for the maximum conversion step number of acquisition session according to embodiments of the present invention is detailed
Thin flow chart.
As shown in figure 1, the method for the maximum conversion step number of this acquisition session comprises the steps:
Step S10, obtains the path configuration information of the conversion route chain being pre-configured with, and path configuration information includes:Path
The banner of each webpage, the conversion step number of each webpage and a upper conversion step number in conversion chain.
Step S30, receive user browses routing information produced by webpage in conversation procedure, and routing information includes:Meeting
The banner of each webpage during words.Specifically, the routing information in this step is the data of receive user page browsing.
Step S50, routing information is mated with path configuration information, and what in acquisition session, each webpage matched turns
Change step number and a upper conversion step number.
Step S70, the conversion step number being matched according to each webpage in session and a upper conversion step number, to arrange session
In each webpage arrival step number.
Step S90, calculates the upper one arrival step number converting step number and each webpage that each webpage in session matches
Difference, generate session in each webpage conversion step number difference.
Step S110, extracts the webpage that conversion step number difference in session is 1, the webpage institute being 1 according to conversion step number difference
Corresponding conversion step number obtains the maximum conversion step number of session.
In the above embodiments of the present application, during user initiates a session, can be based on turning of being configured
Change the path configuration information of path chain, to determine the conversion step number of each webpage in current sessions and a upper step of converting, from
And the arrival step number of each webpage in session is set further, the upper conversion step number matching finally according to each webpage with
The arrival step number of each webpage carries out being calculated the conversion step number difference of each webpage, finally by screening obtain currently can
The maximum conversion step number of words.Because such scheme defines a kind of efficient path transform mode, no matter user configured conversion
How many, do not need the huge expense that itself table connects it is only necessary to a table scan, calculate the sequential value of packet sequencing twice
(This is batch processing logic for SQL from tape function, performance efficiency), finally pass through the result required for a table packet obtains again,
The path calculating maximum reaches step number.Thus solve correlation technique carries out Screening Treatment for the transduction pathway in session
The method consumption system resource obtaining optimum conversion step number is larger, and reduces the problem of systematic function, and then realizes reducing
Screening Treatment consumes excessive performance, improves the effect of deduplicated efficiency during obtaining optimum conversion step number.
In the above embodiments of the present application, as shown in Fig. 2 the path that step S10 obtains the conversion route chain being pre-configured with is joined
The step of confidence breath can be to include mode is implemented as described below:
Step S101, the webpage in configuration conversion route chain and the access order of webpage.Specifically, this step can be led to
Cross the access path that client configures in conversion route chain, the access that this access path includes the info web and webpage accessing is suitable
Sequence.
Step S102, the conversion step to the banner of each webpage of Web Page Tags in conversion route chain, each webpage
A several and upper conversion step number.Specifically, this step can stamp the label of current step number for each conversion pathway, can include
The conversion step number of current web page and a upper conversion step number.
Step S103, the conversion step number of last webpage in setting conversion route chain is special step Numerical.Specifically,
Whether this step can be realized for that step finally completing being configured to particular value, completed with distinguishing.
Specifically, above-mentioned steps system receives the path conversion chain having configured, and this path conversion chain can pass through client root
To configure according to predetermined information, to have recorded each webpage in path conversion chain in path configuration information and convert in chain in the path of configuration
Conversion step number and a upper conversion step number, meanwhile, path can be set and convert the particular value changing into page during work(in chain,
Can think that this path converts the corresponding particular value of page setup when chain completes, for example, particular value can be as 100.
For example, illustrate as a example the configuration path conversion of a session:As a session above:Homepage->Registration->
Succeed in registration, first for the label of each Web Page Tags step number, show each configuration step number in configuration, after having beaten:Homepage
(1st step)->Registration(2nd step)->Succeed in registration(100 steps, expression completes), and last path step is defined as path
Conversion is successfully completed, and is set using particular value 100.
In the above embodiments of the present application, as shown in Fig. 2 routing information is mated by step S50 with path configuration information,
Obtain the conversion step number that in session, each webpage matches and the step of a upper conversion step number can be to include mode is implemented as described below:
Step S501, it will during words, the banner of each webpage and path convert the webpage mark of each webpage in chain
Know and contrasted, obtain the webpage with same web page mark.Specifically, be by user carry out the routing information of page browsing with
Path configuration information carries out mating wherein, execution step S502 in the case that the match is successful.
Step S502, extracts path and converts the conversion step number of webpage in chain with same web page mark and a upper conversion
Step number, the webpage that conversion step number and a upper conversion step number are assigned in session, obtain turning of each webpage in routing information
Change step number and a upper conversion step number.I.e. in outgoing route information each webpage session identification, in path configuration information work as
Front step number and previous step number.
The application above-mentioned steps S501 achieve to step S503, system receive user a page browsing it
Afterwards, record the routing information that this browses, this routing information records the web page contents of this page browsing and browses order.System
Path according to above-mentioned configuration converts the path configuration information of chain, carries out matching treatment to the routing information that this browses, as
Each page browsing of user is mated accordingly, when the routing information that this browses is included in path conversion chain, then
It is made into work(, then record the path conversion step number of each webpage in the path that this browses, and the previous step number of path conversion.
Specifically, in the embodiment of the present application, user can send multiple session, and each session can include multiple pages and visit
Ask, below just above-described embodiment is described in detail taking session Sid1, Sid2, Sid3, Sid4 as a example.
The source data that above-mentioned steps S501 get to the execution of step S503 can be preserved in the form of tables of data.Its
In, after the system Webpage that each user accesses in receiving each conversation procedure browses PV, can be joined according to path
The page in confidence breath mates to the webpage in above-mentioned 4 sessions according to the rule of configuration information, if the match is successful, can remember
Record transduction pathway interim table ConversionPathSplit table, be the tables of data of a data source, specifically, can record every
Conversion step number and a upper conversion step number that in one conversation procedure, all accession pages match, above-mentioned table structure and record are such as
Shown in table 1 below:
Table 1:
Specifically, knowable to the content of upper table 1:
The match is successful in path configuration information for 3 pages that in session Sid1, user accesses, and wraps in conversion route chain
Containing all of browsing pages in this session Sid1, wherein, the conversion step that first page matches in path configuration information
Number is 1, and the upper conversion step number matching is 0;The conversion step number that second page matches in path configuration information is
2, the upper conversion step number matching is 1;The conversion step number that 3rd page matches in path configuration information is 100,
The upper conversion step number matching is 2.It follows that current sessions Sit1 is a completely successful session of conversion.
The match is successful in path configuration information for 2 pages that in session Sid2, user accesses, and wraps in conversion route chain
Containing all of browsing pages in this session Sid2, wherein, the conversion step that first page matches in path configuration information
Number is 1, and the upper conversion step number matching is 0;The conversion step number that second page matches in path configuration information is
1, the upper conversion step number matching is 0.It follows that current sessions Sit2 is a conversion does not have completely successful meeting
Words, the conversion step number that the page due to accessing twice matches is all identical with upper one conversion step number, therefore, current sessions Sit2
It is the session of repeated accesses.
The match is successful in path configuration information for 3 pages that in session Sid3, user accesses, and wraps in conversion route chain
Containing all of browsing pages in this session Sid3, wherein, the conversion step that first page matches in path configuration information
Number is 1, and the upper conversion step number matching is 0;The conversion step number that second page matches in path configuration information is
2, the upper conversion step number matching is 1;The conversion step number that 3rd page matches in path configuration information is 100,
The upper conversion step number matching is 5.It follows that current sessions Sit3 is a completely successful session of conversion, but by
It is 5 in the upper conversion step number that the 3rd page matches, therefore, represent and compare in the middle of this session of conversion route chain
Path does not reach.
The match is successful in path configuration information for 3 pages that in session Sid4, user accesses, and wherein, first page exists
The conversion step number matching in path configuration information is 2, and the upper conversion step number matching is 1;Second page is in path
The conversion step number matching in configuration information is 3, and the upper conversion step number matching is 2;3rd page configures in path
The conversion step number matching in information is 100, and the upper conversion step number matching is 3.It follows that current sessions Sit1 is
One completely successful session of conversion, but lack the first page in the conversion route chain of configuration, do not wrap in conversion route chain
Containing all of browsing pages in this session Sid1, this time session is once invalid session.
After execution of step S50 or step S502, enter the data input receiving matching result as calculation procedure
Step.
Preferably, in the above embodiments of the present application, as shown in Fig. 2 what step S70 matched according to each webpage in session
Conversion step number and a upper conversion step number, the step to arrange the arrival step number of each webpage in session can include being implemented as described below
Mode:
Step S701, step of converting and a upper conversion step number according to each webpage in session rise to all webpages
Sequence or descending sort, and step of converting in the webpage after sequence and/or upper one are converted step number identical Web Page Tags duplicate removal
Label.This step generates one and derives from row, for example:It is grouped by session identification, path converts step number ascending sort, application
Dense_rank carries out reordering, and this value is arranged as deriving from.
Step S702, the ranking results order according to webpage arranges the arrival step number of each webpage in session, wherein, setting
There is the arrival step number of the webpage of duplicate removal label identical.
Specifically, still above-described embodiment is described in detail taking session Sid1, Sid2, Sid3, Sid4 as a example.Above-mentioned
Step S701 can derive from data row to the execution of step S702, that is, derive from the numbering that string reaches step number, can be using row
Name function dense_rank SQLServer from tape function, after being grouped according to SessionID, in each Session
All pages reach step numbers and carry out ascending order arrangement, and stamp the label after duplicate removal, and duplicate removal refers to continuously to reach step number and can be labeled with
Identical sequencing numbers.As shown in table 2 in detail, derive from the numbering that string reaches the Sorted list of step number on the basis of table 1.
Table 2:
Specifically, knowable to the content of upper table 2:
In session Sid1, the arrival step number of 3 pages that user accesses is respectively 1,2,3, i.e. the completely successful meeting of this conversion
In words, three pages are to complete to access according to predetermined configurations rule.
In session Sid2, the arrival step number of 2 pages that user accesses is respectively 1,1, and that is, this session Sit2 is a conversion
There is no completely successful session, wherein, the 2nd time access the page or conversion route chain in first page, access twice
The page be that repeated accesses path obtains, therefore, the path corresponding to the page of repeated accesses twice in current sessions Sit2
It is provided with identical duplicate removal label.
In session Sid3, the arrival step number of 3 pages that user accesses is respectively 1,2,3, i.e. the completely successful meeting of this conversion
In words, three pages are to complete to access according to predetermined configurations rule.
In session Sid4, the arrival step number of 3 pages that user accesses is respectively 1,2,3.
Preferably, in the above embodiments of the present application, after execution of step S70 or step S702, enter step S90.
Wherein, step S90, calculates upper one difference converting step number and the arrival step number of each webpage that each webpage in session matches
Value, generates the conversion step number difference of each webpage in session.The value that i.e. applying step S70 or step S702 obtain, then deduct source
The previous step number of the path conversion in data, derives from this difference row.
Specifically, still above-described embodiment is described in detail taking session Sid1, Sid2, Sid3, Sid4 as a example.Above-mentioned
The tables of data based on the derivation Sorted list shown in table 2 can be realized after the execution of step S90, difference row can be derived from again, use
In characterizing conversion step number difference, specific calculation is DenserankRowNumber-configuredLastStepIndex,
Even if using a conversion step number to seek mathematic interpolation with corresponding arrival step number, result of calculation is as shown in table 3 below:
Table 3:
Specifically, knowable to the content of upper table 3:
The conversion step number difference that in session Sid1, each webpage derives from is respectively 1,1,1, i.e. this conversion is completely successful
Session in, each page is identical with the conversion step number in predetermined path configuration information.
The conversion step number difference that in session Sid2, each webpage derives from is respectively 1,1, that is, two in this session Sit2
The page is identical with the conversion step number in predetermined path configuration information.
The conversion step number difference that in session Sid3, each webpage derives from is respectively 1,1, -2, i.e. this conversion is completely successful
Session in, only the first two page is identical with the conversion step number in predetermined path configuration information.
The conversion step number difference that in session Sid4, each webpage derives from is respectively 0,0,0, i.e. institute in this session Sit4
The page is had to be different from the conversion step number in predetermined path configuration information.
Preferably, in the application each embodiment above-mentioned, in the case that system includes multiple sessions, each session is set
Session identification, wherein, as shown in Fig. 2 in step S110 implementation process, be corresponding to 1 webpage according to conversion step number difference
Conversion step number obtain session maximum conversion step number step can with include mode is implemented as described below:
Step S1101, is grouped to session according to session identification so that each session identification corresponds at least one conversion
Step number difference.For example, it is grouped according to SessionID.
Step S1102, after in extracting session, conversion step number difference is 1 webpage, reading and converting step number difference is 1
Conversion step number corresponding to webpage, obtains at least one pre-selection conversion step number.Specifically, this step achieves and selects all differences
It is classified as 1 data row, represent continuous path access.
Step S1103, selects maximum pre-selection to convert step number as the maximum conversion step number of session.For example, it is possible to choose
In the data of each SessionId after packet, maximum conversion step number is as final maximum conversion step number.
Specifically, still above-described embodiment is described in detail taking session Sid1, Sid2, Sid3, Sid4 as a example.
Wherein, above-mentioned steps S1101 achieve screening and obtain converting the session that step number difference is 1, specifically in detail as table 4 below
Shown, only select all row that difference row DiffNumber is 1 on the basis of table 3.
Table 4
Specifically, knowable to the content of upper table 4:
Those conversion step number differences are not 1 row, as 0 or negative row, represent certain step number in the middle of having lacked, such as above
Sid4, being 0 expression reaches in step number in path, has lacked a step number before this coupling path(I.e. page 1 in configuration road
Face, the previous page is 0), in sid3, its difference of 100 step numbers of coupling is classified as -2, represents user when accessing this step number, before lack
3 step numbers in configuration conversion pathway are lacked(I.e. 3,4,5 step).Finally according to result above, then Session is carried out point
Group, takes the wherein maximum of StepIndex respectively, just obtains final result.
Further, above-mentioned steps S1102 and step S1103 be it is achieved that based on the example shown in table 4, then to Session
It is grouped, take the wherein maximum of StepIndex respectively, just obtain final result.Specifically in detail as table 5 below institute
Show.
Table 5
It follows that session Sid1 is to convert completely successful session, and accesses and gone to final step conversion page
Face.And session Sid2 does not successfully convert completely, only have access to first page and just terminated;Success is not complete for session Sid3
Conversion, has only had access to second page and has just terminated;Session Sid4 does not successfully convert completely, and the first accession page does not all have
There is access.
In summary, in the example that the application provides, by the step number that completes that path is converted, that is, final step is special
Value definition, to distinguish common path and to convert step number and last complete step number;By using path conversion current step number with
And the auxiliary of the information of previous step efficiently to calculate maximum arrival step number;By being grouped to session, according to path conversion
Step number is ranked up, and applies the derivation that the dense_rank of duplicate removal is ranked up obtaining to arrange, and upper with path conversion
Step carries out sequence of differences, determines that the special record row that difference is 1 represents continuous path access.
It should be noted that the step that illustrates of flow process in accompanying drawing can be in such as one group of computer executable instructions
Execute in computer system, and although showing logical order in flow charts, but in some cases, can be with not
It is same as the step shown or described by order execution herein.
Embodiment two:
During the further detail below of description present embodiments, may be referred to Fig. 3 and can be used for reality to describe
One suitable counting system structure of the principle of existing the application.In the following description, except as otherwise noted, otherwise will with reference to by
One or more actions of computer execution and the symbol of operation represent to describe present embodiments.Thus, it is possible to reason
The processing unit that this kind of action of solution, sometimes referred to as computer execution includes computer with operation is represented to structured form
The manipulation of the signal of telecommunication of data.This manipulation transforms data or safeguard it on the position in the accumulator system of computer,
This is reconfigured in the way of those skilled in the art all understanding or changes the operation of computer.Safeguard the data structure of data
It is the physical location of the memorizer of particular community defined in the form with data.Although however, retouching in above-mentioned context
State the application, but its being not intended to limit property, as understood by those skilled in the art, action described below and
The each side of operation also can be realized with hardware.
Turn to accompanying drawing, wherein identical reference number refers to identical element, and the principle of the application is shown in a conjunction
Realize in suitable computing environment.Hereinafter describe based on embodiments herein, and be not considered as with regard to not clear and definite herein
Description alternative embodiment and limit the application.
Fig. 3 shows the schematic diagram of the example computer architecture that can be used for these equipment.Mesh for description
, the architecture painted is only an example of proper environment, and not the range to the application or function proposition are any
Limitation.Also this computing system should not be construed to there is any dependence or demand to any component shown in Fig. 3 or a combination thereof.
The principle of the application can be operated using the universal or special calculating of other or communication environment or configuration.It is applied to this
The example of the well-known computing system, environment and configuration of application includes but is not limited to, personal computer, server, many places
Reason device system, the system based on microprocessor, the distribution of minicomputer, mainframe computer and the arbitrary said system of inclusion or equipment
Formula computing environment.
In its most basic configuration, Fig. 3 is the dress of the maximum conversion step number of acquisition session according to embodiments of the present invention
Put structural representation.As shown in figure 3, the device of the maximum conversion step number of this acquisition session can include:One acquisition module 101,
One receiver module 103, a matching module 105, a setup module 107, a computing module 109, a processing module 111.
Wherein, acquisition module 101, for obtaining the path configuration information of the conversion route chain being pre-configured with, path configures
Information includes:The banner of each webpage, the conversion step number of each webpage and a upper conversion step number in path conversion chain;Connect
Receive module 103, browse routing information produced by webpage in conversation procedure for receive user, routing information includes:Session
During each webpage banner;Matching module 105, for being mated routing information with path configuration information, is obtained
Take the conversion step number that in session, each webpage matches and a upper conversion step number;Setup module 107, for according to every in session
Conversion step number and a upper conversion step number that individual webpage matches, to arrange the arrival step number of each webpage in session;Calculate mould
Block 109, for calculating upper one difference converting step number and the arrival step number of each webpage that each webpage in session matches,
Generate the conversion step number difference of each webpage in session;Processing module 111, is 1 for extracting conversion step number difference in session
Webpage, the maximum conversion step number being the conversion step number acquisition session corresponding to 1 webpage according to conversion step number difference.
In the above embodiments of the present application, during user initiates a session, can be based on turning of being configured
Change the path configuration information of path chain, to determine the conversion step number of each webpage in current sessions and a upper step of converting, from
And the arrival step number of each webpage in session is set further, the upper conversion step number matching finally according to each webpage with
The arrival step number of each webpage carries out being calculated the conversion step number difference of each webpage, finally by screening obtain currently can
The maximum conversion step number of words.Because such scheme defines a kind of efficient path transform mode, no matter user configured conversion
How many, do not need the huge expense that itself table connects it is only necessary to a table scan, calculate the sequential value of packet sequencing twice
(This is batch processing logic for SQL from tape function, performance efficiency), finally pass through the result required for a table packet obtains again,
The path calculating maximum reaches step number.Thus solve correlation technique carries out Screening Treatment for the transduction pathway in session
The method consumption system resource obtaining optimum conversion step number is larger, and reduces the problem of systematic function, and then realizes reducing
Screening Treatment consumes excessive performance, improves the effect of deduplicated efficiency during obtaining optimum conversion step number.
Acquisition module 101 in the above embodiments of the present application can include:Configuration module, for configuring in conversion route chain
Webpage and webpage access order;Mark module, for the webpage to each webpage of Web Page Tags in conversion route chain
Mark, the conversion step number of each webpage and a upper conversion step number, and turning of last webpage in conversion route chain is set
Change step number is special step Numerical.
Specifically, above-mentioned steps system receives the path conversion chain having configured, and this path conversion chain can pass through client root
To configure according to predetermined information, to have recorded each webpage in path conversion chain in path configuration information and convert in chain in the path of configuration
Conversion step number and a upper conversion step number, meanwhile, path can be set and convert the particular value changing into page during work(in chain,
Can think that this path converts the corresponding particular value of page setup when chain completes, for example, particular value can be as 100.
For example, illustrate as a example the configuration path conversion of a session:As a session above:Homepage->Registration->
Succeed in registration, first for the label of each Web Page Tags step number, show each configuration step number in configuration, after having beaten:Homepage
(1st step)->Registration(2nd step)->Succeed in registration(100 steps, expression completes), and last path step is defined as path
Conversion is successfully completed, and is set using particular value 100.
Specifically, the configuration module in the application said apparatus embodiment and mark module are realized specific example and
Applied environment can be identical with the example that step S101-103 in embodiment of the method one is realized.
Matching module 105 in the above embodiments of the present application can include:Contrast module, for by during session each
The banner that the banner of webpage converts each webpage in chain with path is contrasted, and obtains thering is same web page mark
Webpage;Extraction module, conversion step number and upper one for extracting the webpage in path conversion chain with same web page mark turn
Change step number;Assignment module, for the webpage being assigned to conversion step number and a upper conversion step number in session, obtains routing information
In each webpage conversion step number and upper one conversion step number.
The above-mentioned contrast module of the application, extraction module and assignment module achieve, and receive the once page of user in system
After face browses, record the routing information that this browses, this routing information records the web page contents of this page browsing and browses
Sequentially.System converts the path configuration information of chain according to the path of above-mentioned configuration, and the routing information that this browses is mated
Process, each page browsing of as user is mated accordingly, when the routing information that this browses is included in path conversion
In chain, then the match is successful, then record the path conversion step number of each webpage in the path that this browses, and path conversion is upper
One step number.
Specifically, the tool that the contrast module in the application said apparatus embodiment, extraction module and assignment module are realized
Body example and applied environment can be identical with the example that step S501 to step S503 in embodiment of the method one is realized.
Setup module 107 in the above embodiments of the present application can include:Order module, for according to each net in session
The step of converting of page and a upper conversion step number carry out ascending order or descending sort to all webpages;Duplicate removal mark module, for inciting somebody to action
Step of converting and/or a upper conversion step number identical Web Page Tags duplicate removal label in webpage after sequence;Determining module, is used for
Ranking results order according to webpage arranges the arrival step number of each webpage in session, wherein, is provided with the webpage of duplicate removal label
Arrival step number identical.
The above-mentioned order module of the application, duplicate removal mark module and determining module achieve and can derive from data row, that is, send
Raw string reaches the numbering of step number, the SQLServer of dense_rank can be adopted from tape function, carry out according to SessionID
After packet, reach step number for all pages in each Session and carry out ascending order arrangement, and stamp the label after duplicate removal, duplicate removal
Refer to the continuous step number that reaches and can be labeled with identical sequencing numbers.
Specifically, the order module in the application said apparatus embodiment, duplicate removal mark module and determining module are realized
Specific example and applied environment can be identical with the example that step S701 to step S703 in embodiment of the method one is realized.
In the above embodiments of the present application, in the case that system includes multiple sessions, the session identification of each session is set,
Wherein, processing module 111 can include:Grouping module, for being grouped so that each session according to session identification to session
Mark at least one conversion step number difference corresponding;Read module, for extract session in conversion step number difference be 1 webpage it
Afterwards, reading and converting step number difference is the conversion step number corresponding to 1 webpage, obtains at least one pre-selection conversion step number;Select mould
Block, the pre-selection for selecting maximum converts step number as the maximum conversion step number of session.
It is 1 that the above-mentioned grouping module of the application, read module and selecting module achieve screening to obtain converting step number difference
Session, then Session is grouped, take the wherein maximum of StepIndex respectively, just obtain final result.
Wherein, those conversion step number differences be not 1 row, as 0 or negative row, represent lacked in the middle of certain step number,
As sid4 above, it is that 0 expression reaches in step number in path, before this coupling path, has lacked a step number(I.e. in configuration road
1 page, the previous page be 0), in sid3, its difference of 100 step numbers of coupling is classified as -2, represents user when accessing this step number,
3 step numbers in configuration conversion pathway are above lacked(I.e. 3,4,5 step).Finally according to result above, then Session is entered
Row packet, takes the wherein maximum of StepIndex respectively, just obtains final result
Specifically, the tool that the grouping module in the application said apparatus embodiment, read module and selecting module are realized
Body example and applied environment can be identical with the example that step S1101 to step S1103 in embodiment of the method one is realized.
As can be seen from the above description, present invention achieves following technique effect:Solve being directed to of correlation technique
Transduction pathway in session carries out Screening Treatment and obtains the method for optimum conversion step number to consume system resource larger, and reduces and be
The problem of system performance, and then realize reducing during Screening Treatment obtains optimum conversion step number and consume excessive performance, improve
The effect of deduplicated efficiency.
Specifically, the above embodiments of the present application include following advantage:
First, performance efficiency, middle no table from attended operation it is only necessary to table scan of execution, a packet sequencing, and
Once packet takes maximum, according to traditional route matching method, if 10 conversion pathway of user configuring are it will usually carry out 10 times
Table connects and 10 I/O operation, and this processing method cleverly applies dense_rank and sequence of differences to greatly reducing table scan
Number of times and packet sequencing number of times, performance compares traditional having greatly improved.
Secondly, configuration is simple, calculates efficiently, the skilful second current step number and previous step number are converted by path, using height
The derivation row of performance, then by difference is arranged with sequence, directly choose the maximum conversion step number of Max it is not necessary to carry out extra table
Connect or the data manipulation behavior of recurrence.
As seen through the above description of the embodiments, those skilled in the art can be understood that the application can
Mode by software plus necessary general hardware platform to be realized.Based on such understanding, the technical scheme essence of the application
On in other words prior art is contributed partly can be embodied in the form of software product, this computer software product
Can be stored in storage medium, such as ROM/RAM, magnetic disc, CD etc., include some instructions use so that a computer equipment
(Can be personal computer, server, or network equipment etc.)Execution each embodiment of the application or embodiment some
Partly described method.
Each embodiment in this specification is all described by the way of going forward one by one, identical similar portion between each embodiment
Divide mutually referring to what each embodiment stressed is the difference with other embodiment.Real especially for system
For applying example, because it is substantially similar to embodiment of the method, so description is fairly simple, referring to embodiment of the method in place of correlation
Part illustrate.
The application can be used in numerous general or special purpose computing system environment or configuration.For example:Personal computer, service
Device computer, handheld device or portable set, laptop device, multicomputer system, the system based on microprocessor, top set
Box, programmable consumer-elcetronics devices, network PC, minicomputer, mainframe computer, include any of the above system or equipment
Distributed computing environment etc..
Obviously, those skilled in the art should be understood that each module of the above-mentioned present invention or each step can be with general
Computing device realizing, they can concentrate on single computing device, or be distributed in multiple computing devices and formed
Network on, alternatively, they can be realized with the executable program code of computing device, it is thus possible to they are stored
To be executed by computing device in the storage device, or they be fabricated to each integrated circuit modules respectively, or by they
In multiple modules or step be fabricated to single integrated circuit module to realize.So, the present invention be not restricted to any specific
Hardware and software combines.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for the skill of this area
For art personnel, the present invention can have various modifications and variations.All within the spirit and principles in the present invention, made any repair
Change, equivalent, improvement etc., should be included within the scope of the present invention.