dotnet / dotnet/orleans

Is AdoNetStorage provider has 'DeleteStateOnClear' or any alternatives?

Open
#8,059 2 comments 1 reaction 0 assignees View on GitHub
area-persistence help wanted
Dominant language
C#
Stars
10.9k
Forks
2.1k
Avg merge
13h 56m
Merged PRs (30d)
351

Description

Hello,

We use SQL Server in our system, hence we use AdoNetStorage provider for persistence according documentation: https://learn.microsoft.com/en-us/dotnet/orleans/grains/grain-persistence/relational-storage

When we trying to clear state using "ClearStateAsync" with AdoNet storage provider it just NULL state of the record in database w/o removing it.

Does MS Orleans have any ways to completely remove a record from a SQL Server database?

I see Azure storage provider has option 'DeleteStateOnClear', but AdoNet not.

Contributor guide

Open the contributing guide

Research direction

Start with the relational storage documentation and the AdoNetStorage behavior invoked by ClearStateAsync, then compare it with Azure storage's DeleteStateOnClear option. Done means establishing whether SQL Server records can be completely removed and, if not, defining the scope for equivalent support or a documented alternative.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, sql
Domain
databases, distributed-systems
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.