Back to results
US 2022/0292066 A1Published application
Rowid decoding: an alternative to dictionary decoding
AssigneeOracle International Corporation
InventorsPit Fender, Benjamin Schlegel, Matthias Brantner
Life of this patent
Estimating the term…
Abstract
Techniques described herein propose a new RIDDecode operator in a QEP that uses ROWID lookup and fetch, instead of dictionary decoding, to retrieve decoded values, in order to reduce memory pressure and speed up processing.
Claims10
A method comprising:
- generating a query execution plan (QEP) for a query that specifies to aggregate a particular column by at least one group column, wherein said QEP comprises:
- a RIDDecode operator;
- a group by plan operator that is lower than said RIDDecode operator in said QEP and that groups by said at least one group column;
- a first plan operator that is lower than said group by plan operator and that generates rows from a base table;
- an aggregate operator that applies an aggregate function to a rowid pseudo column of said base table, wherein said aggregate operator is lower than said RIDDecode operator but higher than said group by plan operator;
- wherein generating said QEP includes:
- including said rowid pseudo column, said at least one group column, and said particular column in a projection list for said first plan operator;
- substituting said at least one group column with said rowid pseudo column in a projection list for said group by operator;
- executing said RIDDecode operator while executing said QEP.
6 more elements
One or more non-transitory computer-readable storage medium storing instructions that, when executed by one or more processors, cause the one or more processors to perform functions comprising:
- generating a query execution plan (QEP) for a query that specifies to aggregate a particular column by at least one group column, wherein said QEP comprises:
- a RIDDecode operator;
- a group by plan operator that is lower than said RIDDecode operator in said QEP and that groups by said at least one group column;
- a first plan operator that is lower than said group by plan operator and that generates rows from a base table;
- an aggregate operator that applies an aggregate function to a rowid pseudo column of said base table, wherein said aggregate operator is lower than said RIDDecode operator but higher than said group by plan operator;
- wherein generating said QEP includes:
- including said rowid pseudo column, said at least one group column, and said particular column in a projection list for said first plan operator;
- substituting said at least one group column with said rowid pseudo column in a projection list for said group by operator;
- executing said RIDDecode operator while executing said QEP.
6 more elements
Dependencies are inferred from the claim text.