In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
Environment:
Operating system version: linux redhat 6.6
Database version: oracle 11.2.0.4
Problem description: today, implementation colleagues reported a very strange problem, that is, the sql merge usage of the oracle database. The update statement should place the partition key of the partition table in the matching keyword.
In On, the sql statement execution plan shows that the partition key can act as a partition filter:
On the contrary, if the partition key in the where condition of the update statement is not placed in the merge matching keyword on, the merge into update statement does not correctly execute the partition table partition filter, the sql statement
And the implementation plan is as follows:
Summary: first of all, let's talk about the personal understanding of this example. Merge first performs the conditional filtering followed by on, and then data matching, and then performs subsequent update update operations on matching, so
Put the partition key in the condition matching after the on, first filter the partition of the distinguishing table to avoid the full partition scan of the partition table, thus greatly reducing the merge into update statement
Consumption of host cpu resources.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.