geode-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Goutam Tadi <>
Subject Remove keys from a PartitionedRegion
Date Mon, 01 May 2017 19:19:29 GMT
Hi Team,

With +Bradford D Boyle <>

We are trying to remove a set of keys from a `PartitionedRegion`.
Currently, we execute a function with `onRegion()`. Inside the function, we
call `PartitionRegionHelper.getLocalPrimaryData()` and use the returned
region to execute `region.removeAll(keys)`.

The problem we are facing is that is slow. Is there a faster way to remove
a set of keys from a partitioned region?

We are considering using `getDataStore().getAllLocalBucketRegions()` to get
the set of `BucketRegion`s and then using a thread pool to remove the keys
in parallel. Are there alternative approaches?

Goutam Tadi.
*Goutam Tadi.*

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message