What is the difference between range partitioning and hash partitioning in DB2?

  • Data is distributed based on a specified range of values
  • Data is distributed based on hash values of specified columns
  • Data is evenly distributed across partitions
  • Data is randomly distributed across partitions
Range partitioning in DB2 involves distributing data based on a specified range of values for a particular column. Hash partitioning, on the other hand, distributes data based on hash values of specified columns, ensuring even distribution across partitions. Range partitioning is typically used when data can be logically grouped into ranges, while hash partitioning is suitable for distributing data uniformly across partitions. 
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *