Cluster in Oracle PL SQL Interview Questions And Answers For Experience & Freshers | Interview Preparation
Cluster is a database object that stores data related to two or more tables in a single disk space.
Whenever you create a table a separate segment is created for that table and stores the data.
If Cluster is not there then multiple tables are stored at different memory locations.
If you want to perform join then number of I/O operations are more as tables are stored at different memory locations.
So it will degrades performance as switching from one memory location to another memory location.
If we use Cluster for the tables which are frequently used in join operation then those tables stored in one memory location.
Thus in this case it will reduce number of I/O operations, so Clusters used to improve performance of the join.
Cluster table must have common column, this column is called as cluster key.
Whenever we are submitting inner join or outer join then database server checks whether Cluster is available or not.
When Cluster available then server retrieve data very fast.
Please do check our daily posts, videos for beneficial informations, in case of any additional queries please do contact us, we are happy to assist you.
https://www.youtube.com/a4uofficial
0 Comments