本文主要是介绍理解range-predicatepivoted partitioning in Database,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
-
Overview
From [1], Predication estimation is used increasingly in the Rdb optimizer to determine the cost and productivity of various index scans.
When a particular query is executed, the conditions in the row selection expression, the “where” clause of a SQL statement, determine which rows will be selected.
These conditions, or predicates, can be used to limit the parts of an index that are scanned to find data rows.
-
predicate
A predicate is a condition expression that evaluates to a boolean value, either true or false.
Predicates can be used as follows:
- In a
SELECT
statement’sWHERE
clause orHAVING
clause to determine which rows are relevant to a particular query. - In a
JOIN
operation’sON
clause to determine which rows are relevant to the join operation - In an
UPDATE
orDELETE
statement’sWHERE
clause, to detemine which rows are to be modified - In a
WHERE
CURRENT
OF
statement’sAND
clause - In a
CREATE
TRIGGER
statement’sWHEN
clause to determine when to apply triggered action code
- In a
-
Actian: Predicates in SQL
Predicates are keywords that specify a relationship between two expression.
-
Partition
A partition is a division of a logical database or its constituent elements into distinct independent parts.
It is popular in disributed database management systems, where each partition may be spread over multiple nodes, with users at the node performing local transactions on the partition.
Current high-end RDMS provides for different criteria to split the database. They take a partitioning key and assign a partition based on certain criteria:
-
Range partitioning
selects a partition by determining if the partitioning key is within a certain range
-
List partitioning
a partition is assigned a list of values, if the partitioning key has one of these values, the partition is chosen
-
Composite partitioning
allows for certain combinations of the above partitioning schemes
-
Round-robin partitioning
the simplest strategy, it ensures uniform data distribution
-
Hash partitioning
applies a hash function to some attribute that yields the partition number
-
-
Pivot table
A pivot table is a table of statistics that summarizes the data of a more extensive table.
This summary might include sums, averages, or other statistics, which the pivot table groups together in a meaningful way.
Pivoting data is a rather common problem that comes in many different flavors. At its heart, the requirement is to transpose data from multiple rows into columns of a single row.
-
References
-
Guide to Database Performance and Tuning: Predicate Estimation A feature of Oracle Rdb
-
InterSystems: Overview of Predicates
-
Microsoft SQL Docs: Predicates
-
Actian: Predicates in SQL
-
Pivot - Rows to Columns
这篇关于理解range-predicatepivoted partitioning in Database的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!