Movatterモバイル変換


[0]ホーム

URL:


US6622138B1 - Method and apparatus for optimizing computation of OLAP ranking functions - Google Patents

Method and apparatus for optimizing computation of OLAP ranking functions
Download PDF

Info

Publication number
US6622138B1
US6622138B1US09/656,304US65630400AUS6622138B1US 6622138 B1US6622138 B1US 6622138B1US 65630400 AUS65630400 AUS 65630400AUS 6622138 B1US6622138 B1US 6622138B1
Authority
US
United States
Prior art keywords
ranking function
window
window functions
granularity
clause
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime, expires
Application number
US09/656,304
Inventor
Srikanth Bellamkonda
Bhaskar Ghosh
Andrew Witkowski
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Oracle International Corp
Original Assignee
Oracle International Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oracle International CorpfiledCriticalOracle International Corp
Priority to US09/656,304priorityCriticalpatent/US6622138B1/en
Assigned to ORACLE CORPORATIONreassignmentORACLE CORPORATIONASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS).Assignors: BELLAMKONDA, SRIKANTH, GHOSH, BHASKAR, WITKOWSKI, ANDREW
Assigned to ORACLE INTERNATIONAL CORPORATIONreassignmentORACLE INTERNATIONAL CORPORATIONASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS).Assignors: ORACLE CORPORATION
Application grantedgrantedCritical
Publication of US6622138B1publicationCriticalpatent/US6622138B1/en
Adjusted expirationlegal-statusCritical
Expired - Lifetimelegal-statusCriticalCurrent

Links

Images

Classifications

Definitions

Landscapes

Abstract

Techniques are described for optimizing the computation of OLAP ranking functions. The techniques involve push-down of the filtering operation into the window sort operation corresponding to a target ranking function. The push-down technique may be employed when a predetermined set of push-down conditions are met.

Description

FIELD OF THE INVENTION
The present invention relates generally to query operations performed within computer systems and, more specifically, to optimizing the computation of OLAP ranking functions.
BACKGROUND OF THE INVENTION
Relational databases store information in indexed tables that are organized into rows and columns. A user retrieves information from the tables by entering a request that is converted to queries by a database application, which then submits the queries to a database server. In response to the queries, the database server accesses the tables specified by the queries to determine which information within the tables satisfies the queries. The information that satisfies the queries is then retrieved by the database server and transmitted to the database application and ultimately to the user.
Online analytical processing (“OLAP”) applications, also known as decision support processing applications, are applications that provide analysis of data stored in a database. OLAP applications involve the use of analytic functions. Examples of analytic functions are those functions used in basic business intelligence calculations such as moving averages, rankings and lead/lag comparisons of data. Analytic functions are broadly classified as window functions. Window functions are so named because they operate over a set of rows of data in the database tables. The set of rows upon which the window functions operate are described by a window definition or window size. The window size describes which rows qualify for the window. The window has a starting row and an ending row. For example, a window defined for a moving average would have both the starting and end points of the window slide so that the end points maintain a constant physical or logical range. For example, the following query calculates a 3 month moving average per stock ticker.
AVG (stock_price) OVER (Partition By (stock_name) Order By (time) RANGE ‘3’ MONTH PRECEDING)
The clause “Partition By (stock_name)” partitions the data by stock_name, and the clause “Order By (time)” orders the data time wise within a partition. RANGE ‘3’ MONTH PRECEDING is a logical expression of window size. In the example, the “window” has the logical size of three months. Alternatively, window size may be expressed by a physical interval. That is, the interval may refer to how the data is stored within the database. For example, the following query calculates the moving average for each stock ticker over 90 preceding rows of data.
AVG (stock_price) OVER (Partition By (stock_name) Order By (time) ROWS 90 PRECEDING)
TABLE 1 below illustrates a result set for the query containing the window function “AVG (stock_price) OVER (Partition By (stock_name) Order By (time) RANGE ‘3’ MONTH PRECEDING)”. The above window function calculates a moving average of stock price for each stock within a three month window.
TABLE 1
Stock_nameTimestock_pricemoving_average
ORCL1-Jan′992020
ORCL1-Feb′9930(20 + 30)/2 = 25
ORCL1-Mar′9958(20 + 30 + 58)/3 = 36
ORCL1-Apr′9911(30 + 58 + 11)/3 = 33
ORCL1-May′9951(58 + 11 + 51)/3 = 40
ABCD1-Jan′992525
ABCD1-Feb′9935(25 + 35)/2 = 30
ABCD1-Mar′9945(25 + 35 + 45)/3 = 35
ABCD1-Apr′9955(35 + 45 + 55)/3 = 45
ABCD1-May′9965(45 + 55 + 65)/3 = 55
Thus, the use of window functions enhances developer productivity because window functions allow for computerized decision support that may be either interactive or batch report jobs.
An important category of window functions is the “ranking” family of window functions. Window functions in the ranking family compute the rank of a row of data with respect to other rows of data in the dataset based on the values of a set of measures. To illustrate, the following query ranks salesmen in Acme Company based on sales amount in each geographical sales region.
SELECT sales_person, sales region, sales_amount,
RANK ( ) OVER (PARTITION BY sales_region ORDER BY s_amount DESC)
FROM Sales_table;
TABLE 2A below illustrates a result set for the preceding query. The “rank” column in Table 2A lists the sales persons in descending order based on the sales amount. The rank values are reset for each sales region.
TABLE 2A
sales_personsales_regionsales_amountrank
AdamsEast1001
BakerEast992
ConnorsEast893
DavisEast754
EdwardsWest741
FitzhughWest662
GaribaldiWest453
Examples of window functions in the ranking family include RANK, DENSE_RANK, NTILE, PERCENT_RANK, ROW_NUMBER, and CUME_DIST. Window functions that belong to the ranking family are hereafter referred to as ranking functions. Ranking functions are widely used in queries for ranking rows of data in a dataset based on some ordering criterion and subsequently filtering out all but the rows in the top-N ranks. For example, assume that the query corresponding to TABLE 2A asked for the top 2 salespersons in each sales region based on the sales amount credited to each sales person. TABLE 2B illustrates a results set where data rows corresponding to a rank that is greater than 2 are filtered out. Queries that result in the computation and selection of top-N ranks are hereafter referred to as “TOP-N” queries.
TABLE 2A
sales_personsales_regionsales_amountrank
AdamsEast1001
BakerEast992
EdwardsWest741
FitzhughWest662
TOP-N queries are often computationally expensive when massive amounts of data need to be sorted and ranked. Because the use of TOP-N queries is frequent and widespread in the industry, any improvement in computation efficiency of TOP-N queries may amount to significant savings.
Based on the foregoing, there is clear need for a mechanism for optimizing the computation of OLAP Ranking functions.
SUMMARY OF THE INVENTION
Techniques are provided for optimizing the computation of OLAP ranking functions. According to one embodiment, a push-down technique is used whereby the filtering predicate associated with a ranking function is pushed down into the window sort, which filters rows while sorting the data. The set of conditions ensures that the push down technique does not result in filtering out data that is needed in other window sorts in the query.
BRIEF DESCRIPTION OF THE DRAWINGS
The present invention is illustrated by way of example, and not by way of limitation, in the figures of the accompanying drawings and in which like reference numerals refer to similar elements and in which:
FIG. 1A-1C are flowcharts that illustrate an overview of one embodiment of the invention;
FIG. 2 is a flowchart that illustrates the condition to be satisfied by the filtering predicate associated with the target ranking function;
FIG. 3 is a flowchart that illustrates the condition that is to be satisfied by unordered window functions in the query block;
FIG. 4 is a flowchart that illustrates the condition that is to be satisfied by all ranking functions other than the target ranking function in the query block;
FIG. 5 is a flowchart that illustrates the condition that is to be satisfied by all ordered window functions with ROWS option in the query block;
FIG. 6 is a flowchart that illustrates the condition that is to be satisfied by all ordered window functions with RANGE option in the query block;
FIG. 7 illustrates a row source tree and DFO tree associated with the parallel execution of a TOP-N query;
FIG. 8 illustrates the row source tree and DFO tree associated with the parallel execution of a TOP-N query; and
FIG. 9 depicts a computer upon which embodiments of the invention may be implemented.
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT
Techniques are provided for optimizing the computation of OLAP ranking functions. In the following description, for the purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the present invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced without these specific details. In other instances, well-known structures and devices are shown in block diagram form in order to avoid unnecessarily obscuring the present invention.
FUNCTIONAL OVERVIEW
In one embodiment of the invention, the computation of OLAP ranking functions is optimized by filtering data based on the predicate of a given ranking function during the window sort procedure associated with the particular ranking function. To illustrate, a typical OLAP query has the following general structure:
SELECT deptno, ename, salary, rnk
FROM (select deptno, ename, salary,
RANK OVER (Partition By deptno Order By salary DESC) as rnk
FROM EmpTable)
WHERE rnk<=5
ORDER BY rnk;
The syntax used in the preceding statements is merely illustrative. The actual syntax of statements involving OLAP queries may vary from implementation to implementation. The present invention is not limited to any particular syntax.
The embodiment is described, in part, with reference to the structure of the query. The above query retrieves a result set that displays the identities and salaries of the top 5 highest salaried employees in each department in a company. In the context of structure, the above query is generally referred to as a query block. The query block comprises an inner query block and an outer query block. The inner query block may comprise one or more window functions.
In the above sample query, the inner query block is the indented portion of the query block. The inner query block contains the ranking function, “RANK OVER (Partition By deptname Order By salary DESC) as rnk”, which is a window function from the ranking family of window functions. “Rnk<=5” is a predicate on the ranking function and appears in the immediate outer query block. Window functions allow for the division of a query result set into groups of rows called “Partitions”. Thus, references herein to partitions in the context of window functions are unrelated to the partitioning models for managing very large tables and indexes. Examples of partitioning models for managing very large tables and indexes are hash partitioning and composite partitioning etc. In the above sample query, the clause “Partition By deptname” causes a result set of rows of data that are grouped by department name. The clause, “Order By salary DESC” causes the rows of data in each department group to be ordered in descending order of salary. The predicate in the outer query block, “rnk<=5”, filters all but the top 5 rows of data in each department group before presenting the result set in response to the query.
Ordinarily, filtering occurs after the data has been sorted. Before filtering of the data occurs, the data is first sorted during the window sort of the ranking function corresponding to the predicate. In contrast, techniques described herein filter the data much earlier by pushing the filtering operation down into a lower level of rank computation, which is sorting of the data. The technique of pushing the filtering operation down into a lower level of computation is hereafter referred to as “push-down”.
TABLE 3 represents a possible result set in response to the above sample query.
TABLE 3
deptnameEnameSalaryRnk
engineeringAdams100K1
engineeringBaker99K2
engineeringEdwards74K3
engineeringFitzhugh66K4
engineeringGaribaldi60K5
marketingSmith85K1
marketingGoodman80K2
marketingPeterman79K3
marketingBotticelli60K4
marketingMaxmillian55K5
For the purpose of explanation, assume that a query block has N window functions, F1, F2, . . . , Fn. Assume that F is one of the ranking functions in the query block, and that P, in the immediate outer query block, is the predicate associated with F. The predicate associated with a ranking function is hereafter referred to as a “filtering predicate”. FIG. 1A, FIG. 1B, and FIG. 1C are flowcharts that illustrates an overview of the steps involved in a query processing technique that implements one embodiment of the invention. Atblock102 in FIG. 1, it is determined whether there is at least one filtering predicate, in the immediate outer query block, that is associated with a ranking function that is in the current query block. If it is determined that there is at least one filtering predicate in the outer query block associated with a ranking function, then atblock106 of FIG. 1B, the first filtering predicate in the outer query block is chosen as a potential candidate for push-down, and the associated ranking function is designated as the corresponding target ranking function. The target ranking function is herein defined to be the ranking function for which the window sort computation involves a filtering predicate push-down. In one embodiment, if there are more than one filtering predicate in the outer query block and each filtering predicate is associated with a ranking function in the query block, then the filtering predicate that can filter out the most rows of data is chosen as the potential candidate for push-down. Otherwise, atblock104 of FIG. 1A, the process is at an end because no predicate qualifies for push-down.
Atblock108 of FIG. 1B, it is determined whether all the window functions in the query block are in the same ordering group. An ordering group is a set of window functions that have ordering requirements that can be satisfied by a single sort operation. The concept of Ordering Groups may be illustrated by the following example.
Assume that a query contains the following multiple window functions A1, A2, A3:
A1) SUM (sales) OVER (PARTITION BY region) sum_region,
A2) SUM (sales) OVER (PARTITION BY region, state) sum_region_state,
A3) RANK ( ) OVER (PARTITION BY region ORDER BY sales DESC) rank.
Each of the above window functions requires a sort operation. Window function A1 requires a sort on “region”. Window function A2 requires a sort on “region, state”. Window function A3 requires a sort on “region, sales DESC”. However, by simply sorting the data once on “region, state” only, both window functions A1 and A2 would be satisfied in one sorting opeation. Thus, window functions A1 and A2 may be grouped together as an Ordering Group because they can be satisfied by a single sort operation by sorting on “region, state”. The remaining Window function A3 would then be classified as another Ordering Group by default. However, if, for example, the above query contains an additional window function A4 that requires a sort on “sales DESC”, then window functions A3 and A4 may be grouped as an Ordering Group because they can be satisfied by a single sort operation by sorting on “region, sales DESC”.
If it is determined that all the window functions in the query block belong to the same ordering group, then atblock110 of FIG. 1B, it is determined whether the window functions satisfy the push-down conditions. The set of push-down conditions are herein described in greater detail with reference to FIG.2 through FIG.6. If, atblock110, it is determined that the window functions satisfy the push-down conditions, then the filtering predicate qualifies for push-down as indicated byblock114 of FIG.1B. Otherwise, atblock112 of FIG. 1B, it is determined whether there is another filtering predicate in the immediate outer query block that is associated with a ranking function in the query block. If it is determined that there is another filtering predicate in the immediate outer query block that is associated with a ranking function in the query block, then control returns to block106. Otherwise, control returns to block104 of FIG. 1A because no filtering predicate qualifies for push-down.
Atblock108, if it is determined that not all the window functions in the query block are in the same ordering group as that of the target ranking function, then atblock116 of FIG. 1C, it is determined whether there are any window functions in the query block that are in the same ordering group as that of the target ranking function. If it is determined that there are no other window functions in the query block that are in the same ordering group as that of the target ranking function, then the filtering predicate qualifies for push-down into the window sort of the target ranking function. However, the window sort of the target window is computed after computing the window sorts in the query block of all window functions that are in a different ordering group than that of the target ranking function as indicated byblock120.
Atblock116, if it is determined that there are some window functions in the query block that are in the same ordering group as that of the target ranking function, then atblock118 of FIG. 1C, it is determined whether those window functions that are in the same ordering group as that of the target ranking function satisfy the push-down conditions. If the window functions satisfy the push-down conditions, then control passes to block120 of FIG.1C. Otherwise, control passes to block112 of FIG.1B.
PUSH-DOWN CONDITIONS
A set of push-down conditions must be met before the push-down technique may be employed. The set of push-down conditions is explained with reference to FIG.2 through FIG.6. All the conditions in the set of push-down conditions need to be satisfied before a filtering predicate can be pushed down into the window sort operation of the target ranking function.
FIG. 2 is a flowchart that illustrates the condition to be satisfied by the filtering predicate associated with the target ranking function. At block202, it is determined whether the filtering predicate is of the form:
“P<relational operator><constant>”
where P can be Rank, Dense_Rank and Row_Number
If, at block202, it is determined that the filtering predicate is of the form “P<relational operator><constant>”, then at block204, it is determined whether the relational operator is from the set {<,<=, =}. If the relational operator is from the set {<,<=, =}, then the condition is satisfied by the filtering predicate, as indicated atblock206. If the relational operator is not from the set {<,<=, =}, then the condition is not satisfied by the filtering predicate, and the predicate may not be pushed down into the window sort computation of the target ranking function, as indicated atblock208.
If, at block202, it is determined that the filtering predicate is not of the form “P<relational operator><constant>”, then atblock210, it is determined whether the filtering predicate is of the form:
“<constant><relational operator>P”
where P is the rank
If, atblock210, it is determined that the filtering predicate is not of the form “<constant><relational operator>P”, then the condition is not satisfied and control passes to block208. Otherwise, if it is determined that the filtering predicate is of the form “<constant><relational operator>P”, then atblock212, it is determined whether the relational operator is from the set {>, >=, =}. If the relational operator is not from the set {>,>=, }, then the condition is not satisfied and control passes to block208. If the relational operator is from the set {>, >=, =}, then atblock214, the filtering predicate, P, is converted to the form “P<relational operator><constant>”. Control then passes to block204. For example, 10>P is converted to P<10 and 10>=P is converted to P<=10.
When the filtering predicate is of the form “P =<constant>”, the relational operator, “=” is converted to “<=” before the predicate is pushed down into the window sort operation. The filtering predicate is reset to “=” in the final filtering run.
The condition that the filtering predicate be of the form “P<relational operator><constant>” where the relational operator is from the set {<,<=} ensures that data is inadvertently filtered out in individual runs during a push-down window sort computation of the target ranking function because ranking functions return integer values in increasing order. The use of individual runs and the execution of push-down window sort computations are described herein in greater detail in the subsection entitled “SERIAL EXECUTION WITH PUSH-DOWN OPTIMIZATION”.
FIG. 3 is a flowchart that illustrates the condition that is to be satisfied by unordered window functions in the query block, and which unordered window functions are in the same ordering group as that of the target ranking function. Atblock302, all unordered window functions that are in the same ordering group as that of the target ranking function are identified in the query block. Atblock304, it is determined whether the granularity of the “Partition By” clause of each identified unordered window function is of equal or finer granularity than the granularity of the concatenation of the “Partition By” and “Order By” clauses of the target ranking function. If it is determined that the granularity of the “Partition By” clause of each identified unordered window function is of equal or finer granularity than the granularity of the concatenation of the “Partition By” and “Order By” clauses of the target ranking function, then the condition is satisfied as indicated byblock306. Otherwise, the condition is not satisfied, and the filtering predicate may not be pushed down into the window sort of target ranking function, as indicated byblock308.
For example, if the target ranking function and an unordered window function in the query block are respectively,
Sum(sal) Over (Partition By x, y)
The “Partition By” clause of the target ranking function is, P( )={x}
The “Order By” clause of the target ranking function is, O( )={y}
If the concatenation of the “Partition By” and “Order By” clauses of the target ranking function is denoted by G( ), then
G( )=P( )∥O( )
Thus, G( )={x, y}
The above sample unordered window function “Sum(sal) Over (Partition By x, y)” may be satisfied by a sort on x, y. Similarly, the target ranking function “Rank( ) Over (Partition By x Order By y” may be satisfied by a sort on x, y. Thus, the above sample target ranking function and unordered window function comprise an ordering group. The “Partition By” clause of the unordered window function “Sum(sal) Over (Partition By x, y)” is
P( ) of unordered window function={x, y}
Thus, P( ) of unordered window function=G( ) of the target ranking function. If, for example, the unordered window function is “Sum(sal) Over (Partition By x, y, z)”, it would still satisfy the condition as expressed atblock304 of FIG. 3 because.
P( ) of unordered window function={x, y, z}
Thus, P( ) of unordered window function is of finer granularity than G( ) of the target ranking function.
However, if the unordered window function is “Sum(sal) Over (Partition By x)”, it would not satisfy the condition as expressed atblock304 of FIG. 3 because
P( ) of unordered window function={x}, which is of coarser granularity than G( ) of the target ranking function.
FIG. 4 is a flowchart that illustrates the condition that is to be satisfied by all other ranking functions in the query block, and which ranking functions are in the same ordering group as that of the target ranking function. At block402, all ranking functions that are in the same ordering group as that of the target ranking function are identified in the query block. Atblock404, it is determined whether the granularity of the “Partition By” clause of each identified ranking function is of equal or finer granularity than the granularity of the “Partition By” clause of the target ranking function. If it is determined that the granularity of the “Partition By” clause of each identified ranking function is not of equal or finer granularity than the granularity of the “Partition By” clause of the target ranking function, then the condition is not satisfied, and the filtering predicate may not be pushed down into the window sort computation of the target ranking function, as indicated atblock410.
If, atblock404, it is determined that the granularity of the “Partition By” clause of each identified ranking function is of equal or finer granularity than the granularity of the “Partition By” clause of the target ranking function, then atblock406, it is determined whether, for each identified ranking function whose “Partition By” clause has a granularity equal to the granularity of the “Partition By” clause of the target ranking function, the granularity of the “Order By” clause is of equal or finer granularity than the granularity of the “Order By” clause of the target ranking function. If it is determined that the granularity of the “Order By” clause is of equal or finer granularity than the granularity of the “Order By” clause of the target ranking function, then the condition is satisfied, as indicated atblock408. Otherwise, control passes to block410.
For example, if the target ranking function and other ranking functions in the query block are respectively,
F: Rank( ) Over (Partition By x Order By y)
F1: Rank( ) Over (Partition By x, y Order By z)
F2: Rank( ) Over (Partition By x Order By y, z)
The “Partition By” clause of the ranking function is P( ) of F={x}
The “Order By” clause of the ranking function is O( ) of F={y}
In the above example, ranking functions, F1 and F2, may be satisfied by a sort operation on x, y, z. The same sort operation on x, y, z may be used to satisfy the target ranking function, F=Rank( ) Over (Partition By x Order By y). Thus, F, F1, F2 comprise an ordering group.
The “Partition By” clause of F1 is P( ) of F1 {x, y}. Thus, F1 satisfies the condition ofblock404 in FIG. 4 because the granularity of P( ) of F1 is of finer granularity than the granularity of P( ) of F. Similarly, the “Partition By” clause of F2 is P( ) of F2={x}. Thus, F2 satisfies the condition as indicated byblock404 because the granularity of P( ) of F2 is of equal granularity as the granularity of P( ) of F. Further, F2 satisfies the condition ofblock406 because the “Order By” clause of F2 is O( ) of F2={y, z}. Thus, the granularity of O( ) of F2 is finer than the granularity of O( ) of F.
However, assume there exists in the query block another ranking function such as,
F3: Rank( ) Over (Order By x)
The “Partition By” clause of F3 is the null set. Thus, F3 would not satisfy the condition as expressed atblock404 because.
P( ) of F3={ }, which is of coarser granularity than P( ) of F={x}, where F is the target ranking function.
FIG. 5 is a flowchart that illustrates the condition that is to be satisfied by all ordered window functions with ROWS option in the query block, and which window functions are in the same ordering group as that of the target ranking function. At block502, all window functions with ROWS option that are in the same ordering group as that of the target ranking function are identified in the query block. Atblock504, it is determined whether the granularity of the “Partition By” clause of each identified ordered window function with ROWS option is of equal or finer granularity than the granularity of the “Partition By” clause of the target ranking function. If it is determined that the granularity of the “Partition By” clause of each identified ordered window function is not of equal or finer granularity than the granularity of the “Partition By” clause of the target ranking function, then the condition is not satisfied, and the filtering predicate may not be pushed down into the window sort computation of the target ranking function, as indicated atblock506. Otherwise, if the granularity of the “Partition By” clause of each identified ordered window function is of equal or finer granularity than the granularity of the “Partition By” clause of the target ranking function, then atblock508 it is determined if the window size of each identified ordered window function only extends to N rows preceding the current row on which the ordered window function is operating, and where N is any positive integer number. If it is determined that the window size of each identified ordered window function only extends to N rows preceding the current row on which the ordered window function is operating, then the condition is satisfied, as indicated atblock510. Otherwise, control passes to block506.
For example, if the target ranking function and the ordered window functions with ROWS option in the query block are respectively,
F: Rank( ) Over (Order By x)
F1: Sum(sal) Over (Order By xROWS 1 preceding)
F2: Sum(sal) Over (Partition By x OrderBy y ROWS 1 preceding)
The “Partition By” clause of the ranking function is P( ) of F={ }
The “Order By” clause of the ranking function is O( ) of F={y}
In the above example, ordered window functions with ROWS option, F1 and F2, may be satisfied by a sort operation on x, y. The same sort operation on x, y may be used to satisfy the target ranking function, F=Rank( ) Over (Order By x). Thus, F, F1, F2 comprise an ordering group.
The “Partition By” clause of F1 is P( ) of F1={ }. Thus, F1 satisfies the condition ofblock504 in FIG. 5 because the granularity of P( ) of F1 is equal to the granularity of P( ) of F. Similarly, the “Partition By” clause of F2 is P( ) of F2={x}. Thus, F2 satisfies the condition as indicated byblock504 because the granularity of P( ) of F2 is finer than the granularity of P( ) of F.
Recall that the filtering predicate of the target ranking function is from the set {<,<=}. Thus, only ordered window functions with “ROWS PRECEDING” the current row of operation will operate on a correct set of data because the pushed down filtering predicate of the target ranking function will have ordered and filtered out rows of data “FOLLOWING” the current row of operation. In the example, F1, F2, each have a window size that extends to N ROWS preceding. In the example, N=1. The window size extends to one row preceding the current row of operation and thus satisfies the condition as expressed atblock508 of FIG.5. However, assume there exists in the query block another ordered window function with ROWS option such as,
FF: Sum(sal) Over (Order By x ROWS 20 following)
The window size of FF extends to 20 rows following the current row of operation. Thus, FF would not satisfy the condition as expressed atblock508.
In another embodiment of the invention, the condition of N ROWS preceding may be relaxed as illustrated by the following example. Assume that F is the target ranking function and F1 . . . F6 are window functions that are ordered with ROWS option.
F: P(X,Y,Z)O(A,B,C)
F1: P(X,Y,Z)O(A,B,C)
F2: P(X,Y,Z)O(A,B,C,D)
F3: P(X,Y,Z)O(A,B)
F4: P(X,Y,Z,A)O(B)
F5: P(X,Y,Z.A)O(B,C)
F6: P(X,Y,Z,A)O(B,C,D)
The window size corresponding to each of the above functions is described in TABLE WS below.
TABLE WS
Window FunctionWindow can extend up to (or window size)
F1Current row
F2Any row preceding or following the current
row, i.e., any window size
F3At least one row preceding current row
F4Any row preceding or following the current
row, i.e., any window size
F5Any row preceding or following the current
row, i.e., any window size
F6Any row preceding or following the current
row, i.e., any window size
For F1, the window size may extend up to N rows preceding the current row or to the current row itself. For F2, the window size may extend to rows preceding or following the current row, i.e., there are no restrictions to the window size. For F3, the window size may extend to at least one row preceding the current row. For F4, F5, F6, the window size may extend to rows preceding or following the current row, i.e., there are no restrictions to the window size.
FIG. 6 is a flowchart that illustrates the condition that is to be satisfied by all ordered window functions with RANGE option in the query block, and which window functions are in the same ordering group as that of the target ranking function. Atblock602, all window functions with RANGE option that are in the same ordering group as that of the target ranking function are identified in the query block. Atblock604, it is determined whether the granularity of the “Partition By” clause of each identified ordered window function with RANGE option is of equal or finer granularity than the granularity of the concatenation of the “Partition By” and “Order By” clauses of the target ranking function. If it is determined that the granularity of the “Partition By” clause of each identified ordered window function is not of equal or finer granularity than the granularity of the concatenation of the “Partition By” and “Order By” clauses of the target ranking function, then the condition is not satisfied, and the filtering predicate may not be pushed down into the window sort computation of the target ranking function, as indicated at block606. Otherwise, if the granularity of the “Partition By” clause of each identified ordered window function is of equal or finer granularity than the granularity of the concatenation of the “Partition By” and “Order By” clauses of the target ranking function, then atblock608 it is determined if the window size of each identified ordered window function only extends to N rows preceding the current row on which the ordered window function is operating, and where N is any positive integer number. If it is determined that the window size of each identified ordered window function only extends to N rows preceding the current row on which the ordered window function is operating, then the condition is satisfied, as indicated atblock610. Otherwise, control passes to block606. However, in another embodiment of the invention, the N rows preceding condition may be relaxed as explained herein with respect to the ROWS option above.
If the target ranking function and the ordered window functions with RANGE option in the query block are respectively,
F: Rank( ) Over (Order By x, y)
F1: Sum(sal) Over (Partition By x, y Order By aRANGE 1 preceding)
The “Partition By” clause of the ranking function is P( ) of F={ }
The “Order By” clause of the ranking function is O( ) of F={x, y}
If the concatenation of the “Partition By” and “Order By” clauses of the target ranking function is denoted by G( ), then
G( )=P( )∥O( )
Thus, G( )={x, y}
In the above example, ordered window function with RANGE option, F1, may be satisfied by a sort operation on x, y, a. The same sort operation on x, y, a may be used to satisfy the target ranking function, F=Rank( ) Over (Order By x, y). Thus, F, F1 comprise an ordering group.
The “Partition By” clause of F1 is P( ) of F1={x, y}. The granularity of P( ) of F1 is equal to the granularity of G( ) of F. Thus, F1 satisfies the condition as indicated byblock604.
In the example, F1 has a window size that extends to RANGE N preceding. In the example, N=1. The window size extends to one row preceding the current row of operation and thus satisfies the condition as expressed atblock608 of FIG.6. However, assume there exists in the query block another ordered window function with RANGE option such as,
F2: Sum(sal) Over (Order By x, RANGE between current row and 20 following)
The window size of F2 extends to a RANGE of 20 following the current row of operation. Thus, F2 would not satisfy the condition as expressed atblock608. For example:
F1: Rank( ) Over( Order By x)
F2: Sum(sal) Over (Order By x, RANGE between current row and 20 following)
Let P<=3
Assume that the data values for x, sal, Rank( ) Over( Order By x) and Sum(sal) Over (Order By x, RANGE between current row and 20 following) are as indicated in Table EMPDATA below.
EMPDATA
XSalRank() OverSum(sal) Over
110140
220250
310360
420490
5305120
6406100
750760
810810
Assume x=3 is the current row of operation. For the current row x=3, the window extends from x=3 to x=5. Thus, if the filtering predicate P<=3 is applied during the sort operation then the rows where x>3 will be filtered out, and F1 for the current row will be incorrectly computed as 10 instead of 60.
SERIAL EXECUTION WITH PUSH-DOWN OPTIMIZATION
For the purpose of illustrating the push-down technique during a serial execution of a query block, a comparison is made between the serial execution of a window sort operation without a filtering predicate push-down and the serial execution window sort operation with a filtering predicate push-down. The following query block and data set are used as examples in the illustration of the push-down technique. Assume that the target ranking function in the query block and the corresponding filtering predicate in the outer query block are respectively:
Rank( ) over (Order By x) RK
SELECT
From (Select Rank( ) Over (Order By x) Rk, F1, . . . Fn)
Where Rk<=3
Further assume that the window functions F1, . . . FN in the query block are in the same ordering group as the target ranking function and that they satisfy all the push-down conditions as described herein. Assume that the data set upon which the window sort operates is,
column x={5,1,2,3,4,6,1,2,3,5,5,5,7,4,6}
During serial execution of a window sort operation without a filtering predicate push-down, data items from the data set upon which the sort operation is performed are read into memory for performing the sort operation until the memory is exhausted. When the memory is exhausted, the sorted data items in memory is written to disk in order to reuse the memory for reading in more data items from the data set and performing the sort operation. Thus, at any given time, only one subset of the data set is read into memory for performing the sort operation. Each subset of sorted data items that is written to disk is herein referred to as a “sort run”. Thus, the number of sort runs depends on the size of the data set and the amount of memory available for the sort operation. Each data item within each sort run is sorted with respect to the other data items in the sort run, according to the sort criterion specified by the target ranking function. However, the data items in each sort run may not be sorted with respect to data items in other sort runs. The sort operation is not complete until the data items in each sort run are sorted with respect to data items in other sort runs. Thus, the sort runs are merged in order to complete the sort operation. Depending on the size of the data set and the amount of memory available to the sort operation, several levels of merging sort runs may be required to complete the sort operation. Each level of merging sort runs is herein referred to as a “merge pass”. The sort run resulting from the final merge pass is herein referred to as a “final sort run”.
Using the above example query block and data set, sort runs may appear as follows. For purposes of simplicity, assume the memory is exhausted after reading and sorting a subset of the data set comprising 5 data items at a time and that only one merge pass is required to complete the sort operation.
SortRun1={1,2,3,4,5} corresponding to reading and sorting the subset {5,1,2,3,4}
Sort Run2={1,2,3,5,6} corresponding to reading and sorting the subset {6,1,2,3,5}
Sort Run3={4,5,5,6,7} corresponding to reading and sorting the subset {5,5,7,4,6}
The final sort run after the merge pass={1,1,2,2,3,3,4,4,5,5,5,5,5,6,6,7}
Thus, the serial execution of a window sort operation of the target ranking function, “Rank( ) over (Order By x) RK”, without a filtering predicate push-down produces the result set {1,1,2,2,3,3,4,4,5,5,5,5,5,6,6,7}. The filtering predicate RK<=3 is applied only to the final sort run when there is no push-down. In order to apply the filtering predicate to the final sort run, the data items in the final sort run are ranked. Once the data items are ranked, only the data items satisfying the filtering conditions are retained. For example,
Final Sort Run before applying1,1,2,2,3,3,4,4,5,5,5,5,5,6, 6, 7
filtering predicate:
Rank:1,1,3,3,5,5,7,7,9,9,9,9,9,14,14,16
Then,
Final Sort Run after applyingfiltering1, 1, 2, 2
predicate RK <= 3 is:
In contrast, the sort runs resulting from the serial execution of a window sort operation with a filtering predicate push-down contain data items that are ordered, ranked and filtered with respect to every other data item within the sort run.
As before, for purposes of simplicity, assume the memory is exhausted after reading and sorting a subset of the data set comprising 5 data items at a time and that only one merge pass is required to complete the sort operation. The filtering predicate RK<=3 is pushed down into the individual sort runs. Thus, each sort run contains data items that are ordered with respect to every other data item within the sort run, and each sort run contains only data items that have a rank of less than or equal to 3. In order to apply the filtering predicate to a sort run, the sorted data in the sort run is ranked. Once the data is ranked, only the data items above the rank specified by the filtering predicate (top-N ranks) is retained before the sort run is written to disk. The filtering predicate is pushed down into sort runs at every merger pass including the final sort run.
Thus, the sort runs resulting from the serial execution of a window sort operation with a filtering predicate push-down using the above example query block and data set may appear as follows:
Sort Run 1 before applying filtering predicate:1,2,3,4,5
Rank:1,2,3,4,5
Sort Run 1 after applying filtering predicate:1,2,3
Sort Run 2 after applying filtering predicate:1,2,3,5,6
Rank:1,2,3,4,5
Sort Run 2 after applying filtering predicate:1,2,3
Sort Run 3 after applying filtering predicate:4,5,5,6,7
Rank:1,2,2,4,5
Sort Run 3 after applying filtering predicate:4,5,5
The final sort run before applying filtering predicate:1,1,2,2,3,3,4,5,5
Rank:1,1,3,3,5,5,7,8,8
The final sort run after applying filtering predicate:1,1,2,2
As can be seen from the above example, less data needs to be processed at each merge pass because the filtering predicate that has been pushed down to the sort filters out rows that have ranks greater than the rank specified by the filtering predicate. The cost savings thus realized by pushing filtering predicates down into the window sort computation may be substantial in typical scenarios where window functions operate on massive datasets.
PARALLEL EXECUTION WITH PUSH-DOWN OPTIMIZATION
Push-down optimization may implemented when queries are executed in parallel. For the purpose of explanation, push-down optimization is described using the following TOP-N query:
SELECT x, y, RK
FROM (SELECT x, y
RANK (Partition By x Order By y DESC) as RK
FROM EmpTable)
Where RK<=3
The query is decomposed into its constituent parts, called row sources. Each row source corresponds to an operation that produces rows. Row sources may be connected to form a tree-like structure, which describes the execution plan of the above query.
FIG. 7 illustrates therow source tree 700 associated with the parallel execution of the above TOP-N query. For parallel execution of queries, row source tree is decomposed into a data-flow operator (DFO) tree. A DFO is a logical piece of query execution assigned to slave processes. A DFO can contain one or more row sources. Data transmission across DFOs (i.e., across slave processes) is done through Table Queues (TQ). TQs manage data flow for load distribution amongst slave processes. In FIG. 7, row sources grouped in ovals, representDFOs702,706, which are associated with the parallel execution of the given Top-N query. In one embodiment, the pushdown optimization is implemented by pushing the filtering predicate into the window sort of the rank computation.DFO702 scans rows of data (data items) from Emp table. Assuming the degree of parallelism to be 2,DFO702 is assigned to slave processes S1 and S2, which perform the table scan while DFO706 is assigned to slave processes S3 and S4, which perform the window sort computation. Assume that the data set upon which the above mentioned ranking function operates is shown below:
EmpTable
XY
11
22
33
14
25
36
11
22
33
34
25
16
37
28
19
Slaves S1 and S2 each read subset of data items from the Emp Table and transmit them to slaves S3 and S4 via the table queue,TQ704.TQ704 partitions the data such that work load is evenly distributed across slaves S3 and S4. Assume that TQ affects hash partitioning on x and that x={1,3 } are assigned to slave process S3 while x={2} is assigned to slave process S4. Slave processes S3 and S4 perform the window sort operation on their respective partitions of data by pushing the filtering predicate on RANK into sort. The sorted and ranked data items associated with S3 and S4 may appear as follows:
S3S4
XYrankxyrank
111221
111221
143253
164253
195285
331
331
343
364
375
After the data items in each partition are ranked, the filtering predicate RK<=3 is applied to the sorted data items to filter out data items with rank that is greater than 3. The filtered subsets of data items associated S3 and S4 may appear as follows:
S3S4
xYrankxyrank
111221
111221
143253
331253
331
343
Thus, the result set corresponding to the above Top-N query is obtained by combining the result sets from slaves S3 and S4, and may appear as follows:
xyRank
111
111
143
221
221
253
253
331
331
343
Note that in the above scheme, the entire data set needs to be transmitted through the table queue,TQ704. In another embodiment, this communication cost between slaves {S1, S2 } and {S3, S4} is reduced drastically by pushing window sort computation to slaves S1 and S2. Slaves S1 and S2 not only scan their respective data set, but also rank them and filter unnecessary (rows not satisfying filtering predicate) rows. In this way, less data needs to be transmitted through the table queue thus reducing the time taken to evaluate the query.
To illustrate, the push-down optimization is described using the following TOP-N query and data set of EmpTable:
SELECT x, y, RK
FROM(SELECT x, y
RANK (Partition By x Order By y DESC) as RK
FROM EmpTable)
Where RK<=2
EmpTable
XY
11
22
33
14
25
36
11
22
33
34
25
16
37
28
19
FIG. 8 illustrates the row source and DFO tree associated with the parallel execution of the above Top-N query. FIG. 8 comprisesDFO802, DFO806 andTable Queue TQ804. Unlike the DFO tree of FIG. 7,DFO802 contains a window sort row source with filtering predicate pushed in. This row source is referred to as window child to differentiate it from the window sort row source of DFO806. Assuming the degree of parallelism to be 2, slaves S1 and S2 are assigned toDFO802 while slaves S3 and S4 are assigned to DFO806. The slave processes S1 and S2 perform table scan on Emp Table. In addition, they perform window child sort operation with the pushed down filtering predicate associated with “RANK (Partition By x Order By y DESC)”. Assume that S1 is assigned to work on the first 8 data items of EmpTable, and that S2 is assigned the remaining data items of EmpTable. Thus, the sorted and ranked data items associated with S1, and S2 may appear as:
S1S2
xyrankxyRank
111161
111192
143251
221282
221331
253342
331373
362
By applying the filtering predicate RK<=2, which is associated with “RANK (Partition By x Order By y DESC)”, only data item with rank greater than 2 are transferred up the DFO tree to the window sort with push-down rank DFO806. Thus, the subsets of filtered data items associated with S1 and S2 that are to be transferred to DFO806 may appear as follows:
S1S2
xyrankxyRank
111161
111192
221251
221282
331331
362342
Before the sorted and filtered data is transferred to the window sort with push-down rank DFO806,Table Queue804 partitions the respective subset of data items of S1 and S2 in order to distribute the workload among slave processes S3, S4 at the window sort with push-down rank DFO 806. Assume that a hash partitioning is performed on x. Assume that x={1,3} is assigned to slave process S3 and that x={2} is assigned to slave process S4. In the push-down optimization, slave processes S3 and S4 perform the window sort operation on their respective partitions of data by pushing the filtering predicate into “RANK (Partition By x Order By y DESC)”. The sorted and ranked data items associated with S3 and S4 may appear as follows:
S3S4
xyrankxyRank
111221
111221
163253
194284
331
331
343
364
After the data items in each partition are ranked, the filtering predicate RK<=2 is applied to the sorted data to filter out rows of data with rank that is greater than 2. The filtered data of S3 and S4 appear as:
S3S4
xyrankxyRank
111221
111221
331
331
Thus, the result set corresponding to the above example TOP-N query is obtained by merging the filtered subsets of data items of S3 and S4 as follows:
xyRank
111
221
221
331
33
HARDWARE OVERVIEW
FIG. 9 is a block diagram that illustrates acomputer system900 upon which an embodiment of the invention may be implemented.Computer system900 includes abus902 or other communication mechanism for communicating information, and aprocessor904 coupled withbus902 for processing information.Computer system900 also includes amain memory906, such as a random access memory (RAM) or other dynamic storage device, coupled tobus902 for storing information and instructions to be executed byprocessor904.Main memory906 also may be used for storing temporary variables or other intermediate information during execution of instructions to be executed byprocessor904.Computer system900 further includes a read only memory (ROM)908 or other static storage device coupled tobus902 for storing static information and instructions forprocessor904. Astorage device910, such as a magnetic disk or optical disk, is provided and coupled tobus902 for storing information and instructions.
Computer system900 may be coupled viabus902 to adisplay912, such as a cathode ray tube (CRT), for displaying information to a computer user. Aninput device914, including alphanumeric and other keys, is coupled tobus902 for communicating information and command selections toprocessor904. Another type of user input device iscursor control916, such as a mouse, a trackball, or cursor direction keys for communicating direction information and command selections toprocessor904 and for controlling cursor movement ondisplay912. This input device typically has two degrees of freedom in two axes, a first axis (e.g., x) and a second axis (e.g., y), that allows the device to specify positions in a plane.
The invention is related to the use ofcomputer system900 for implementing the techniques described herein. According to one embodiment of the invention, those techniques are implemented bycomputer system900 in response toprocessor904 executing one or more sequences of one or more instructions contained inmain memory906. Such instructions may be read intomain memory906 from another computer-readable medium, such asstorage device910. Execution of the sequences of instructions contained inmain memory906 causesprocessor904 to perform the process steps described herein. In alternative embodiments, hard-wired circuitry may be used in place of or in combination with software instructions to implement the invention. Thus, embodiments of the invention are not limited to any specific combination of hardware circuitry and software.
The term “computer-readable medium” as used herein refers to any medium that participates in providing instructions toprocessor904 for execution. Such a medium may take many forms, including but not limited to, non-volatile media, volatile media, and transmission media. Non-volatile media includes, for example, optical or magnetic disks, such asstorage device910. Volatile media includes dynamic memory, such asmain memory906. Transmission media includes coaxial cables, copper wire and fiber optics, including the wires that comprisebus902. Transmission media can also take the form of acoustic or light waves, such as those generated during radio-wave and infra-red data communications.
Common forms of computer-readable media include, for example, a floppy disk, a flexible disk, hard disk, magnetic tape, or any other magnetic medium, a CD-ROM, any other optical medium, punchcards, papertape, any other physical medium with patterns of holes, a RAM, a PROM, and EPROM, a FLASH-EPROM, any other memory chip or cartridge, a carrier wave as described hereinafter, or any other medium from which a computer can read.
Various forms of computer readable media may be involved in carrying one or more sequences of one or more instructions toprocessor904 for execution. For example, the instructions may initially be carried on a magnetic disk of a remote computer. The remote computer can load the instructions into its dynamic memory and send the instructions over a telephone line using a modem. A modem local tocomputer system900 can receive the data on the telephone line and use an infra-red transmitter to convert the data to an infra-red signal. An infra-red detector can receive the data carried in the infra-red signal and appropriate circuitry can place the data onbus902.Bus902 carries the data tomain memory906, from whichprocessor904 retrieves and executes the instructions. The instructions received bymain memory906 may optionally be stored onstorage device910 either before or after execution byprocessor904.
Computer system900 also includes acommunication interface918 coupled tobus902.Communication interface918 provides a two-way data communication coupling to anetwork link920 that is connected to alocal network922. For example,communication interface918 may be an integrated services digital network (ISDN) card or a modem to provide a data communication connection to a corresponding type of telephone line. As another example,communication interface918 may be a local area network (LAN) card to provide a data communication connection to a compatible LAN. Wireless links may also be implemented. In any such implementation,communication interface918 sends and receives electrical, electromagnetic or optical signals that carry digital data streams representing various types of information.
Network link920 typically provides data communication through one or more networks to other data devices. For example,network link920 may provide a connection throughlocal network922 to ahost computer924 or to data equipment operated by an Internet Service Provider (ISP)926.ISP926 in turn provides data communication services through the world wide packet data communication network now commonly referred to as the “Internet”928.Local network922 andInternet928 both use electrical, electromagnetic or optical signals that carry digital data streams. The signals through the various networks and the signals onnetwork link920 and throughcommunication interface918, which carry the digital data to and fromcomputer system900, are exemplary forms of carrier waves transporting the information.
Computer system900 can send messages and receive data, including program code, through the network(s),network link920 andcommunication interface918. In the Internet example, aserver930 might transmit a requested code for an application program throughInternet928,ISP926,local network922 andcommunication interface918. In accordance with the invention, one such downloaded application implements the techniques described herein.
The received code may be executed byprocessor904 as it is received, and/or stored instorage device910, or other non-volatile storage for later execution. In this manner,computer system900 may obtain application code in the form of a carrier wave.
SCOPE
In the foregoing specification, the invention has been described with reference to specific embodiments thereof. It will, however, be evident that various modifications and changes may be made thereto without departing from the broader spirit and scope of the invention. The specification and drawings are, accordingly, to be regarded in an illustrative rather than a restrictive sense.

Claims (26)

What is claimed is:
1. A method for execution of a query containing a set of one or more window functions, the method comprising the computer implemented steps of: for each subset of a plurality of subsets of data items:
ranking, based on a target ranking function, data items within the subset relative to other data items within the subset; and
filtering, based on a filtering predicate that is associated with the target ranking function, data items from the subset;
wherein the target ranking function is in the set of one or more window functions.
2. The method ofclaim 1, further comprising the step of selecting the target ranking function from a plurality of ranking functions in the set of one or more window functions.
3. The method ofclaim 2, wherein the step of selecting the target ranking function comprises the steps of:
determining that there is at least one predicate appearing in an outer query block associated with a ranking function in the set of window functions;
selecting as the filtering predicate a first-to-appear predicate appearing in the outer query block; and
selecting as the target ranking function the ranking function corresponding to the filtering predicate.
4. The method ofclaim 2, wherein the step of selecting the target ranking function comprises the steps of:
determining that there is at least one predicate appearing in an outer query block associated with a ranking function in the set of window functions;
selecting as the filtering predicate a most restrictive predicate appearing in the outer query block, wherein the most restrictive predicate filters out the most amount of data items in response to a window sort operation corresponding to the target ranking function; and
selecting as the target ranking function the ranking function corresponding to the filtering predicate.
5. The method ofclaim 1, further comprising the steps of:
determining whether all the window functions in the set of one or more window functions belong to a same ordering group;
determining whether the set of one or more window functions satisfy a predetermined set of push-down criteria when all the window functions in the set of one or more window functions belong to the same ordering group; and
computing a window sort operation corresponding to the target ranking function after computing all other window functions in the set of one or more window functions when not all the window functions in the set of one or more window functions belong to the same ordering group.
6. The method ofclaim 5, further comprising the steps of:
determining whether any subset of one or more window functions in the set of one or more window functions belong to the same ordering group as that of the target ranking function when not all the window functions in the set of one or more window functions belong to the same ordering group; and
determining whether the subset of one or more window functions satisfy the predetermined set of push-down criteria when there is a subset of one or more window functions in the set of one or more window functions that belong to the same ordering group as that of the target ranking function.
7. The method ofclaim 6, wherein the predetermined set of push-down criteria comprises:
the filtering predicate is of a form “P<relational operator><constant>”, wherein the relational operator is from the set {<,<=,=}, and wherein P is rank;
a granularity of a Partition By clause of each unordered window function in the set of one or more window functions, and which is the same ordering group as the target ranking function is at least of equal granularity as a granularity of a concatenation of a Partition By clause and an Order By clause of the target ranking function;
a granularity of a Partition By clause of each ranking function in the set of one or more window functions, and which is in the same ordering group as the target ranking function is at least of equal granularity as the granularity of the Partition By clause of the target ranking function, and for each ranking function Partition By clause of equal granularity as the granularity of the Partition By clause of the target ranking function, a granularity of an Order By clause of the ranking function is at least of equal granularity as the granularity of the Order By clause of the target ranking function;
a granularity of a Partition By clause of each ordered window function with ROWS option in the set of one or more window functions, and which is in the same ordering group as the target ranking function is at least of equal granularity as the granularity of the Partition By clause of the target ranking function; and
a granularity of a Partition By clause of each ordered window function with RANGE option in the set of one or more window functions, and which is in the same ordering group as the target ranking function is at least of equal granularity as the granularity of the concatenation of the Partition By clause and the Order By clause of the target ranking function.
8. The method ofclaim 7, wherein the ROWS option includes N rows preceding a current row of operation.
9. The method ofclaim 7, wherein the RANGE option includes N rows preceding a current row of operation.
10. The method ofclaim 1, wherein the step of ranking data items within the subset includes:
assigning the subset to a parallel process of a plurality of parallel processes; and
causing the parallel process to rank the data items within the assigned subset.
11. The method ofclaim 1, wherein the step of filtering data items is performed by the parallel process on data items within the assigned subset.
12. The method ofclaim 1, wherein the steps of ranking and filtering the data items are performed by a single process and include:
reading, sorting, ranking, and filtering data items that are within the subset; and
storing data items that are within the subset after filtering, is performed.
13. The method ofclaim 7, further comprising the steps of:
converting the filtering predicate to the form “P<=<constant>” before computing the window sort operation corresponding to the target ranking function when the relational operator is {=}; and
converting the filtering predicate back to the form “P=<constant>” in a final step in the window sort operation.
14. A computer-readable medium bearing instructions for execution of a query containing a set of one or more window functions, the computer-readable medium comprising instructions for performing the steps:
for each subset of a plurality of subsets of data items:
ranking, based on a target ranking functions, data items within the subset relative to other data items within the subset; and
filtering, based on a filtering predicate that is associated with the target ranking function, data items from the subset;
wherein the target ranking function is in the set of one or more window functions.
15. The computer-readable medium ofclaim 14, further comprising the step of selecting the target ranking function from a plurality of ranking functions in the set of one or more window functions.
16. The computer-readable medium ofclaim 15, wherein the step of selecting the target ranking function comprises the steps of:
determining that there is at least one predicate appearing in an outer query block associated with a ranking function in the set of window functions;
selecting as the filtering predicate a first-to-appear predicate appearing in the outer query block; and
selecting as the target ranking function the ranking function corresponding to the filtering predicate.
17. The computer-readable medium ofclaim 15, wherein the step of selecting the target ranking function comprises the steps of:
determining that there is at least one predicate appearing in an outer query block associated with a ranking function in the set of window functions;
selecting as the filtering predicate a most restrictive predicate appearing in the outer query block, wherein the most restrictive predicate filters out the most amount of data items in response to a window sort operation corresponding to the target ranking function; and
selecting as the target ranking function the ranking function corresponding to the filtering predicate.
18. The computer-readable medium ofclaim 14, further comprising the steps of:
determining whether all the window functions in the set of one or more window functions belong to a same ordering group;
determining whether the set of one or more window functions satisfy a predetermined set of push-down criteria when all the window functions in the set of one or more window functions belong to the same ordering group; and
computing a window sort operation corresponding to the target ranking function after computing all other window functions in the set of one or more window functions when not all the window functions in the set of one or more window functions belong to the same ordering group.
19. The computer-readable medium ofclaim 18, further comprising the steps of:
determining whether any subset of one or more window functions in the set of one or more window functions belong to the same ordering group as that of the target ranking function when not all the window functions in the set of one or more window functions belong to the same ordering group; and
determining whether the subset of one or more window functions satisfy the predetermined set of push-down criteria when there is a subset of one or more window functions in the set of one or more window functions that belong to the same ordering group as that of the target ranking function.
20. The computer-readable medium ofclaim 19, wherein the predetermined set of push-down criteria comprises:
the filtering predicate is of a form “P<relational operator><constant>”, wherein the relational operator is from the set {<,<=,=}, and wherein P is rank;
a granularity of a Partition By clause of each unordered window function in the set of one or more window functions, and which is the same ordering group as the target ranking function is at least of equal granularity as a granularity of a concatenation of a Partition By clause and an Order By clause of the target ranking function;
a granularity of a Partition By clause of each ranking function in the set of one or more window functions, and which is in the same ordering group as the target ranking function is at least of equal granularity as the granularity of the Partition By clause of the target ranking function, and for each ranking function Partition By clause of equal granularity as the granularity of the Partition By clause of the target ranking function, a granularity of an Order By clause of the ranking function is at least of equal granularity as the granularity of the Order By clause of the target ranking function;
a granularity of a Partition By clause of each ordered window function with ROWS option in the set of one or more window functions, and which is in the same ordering group as the target ranking function is at least of equal granularity as the granularity of the Partition By clause of the target ranking function; and
a granularity of a Partition By clause of each ordered window function with RANGE option in the set of one or more window functions, and which is in the same ordering group as the target ranking function is at least of equal granularity as the granularity of the concatenation of the Partition By clause and the Order By clause of the target ranking function.
21. The computer-readable medium ofclaim 20, wherein the ROWS option includes N rows preceding a current row of operation.
22. The computer-readable medium ofclaim 20, wherein the RANGE option includes N rows preceding a current row of operation.
23. The computer-readable medium ofclaim 14, wherein the step of ranking data items within the subset includes:
assigning the subset to a parallel process of a plurality of parallel processes; and
causing the parallel process to rank the data items within the assigned subset.
24. The computer-readable medium ofclaim 14, wherein the step of filtering data items is performed by the parallel process on data items within the assigned subset.
25. The computer-readable medium ofclaim 14, wherein the steps of ranking and filtering the data items are performed by a single process and include:
reading, sorting, ranking and filtering data items that are within the subset;
storing data items that are within the subset after filtering is performed.
26. The computer-readable medium ofclaim 20, further comprising the steps of:
converting the filtering predicate to the form “P<=<constant>” before computing the window sort operation corresponding to the target ranking function when the relational operator is {=}; and
converting the filtering predicate back to the form “P=<constant>” in a final step in the window sort operation.
US09/656,3042000-09-062000-09-06Method and apparatus for optimizing computation of OLAP ranking functionsExpired - LifetimeUS6622138B1 (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
US09/656,304US6622138B1 (en)2000-09-062000-09-06Method and apparatus for optimizing computation of OLAP ranking functions

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
US09/656,304US6622138B1 (en)2000-09-062000-09-06Method and apparatus for optimizing computation of OLAP ranking functions

Publications (1)

Publication NumberPublication Date
US6622138B1true US6622138B1 (en)2003-09-16

Family

ID=27805505

Family Applications (1)

Application NumberTitlePriority DateFiling Date
US09/656,304Expired - LifetimeUS6622138B1 (en)2000-09-062000-09-06Method and apparatus for optimizing computation of OLAP ranking functions

Country Status (1)

CountryLink
US (1)US6622138B1 (en)

Cited By (59)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20040103082A1 (en)*2002-11-262004-05-27Tran Brian T.High performance predicate push-down for non-matching predicate operands
US20040133567A1 (en)*2001-06-202004-07-08Oracle International CorporationRun-time optimizations of queries with SQL spreadsheet
US20050091123A1 (en)*2000-10-262005-04-28Gregg FreishtatSystems and methods to facilitate selling of products and services
US20050131880A1 (en)*2003-12-162005-06-16Oracle International CorporationExecuting nested subqueries of parallel table functions in the parallel single cursor model
US20050131877A1 (en)*2003-12-162005-06-16Oracle International CorporationExecuting filter subqueries using a parallel single cursor model
US6920460B1 (en)2002-05-292005-07-19Oracle International CorporationSystems and methods for managing partitioned indexes that are created and maintained by user-defined indexing schemes
US20050240570A1 (en)*2004-04-222005-10-27Oracle International CorporationPartial query caching
US20050251524A1 (en)*2004-05-062005-11-10Vikram ShuklaMethod and apparatus for using a hash-partitioned index to access a table that is not partitioned or partitioned independently of the hash partitioned index
US20050267874A1 (en)*2000-03-312005-12-01Microsoft CorporationValidating multiple execution plans for database queries
US20050283471A1 (en)*2004-06-222005-12-22Oracle International CorporationMulti-tier query processing
US20060020521A1 (en)*2001-05-072006-01-26Steven ToddAutomated sales support method & device
US20060041537A1 (en)*2004-08-172006-02-23Oracle International CorporationSelecting candidate queries
US20060190947A1 (en)*2005-02-222006-08-24Bhaskar GhoshParallel execution of window functions
US20070055661A1 (en)*2001-06-202007-03-08Andrew WitkowskiCompile-time optimizations of queries with SQL spreadsheet
US20070073643A1 (en)*2005-09-272007-03-29Bhaskar GhoshMulti-tiered query processing techniques for minus and intersect operators
US20070073642A1 (en)*2005-09-272007-03-29Bhaskar GhoshParallel query processing techniques for minus and intersect operators
US20070078812A1 (en)*2005-09-302007-04-05Oracle International CorporationDelaying evaluation of expensive expressions in a query
US7228300B2 (en)1998-10-052007-06-05Oracle International CorporationCaching the results of security policy functions
US20070219951A1 (en)*2006-03-152007-09-20Oracle International CorporationJoin predicate push-down optimizations
US20080124002A1 (en)*2006-06-302008-05-29Aperio Technologies, Inc.Method for Storing and Retrieving Large Images Via DICOM
US20080208822A1 (en)*2003-11-062008-08-28Tolga BozkayaAnalytic enhancements to model clause in structured query language (sql)
US20080243916A1 (en)*2007-03-262008-10-02Oracle International CorporationAutomatically determining a database representation for an abstract datatype
US7475056B2 (en)2005-08-112009-01-06Oracle International CorporationQuery processing in a parallel single cursor model on multi-instance configurations, using hints
US20090055349A1 (en)*2007-08-212009-02-26Oracle International CorporationTable elimination technique for group-by query optimization
US7526439B2 (en)2001-08-062009-04-28Proficient Systems, IncorporatedSystems and methods to facilitate selling of products and services
US20090112793A1 (en)*2007-10-292009-04-30Rafi AhmedTechniques for bushy tree execution plans for snowstorm schema
US7702627B2 (en)2004-06-222010-04-20Oracle International CorporationEfficient interaction among cost-based transformations
US20100274783A1 (en)*2007-06-292010-10-28Emc CorporationTuning of relevancy ranking for federated search
US20100281023A1 (en)*2007-06-292010-11-04Emc CorporationRelevancy scoring using query structure and data structure for federated search
US20110307475A1 (en)*2010-06-152011-12-15Sas Institute Inc.Techniques to find percentiles in a distributed computing environment
US8290935B1 (en)*2004-05-272012-10-16Teradata Us, Inc.Method and system for optimizing database system queries
US8478715B2 (en)2008-05-162013-07-02Microsoft CorporationExtending OLAP navigation employing analytic workflows
CN103309966A (en)*2013-06-042013-09-18中国科学院信息工程研究所Data flow point connection query method based on time slide windows
US8738732B2 (en)2005-09-142014-05-27Liveperson, Inc.System and method for performing follow up based on user interactions
US8762313B2 (en)2008-07-252014-06-24Liveperson, Inc.Method and system for creating a predictive model for targeting web-page to a surfer
US20140214754A1 (en)*2013-01-302014-07-31Oracle International CorporationScalable and Adaptive Evaluation of Reporting Window Functions
US20140214799A1 (en)*2013-01-302014-07-31Oracle International CorporationEnhancing Parallelism in Evaluation Ranking/Cumulative Window Functions
US8799200B2 (en)2008-07-252014-08-05Liveperson, Inc.Method and system for creating a predictive model for targeting webpage to a surfer
US8805844B2 (en)2008-08-042014-08-12Liveperson, Inc.Expert search
US8805941B2 (en)2012-03-062014-08-12Liveperson, Inc.Occasionally-connected computing interface
US8918465B2 (en)2010-12-142014-12-23Liveperson, Inc.Authentication of service requests initiated from a social networking site
US20150012350A1 (en)*2013-07-022015-01-08Yue LiMeasuring the value of marketing contributions to deals
US8943002B2 (en)2012-02-102015-01-27Liveperson, Inc.Analytics driven engagement
US9009127B1 (en)*2005-07-112015-04-14Iac Search & Media, Inc.Method and apparatus for generating and presenting factoids
US20150242506A1 (en)*2014-02-252015-08-27International Business Machines CorporationEarly exit from table scans of loosely ordered and/or grouped relations using nearly ordered maps
US9350598B2 (en)2010-12-142016-05-24Liveperson, Inc.Authentication of service requests using a communications initiation feature
US9432468B2 (en)2005-09-142016-08-30Liveperson, Inc.System and method for design and dynamic generation of a web page
US9563336B2 (en)2012-04-262017-02-07Liveperson, Inc.Dynamic user interface customization
US20170132295A1 (en)*2014-06-092017-05-11Hewlett Packard Enterprise Development LpTop-k projection
US9672196B2 (en)2012-05-152017-06-06Liveperson, Inc.Methods and systems for presenting specialized content using campaign metrics
US9767212B2 (en)2010-04-072017-09-19Liveperson, Inc.System and method for dynamically enabling customized web content and applications
US9819561B2 (en)2000-10-262017-11-14Liveperson, Inc.System and methods for facilitating object assignments
US9870390B2 (en)2014-02-182018-01-16Oracle International CorporationSelecting from OR-expansion states of a query
US9892417B2 (en)2008-10-292018-02-13Liveperson, Inc.System and method for applying tracing tools for network locations
CN107784032A (en)*2016-08-312018-03-09华为技术有限公司Gradual output intent, the apparatus and system of a kind of data query result
US10278065B2 (en)2016-08-142019-04-30Liveperson, Inc.Systems and methods for real-time remote control of mobile applications
US10585887B2 (en)2015-03-302020-03-10Oracle International CorporationMulti-system query execution plan
US10869253B2 (en)2015-06-022020-12-15Liveperson, Inc.Dynamic communication routing based on consistency weighting and routing rules
US11386442B2 (en)2014-03-312022-07-12Liveperson, Inc.Online behavioral predictor

Citations (8)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US5897632A (en)1996-08-271999-04-27At&T CorpMethod and system for using materialized views to evaluate queries involving aggregation
US5956706A (en)1997-05-091999-09-21International Business Machines CorporationMethod and system for limiting the cardinality of an SQL query result
US6112198A (en)*1997-06-302000-08-29International Business Machines CorporationOptimization of data repartitioning during parallel query optimization
US6125360A (en)1998-07-022000-09-26Oracle CorporationIncremental maintenance of materialized views containing one-to-N lossless joins
US6134543A (en)1998-07-022000-10-17Oracle CorporationIncremental maintenance of materialized views containing one-to-one lossless joins
US6199063B1 (en)1998-03-272001-03-06Red Brick Systems, Inc.System and method for rewriting relational database queries
US6338056B1 (en)*1998-12-142002-01-08International Business Machines CorporationRelational database extender that supports user-defined index types and user-defined search
US6385603B1 (en)*1999-06-142002-05-07International Business Machines CorporationJoined table expression optimization by query transformation

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US5897632A (en)1996-08-271999-04-27At&T CorpMethod and system for using materialized views to evaluate queries involving aggregation
US5956706A (en)1997-05-091999-09-21International Business Machines CorporationMethod and system for limiting the cardinality of an SQL query result
US6112198A (en)*1997-06-302000-08-29International Business Machines CorporationOptimization of data repartitioning during parallel query optimization
US6199063B1 (en)1998-03-272001-03-06Red Brick Systems, Inc.System and method for rewriting relational database queries
US6125360A (en)1998-07-022000-09-26Oracle CorporationIncremental maintenance of materialized views containing one-to-N lossless joins
US6134543A (en)1998-07-022000-10-17Oracle CorporationIncremental maintenance of materialized views containing one-to-one lossless joins
US6338056B1 (en)*1998-12-142002-01-08International Business Machines CorporationRelational database extender that supports user-defined index types and user-defined search
US6385603B1 (en)*1999-06-142002-05-07International Business Machines CorporationJoined table expression optimization by query transformation

Non-Patent Citations (10)

* Cited by examiner, † Cited by third party
Title
Carey et al, "On Saying "Enough Already!" in SQL", Proceedings of the ACM SIGMOND International conference on Management of data, 1997, pp. 219-230.
Carey M. et al., "Reducing the Braking Distance of an SQL Query Engine", Proceedings of 24th International Conference on Very Large Databases, Aug. 24-27, 1998, pp. 158-169.
Chaudhuri et al., "Evaluating Top k Selection Queries", Proceedings of 25th International Conference on Very Large Databases, Sep. 7-10, 1999, pp. 399-410.
Chaudhuri, Surajit et al., "Optimizing Queries with Materialized Views", Proceedings of the Eleventh International Conference on Data Engineering, Mar. 6-10, 1995, pp. 190-200.
Gopalkrishnan, Vivekanand et al., "Issues of Object-Relational View Design in Data Warehousing Environment", 1998 IEEE International Conference on Systems, Man, and Cybernetics, Oct. 11-14, 1998, vol. 3, pp. 2732-2737.
John Clear, Debbie Dunn,Brad Harvey,Michael Heytens,Peter Lohman,Abhay Mehta,Mark Melton,Lars Rohrberg, Ashok Savasere, Robert Wehrmeister, Melody Xu Titled "NonStop SQL/MX Primitives for Knowledge Discovery" Copyright ACM 1999 1-58113-143-7/99/08 p425-429.**
Koch et al., "Oracle 8, the Complete Reference", Osborne/Mc-Hill, 1997, pp. 415, 919-920.
Kuno, Harumi et al., "Augmented Inherited Multi-Index Structure for Maintenance of Materialized Path Query Views", Proceedings of the Sixth International Conference on Research Issues in Data Engineering, Feb. 26-27, 1996, pp. 128-137.
Red Brick Warehouse Manual Version 5.1 SQL Reference guide and SQL Self-study guide Copyrigth Red Brick System,Inc. copyright 1991-1998 Revision No. 1, Jan. 1998, Part No. 401551.**
Segev, Arie et al., "Maintaining Materialized Views in Distributed Databases", Proceedings of the Fifth International Conference on Data Engineering , Feb. 6-10, 1989, pp. 262-270.

Cited By (151)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US7228300B2 (en)1998-10-052007-06-05Oracle International CorporationCaching the results of security policy functions
US7158963B2 (en)*2000-03-312007-01-02Microsoft CorporationValidating multiple execution plans for database queries
US20050267874A1 (en)*2000-03-312005-12-01Microsoft CorporationValidating multiple execution plans for database queries
US20060020573A1 (en)*2000-03-312006-01-26Microsoft CorporationValidating multiple execution plans for database queries
US7739149B2 (en)*2000-10-262010-06-15Proficient Systems, Inc.Systems and methods to facilitate selling of products and services
US20050091123A1 (en)*2000-10-262005-04-28Gregg FreishtatSystems and methods to facilitate selling of products and services
US20050097000A1 (en)*2000-10-262005-05-05Gregg FreishtatSystems and methods to facilitate selling of products and services
US7657465B2 (en)2000-10-262010-02-02Proficient Systems, Inc.Systems and methods to facilitate selling of products and services
US8868448B2 (en)2000-10-262014-10-21Liveperson, Inc.Systems and methods to facilitate selling of products and services
US10797976B2 (en)2000-10-262020-10-06Liveperson, Inc.System and methods for facilitating object assignments
US9819561B2 (en)2000-10-262017-11-14Liveperson, Inc.System and methods for facilitating object assignments
US9576292B2 (en)2000-10-262017-02-21Liveperson, Inc.Systems and methods to facilitate selling of products and services
US7395224B1 (en)*2001-05-072008-07-01At&T Corp.Automated sales support device
US7769642B2 (en)2001-05-072010-08-03At&T Intellectual Property Ii, L.P.Automated sales support system
US20060031144A1 (en)*2001-05-072006-02-09Steven ToddAutomated sales support method & device
US20090138323A1 (en)*2001-05-072009-05-28Steven ToddAutomated sales support system
US7412410B2 (en)*2001-05-072008-08-12At&T CorpAutomated sales support device
US20060020521A1 (en)*2001-05-072006-01-26Steven ToddAutomated sales support method & device
US7398230B2 (en)*2001-05-072008-07-08At&T Corp.Automated sales support device
US7395227B2 (en)*2001-05-072008-07-01At&T Corp.Automated sales support device
US20060031143A1 (en)*2001-05-072006-02-09Steven ToddAutomated sales support method & device
US20070055661A1 (en)*2001-06-202007-03-08Andrew WitkowskiCompile-time optimizations of queries with SQL spreadsheet
US20040133567A1 (en)*2001-06-202004-07-08Oracle International CorporationRun-time optimizations of queries with SQL spreadsheet
US7761403B2 (en)2001-06-202010-07-20Oracle International CorporationRun-time optimizations of queries with SQL spreadsheet
US7809712B2 (en)*2001-06-202010-10-05Oracle International CorporationCompile-time optimizations of queries with SQL spreadsheet
US7526439B2 (en)2001-08-062009-04-28Proficient Systems, IncorporatedSystems and methods to facilitate selling of products and services
US6920460B1 (en)2002-05-292005-07-19Oracle International CorporationSystems and methods for managing partitioned indexes that are created and maintained by user-defined indexing schemes
US7617235B2 (en)2002-05-292009-11-10Oracle International CorporationMethod and system for creating a domain index
US7299225B2 (en)*2002-11-262007-11-20International Business Machines CorporationHigh performance predicate push-down for non-matching predicate operands
US20040103082A1 (en)*2002-11-262004-05-27Tran Brian T.High performance predicate push-down for non-matching predicate operands
US8156145B2 (en)2003-11-062012-04-10Oracle International CorporationAnalytic enhancements to model clause in structured query language (SQL)
US7979384B2 (en)2003-11-062011-07-12Oracle International CorporationAnalytic enhancements to model clause in structured query language (SQL)
US20080208822A1 (en)*2003-11-062008-08-28Tolga BozkayaAnalytic enhancements to model clause in structured query language (sql)
US20110167091A1 (en)*2003-11-062011-07-07Tolga BozkayaAnalytic enhancements to model clause in structured query language (sql)
US8468166B2 (en)2003-11-062013-06-18Oracle International CorporationAnalytic enhancements to model clause in structured query language (SQL)
US20050131880A1 (en)*2003-12-162005-06-16Oracle International CorporationExecuting nested subqueries of parallel table functions in the parallel single cursor model
US7451133B2 (en)2003-12-162008-11-11Oracle International CorporationExecuting nested subqueries of parallel table functions in the parallel single cursor model
US20050131877A1 (en)*2003-12-162005-06-16Oracle International CorporationExecuting filter subqueries using a parallel single cursor model
US7958160B2 (en)*2003-12-162011-06-07Oracle International CorporationExecuting filter subqueries using a parallel single cursor model
US20050240570A1 (en)*2004-04-222005-10-27Oracle International CorporationPartial query caching
US7676453B2 (en)2004-04-222010-03-09Oracle International CorporationPartial query caching
US8583657B2 (en)*2004-05-062013-11-12Oracle International CorporationMethod and apparatus for using a hash-partitioned index to access a table that is not partitioned or partitioned independently of the hash partitioned index
US20050251524A1 (en)*2004-05-062005-11-10Vikram ShuklaMethod and apparatus for using a hash-partitioned index to access a table that is not partitioned or partitioned independently of the hash partitioned index
US8290935B1 (en)*2004-05-272012-10-16Teradata Us, Inc.Method and system for optimizing database system queries
US7702627B2 (en)2004-06-222010-04-20Oracle International CorporationEfficient interaction among cost-based transformations
US20050283471A1 (en)*2004-06-222005-12-22Oracle International CorporationMulti-tier query processing
US7814042B2 (en)2004-08-172010-10-12Oracle International CorporationSelecting candidate queries
US20060041537A1 (en)*2004-08-172006-02-23Oracle International CorporationSelecting candidate queries
US8315980B2 (en)*2005-02-222012-11-20Oracle International CorporationParallel execution of window functions
US20060190947A1 (en)*2005-02-222006-08-24Bhaskar GhoshParallel execution of window functions
US9009127B1 (en)*2005-07-112015-04-14Iac Search & Media, Inc.Method and apparatus for generating and presenting factoids
US7475056B2 (en)2005-08-112009-01-06Oracle International CorporationQuery processing in a parallel single cursor model on multi-instance configurations, using hints
US11743214B2 (en)2005-09-142023-08-29Liveperson, Inc.System and method for performing follow up based on user interactions
US8738732B2 (en)2005-09-142014-05-27Liveperson, Inc.System and method for performing follow up based on user interactions
US9432468B2 (en)2005-09-142016-08-30Liveperson, Inc.System and method for design and dynamic generation of a web page
US9525745B2 (en)2005-09-142016-12-20Liveperson, Inc.System and method for performing follow up based on user interactions
US9590930B2 (en)2005-09-142017-03-07Liveperson, Inc.System and method for performing follow up based on user interactions
US9948582B2 (en)2005-09-142018-04-17Liveperson, Inc.System and method for performing follow up based on user interactions
US10191622B2 (en)2005-09-142019-01-29Liveperson, Inc.System and method for design and dynamic generation of a web page
US11394670B2 (en)2005-09-142022-07-19Liveperson, Inc.System and method for performing follow up based on user interactions
US11526253B2 (en)2005-09-142022-12-13Liveperson, Inc.System and method for design and dynamic generation of a web page
US7814091B2 (en)2005-09-272010-10-12Oracle International CorporationMulti-tiered query processing techniques for minus and intersect operators
US7617189B2 (en)2005-09-272009-11-10Oracle International CorporationParallel query processing techniques for minus and intersect operators
US20070073643A1 (en)*2005-09-272007-03-29Bhaskar GhoshMulti-tiered query processing techniques for minus and intersect operators
US20070073642A1 (en)*2005-09-272007-03-29Bhaskar GhoshParallel query processing techniques for minus and intersect operators
US20070078812A1 (en)*2005-09-302007-04-05Oracle International CorporationDelaying evaluation of expensive expressions in a query
US7877379B2 (en)*2005-09-302011-01-25Oracle International CorporationDelaying evaluation of expensive expressions in a query
US20070219951A1 (en)*2006-03-152007-09-20Oracle International CorporationJoin predicate push-down optimizations
US7945562B2 (en)2006-03-152011-05-17Oracle International CorporationJoin predicate push-down optimizations
US20080124002A1 (en)*2006-06-302008-05-29Aperio Technologies, Inc.Method for Storing and Retrieving Large Images Via DICOM
US7860899B2 (en)2007-03-262010-12-28Oracle International CorporationAutomatically determining a database representation for an abstract datatype
US20080243916A1 (en)*2007-03-262008-10-02Oracle International CorporationAutomatically determining a database representation for an abstract datatype
US20100274783A1 (en)*2007-06-292010-10-28Emc CorporationTuning of relevancy ranking for federated search
US8131705B2 (en)2007-06-292012-03-06Emc CorporationRelevancy scoring using query structure and data structure for federated search
US8131716B2 (en)*2007-06-292012-03-06Emc CorporationTuning of relevancy ranking for federated search
US20100281023A1 (en)*2007-06-292010-11-04Emc CorporationRelevancy scoring using query structure and data structure for federated search
US8209322B2 (en)2007-08-212012-06-26Oracle International CorporationTable elimination technique for group-by query optimization
US20090055349A1 (en)*2007-08-212009-02-26Oracle International CorporationTable elimination technique for group-by query optimization
US8438152B2 (en)2007-10-292013-05-07Oracle International CorporationTechniques for bushy tree execution plans for snowstorm schema
US20090112793A1 (en)*2007-10-292009-04-30Rafi AhmedTechniques for bushy tree execution plans for snowstorm schema
US9244998B2 (en)2008-05-162016-01-26Microsoft Technology Licensing, LlcExtending olap navigation employing analytic workflows
US8478715B2 (en)2008-05-162013-07-02Microsoft CorporationExtending OLAP navigation employing analytic workflows
US8762313B2 (en)2008-07-252014-06-24Liveperson, Inc.Method and system for creating a predictive model for targeting web-page to a surfer
US9104970B2 (en)2008-07-252015-08-11Liveperson, Inc.Method and system for creating a predictive model for targeting web-page to a surfer
US9396436B2 (en)2008-07-252016-07-19Liveperson, Inc.Method and system for providing targeted content to a surfer
US8954539B2 (en)2008-07-252015-02-10Liveperson, Inc.Method and system for providing targeted content to a surfer
US11263548B2 (en)2008-07-252022-03-01Liveperson, Inc.Method and system for creating a predictive model for targeting web-page to a surfer
US11763200B2 (en)2008-07-252023-09-19Liveperson, Inc.Method and system for creating a predictive model for targeting web-page to a surfer
US8799200B2 (en)2008-07-252014-08-05Liveperson, Inc.Method and system for creating a predictive model for targeting webpage to a surfer
US9396295B2 (en)2008-07-252016-07-19Liveperson, Inc.Method and system for creating a predictive model for targeting web-page to a surfer
US9336487B2 (en)2008-07-252016-05-10Live Person, Inc.Method and system for creating a predictive model for targeting webpage to a surfer
US8805844B2 (en)2008-08-042014-08-12Liveperson, Inc.Expert search
US11386106B2 (en)2008-08-042022-07-12Liveperson, Inc.System and methods for searching and communication
US10657147B2 (en)2008-08-042020-05-19Liveperson, Inc.System and methods for searching and communication
US10891299B2 (en)2008-08-042021-01-12Liveperson, Inc.System and methods for searching and communication
US9582579B2 (en)2008-08-042017-02-28Liveperson, Inc.System and method for facilitating communication
US9569537B2 (en)2008-08-042017-02-14Liveperson, Inc.System and method for facilitating interactions
US9558276B2 (en)2008-08-042017-01-31Liveperson, Inc.Systems and methods for facilitating participation
US9563707B2 (en)2008-08-042017-02-07Liveperson, Inc.System and methods for searching and communication
US10867307B2 (en)2008-10-292020-12-15Liveperson, Inc.System and method for applying tracing tools for network locations
US9892417B2 (en)2008-10-292018-02-13Liveperson, Inc.System and method for applying tracing tools for network locations
US11562380B2 (en)2008-10-292023-01-24Liveperson, Inc.System and method for applying tracing tools for network locations
US9767212B2 (en)2010-04-072017-09-19Liveperson, Inc.System and method for dynamically enabling customized web content and applications
US11615161B2 (en)2010-04-072023-03-28Liveperson, Inc.System and method for dynamically enabling customized web content and applications
US8949249B2 (en)*2010-06-152015-02-03Sas Institute, Inc.Techniques to find percentiles in a distributed computing environment
US20110307475A1 (en)*2010-06-152011-12-15Sas Institute Inc.Techniques to find percentiles in a distributed computing environment
US10104020B2 (en)2010-12-142018-10-16Liveperson, Inc.Authentication of service requests initiated from a social networking site
US9350598B2 (en)2010-12-142016-05-24Liveperson, Inc.Authentication of service requests using a communications initiation feature
US8918465B2 (en)2010-12-142014-12-23Liveperson, Inc.Authentication of service requests initiated from a social networking site
US11777877B2 (en)2010-12-142023-10-03Liveperson, Inc.Authentication of service requests initiated from a social networking site
US11050687B2 (en)2010-12-142021-06-29Liveperson, Inc.Authentication of service requests initiated from a social networking site
US10038683B2 (en)2010-12-142018-07-31Liveperson, Inc.Authentication of service requests using a communications initiation feature
US8943002B2 (en)2012-02-102015-01-27Liveperson, Inc.Analytics driven engagement
US11134038B2 (en)2012-03-062021-09-28Liveperson, Inc.Occasionally-connected computing interface
US9331969B2 (en)2012-03-062016-05-03Liveperson, Inc.Occasionally-connected computing interface
US8805941B2 (en)2012-03-062014-08-12Liveperson, Inc.Occasionally-connected computing interface
US11711329B2 (en)2012-03-062023-07-25Liveperson, Inc.Occasionally-connected computing interface
US10326719B2 (en)2012-03-062019-06-18Liveperson, Inc.Occasionally-connected computing interface
US10666633B2 (en)2012-04-182020-05-26Liveperson, Inc.Authentication of service requests using a communications initiation feature
US11689519B2 (en)2012-04-182023-06-27Liveperson, Inc.Authentication of service requests using a communications initiation feature
US11323428B2 (en)2012-04-182022-05-03Liveperson, Inc.Authentication of service requests using a communications initiation feature
US11269498B2 (en)2012-04-262022-03-08Liveperson, Inc.Dynamic user interface customization
US11868591B2 (en)2012-04-262024-01-09Liveperson, Inc.Dynamic user interface customization
US9563336B2 (en)2012-04-262017-02-07Liveperson, Inc.Dynamic user interface customization
US10795548B2 (en)2012-04-262020-10-06Liveperson, Inc.Dynamic user interface customization
US11687981B2 (en)2012-05-152023-06-27Liveperson, Inc.Methods and systems for presenting specialized content using campaign metrics
US11004119B2 (en)2012-05-152021-05-11Liveperson, Inc.Methods and systems for presenting specialized content using campaign metrics
US9672196B2 (en)2012-05-152017-06-06Liveperson, Inc.Methods and systems for presenting specialized content using campaign metrics
US20140214799A1 (en)*2013-01-302014-07-31Oracle International CorporationEnhancing Parallelism in Evaluation Ranking/Cumulative Window Functions
US9158812B2 (en)*2013-01-302015-10-13Oracle International CorporationEnhancing parallelism in evaluation ranking/cumulative window functions
US9390129B2 (en)*2013-01-302016-07-12Oracle International CorporationScalable and adaptive evaluation of reporting window functions
US20140214754A1 (en)*2013-01-302014-07-31Oracle International CorporationScalable and Adaptive Evaluation of Reporting Window Functions
CN103309966B (en)*2013-06-042016-02-24中国科学院信息工程研究所Based on the data flow point connection query method of time slide window
CN103309966A (en)*2013-06-042013-09-18中国科学院信息工程研究所Data flow point connection query method based on time slide windows
US20150012350A1 (en)*2013-07-022015-01-08Yue LiMeasuring the value of marketing contributions to deals
US9870390B2 (en)2014-02-182018-01-16Oracle International CorporationSelecting from OR-expansion states of a query
US11194780B2 (en)2014-02-252021-12-07International Business Machines CorporationEarly exit from table scans of loosely ordered and/or grouped relations using nearly ordered maps
US10108649B2 (en)*2014-02-252018-10-23Internatonal Business Machines CorporationEarly exit from table scans of loosely ordered and/or grouped relations using nearly ordered maps
US20150242506A1 (en)*2014-02-252015-08-27International Business Machines CorporationEarly exit from table scans of loosely ordered and/or grouped relations using nearly ordered maps
US20150242452A1 (en)*2014-02-252015-08-27International Business Machines CorporationEarly exit from table scans of loosely ordered and/or grouped relations using nearly ordered maps
US10108651B2 (en)*2014-02-252018-10-23International Business Machines CorporationEarly exit from table scans of loosely ordered and/or grouped relations using nearly ordered maps
US12079829B2 (en)2014-03-312024-09-03Liveperson, Inc.Online behavioral predictor
US11386442B2 (en)2014-03-312022-07-12Liveperson, Inc.Online behavioral predictor
US20170132295A1 (en)*2014-06-092017-05-11Hewlett Packard Enterprise Development LpTop-k projection
US10810219B2 (en)*2014-06-092020-10-20Micro Focus LlcTop-k projection
US10585887B2 (en)2015-03-302020-03-10Oracle International CorporationMulti-system query execution plan
US10869253B2 (en)2015-06-022020-12-15Liveperson, Inc.Dynamic communication routing based on consistency weighting and routing rules
US11638195B2 (en)2015-06-022023-04-25Liveperson, Inc.Dynamic communication routing based on consistency weighting and routing rules
US10278065B2 (en)2016-08-142019-04-30Liveperson, Inc.Systems and methods for real-time remote control of mobile applications
CN107784032A (en)*2016-08-312018-03-09华为技术有限公司Gradual output intent, the apparatus and system of a kind of data query result
CN107784032B (en)*2016-08-312020-06-16华为技术有限公司 A progressive output method, device and system for data query results

Similar Documents

PublicationPublication DateTitle
US6622138B1 (en)Method and apparatus for optimizing computation of OLAP ranking functions
US6609131B1 (en)Parallel partition-wise joins
US7774379B2 (en)Methods for partitioning an object
US6665684B2 (en)Partition pruning with composite partitioning
US11645294B2 (en)Interactive identification of similar SQL queries
US7908242B1 (en)Systems and methods for optimizing database queries
US5899992A (en)Scalable set oriented classifier
US8620888B2 (en)Partitioning in virtual columns
EP3014488B1 (en)Incremental maintenance of range-partitioned statistics for query optimization
EP1738290B1 (en)Partial query caching
US6850927B1 (en)Evaluating queries with outer joins by categorizing and processing combinations of relationships between table records
US7243100B2 (en)Methods and apparatus for mining attribute associations
US6321218B1 (en)Automatically determining data that is best suited for index tuning
US8352476B2 (en)Frequent itemset counting using clustered prefixes and index support
US8315980B2 (en)Parallel execution of window functions
US20100138456A1 (en)System, method, and computer-readable medium for a locality-sensitive non-unique secondary index
US10922328B2 (en)Method and system for implementing an on-demand data warehouse
US7213011B1 (en)Efficient processing of multi-column and function-based in-list predicates
EP3913497B1 (en)Data imprint techniques for use with data retrieval methods
US6618720B1 (en)Common spool files for maintaining join indexes
JP6398632B2 (en) Control device, distributed database system, method and program
US6389410B1 (en)Method for minimizing the number of sorts required for a query block containing window functions
Yu et al.A promising approach to distributed query processing
US7406469B1 (en)Linear instance mapping for query rewrite
US11544294B2 (en)Distributing tables in a distributed database using consolidated grouping sources

Legal Events

DateCodeTitleDescription
ASAssignment

Owner name:ORACLE CORPORATION, CALIFORNIA

Free format text:ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:BELLAMKONDA, SRIKANTH;GHOSH, BHASKAR;WITKOWSKI, ANDREW;REEL/FRAME:011320/0465

Effective date:20001113

ASAssignment

Owner name:ORACLE INTERNATIONAL CORPORATION, CALIFORNIA

Free format text:ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:ORACLE CORPORATION;REEL/FRAME:013944/0938

Effective date:20030411

Owner name:ORACLE INTERNATIONAL CORPORATION,CALIFORNIA

Free format text:ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:ORACLE CORPORATION;REEL/FRAME:013944/0938

Effective date:20030411

STCFInformation on status: patent grant

Free format text:PATENTED CASE

FPAYFee payment

Year of fee payment:4

FPAYFee payment

Year of fee payment:8

FPAYFee payment

Year of fee payment:12


[8]ページ先頭

©2009-2025 Movatter.jp