orleans icon indicating copy to clipboard operation
orleans copied to clipboard

Clear the data generated by PubSubRendezvousGrain

Open lfzm opened this issue 8 years ago • 4 comments

I use: AddSimpleMessageStreamProvider AddAdoNetGrainStorage

1、When I generate Guid different, PubSubRendezvousGrain generates a lot of data, is there a function to clear them?

lfzm avatar Jun 20 '18 14:06 lfzm

I have the same question. How to remove the data from the table storage?

HermesNew avatar Jun 21 '18 07:06 HermesNew

@jason-bragg By setting it as invisible, there will not be a large amount of data, if you need to use explicit cancellation to delete the database data

.AddMemoryGrainStorage("PubSubStore")
                .AddSimpleMessageStreamProvider("SimpleStreamProvider", (SimpleMessageStreamProviderOptions opt) =>
                {
                    opt.FireAndForgetDelivery = true;
                    opt.OptimizeForImmutableData = true;
                    opt.PubSubType = Streams.StreamPubSubType.ImplicitOnly;
                });

lfzm avatar Jun 21 '18 07:06 lfzm

Hi, If you want to clear up old subscription data which isn't needed anymore, you can call IStreamSubscriptionManager to remove those subscription

xiazen avatar Jun 22 '18 23:06 xiazen

close due to inactivity. Feel free to reopen if needed

xiazen avatar Jul 02 '18 23:07 xiazen