[ 
https://issues.apache.org/jira/browse/HDDS-12779?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Swaminathan Balachandran updated HDDS-12779:
--------------------------------------------
    Description: 
Currently most of the operations performed on the tables are agnostic to order 
of iteration of keys and can be executed in parallel to speed up most of such 
operations. The proposal here is to introduce a central functionaliy to achieve 
this.

The whole idea for parallelizing in this approach is to peek into the sst files 
metadata of rocksdb to get the keyRanges(smallestKey and largestKey) from 
LiveFileMetadata corresponding to the rocksdb column family and get an 
approximate set of range of keys in the table. Thus indirectly the table would 
be iterated based on the number of sst files as there are on the DB.
For instance consider the case:
1.sst has key range [k1 - k10]
2.sst has key range [k5 - k15]
3.sst has key range [k15 - k30].
Thus with the approach we would be splitting the table into 4 iterators 
iterating the key range:
[k1 - k5), [k5, k10), [k10, k15), [k15, k30]

  was:Currently most of the operations performed on the tables are agnostic to 
order of iteration of keys and can be executed in parallel to speed up most of 
such operations. The proposal here is to introduce a central functionaliy to 
achieve this.


> Parallelize table Spliterator with multiple multiple iterators across 
> different ranges
> --------------------------------------------------------------------------------------
>
>                 Key: HDDS-12779
>                 URL: https://issues.apache.org/jira/browse/HDDS-12779
>             Project: Apache Ozone
>          Issue Type: Improvement
>            Reporter: Swaminathan Balachandran
>            Assignee: Swaminathan Balachandran
>            Priority: Major
>              Labels: pull-request-available
>         Attachments: 8243_bigIntegerComparator_bug.patch
>
>
> Currently most of the operations performed on the tables are agnostic to 
> order of iteration of keys and can be executed in parallel to speed up most 
> of such operations. The proposal here is to introduce a central functionaliy 
> to achieve this.
> The whole idea for parallelizing in this approach is to peek into the sst 
> files metadata of rocksdb to get the keyRanges(smallestKey and largestKey) 
> from LiveFileMetadata corresponding to the rocksdb column family and get an 
> approximate set of range of keys in the table. Thus indirectly the table 
> would be iterated based on the number of sst files as there are on the DB.
> For instance consider the case:
> 1.sst has key range [k1 - k10]
> 2.sst has key range [k5 - k15]
> 3.sst has key range [k15 - k30].
> Thus with the approach we would be splitting the table into 4 iterators 
> iterating the key range:
> [k1 - k5), [k5, k10), [k10, k15), [k15, k30]



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to