Skip to content

CSHARP-994 Add AsyncEnumerable support to RowSet#617

Open
verdie-g wants to merge 8 commits intodatastax:masterfrom
verdie-g:master
Open

CSHARP-994 Add AsyncEnumerable support to RowSet#617
verdie-g wants to merge 8 commits intodatastax:masterfrom
verdie-g:master

Conversation

@verdie-g
Copy link
Contributor

@verdie-g verdie-g commented Apr 12, 2025

Any async method in Mapper can block the thread if there are more than one page in RowSet. This can easily starve the thread pool and obliterate the performance of your app.

The proper fix it to make RowSet implement IAsyncEnumerable. The latter is only available in .NET Core 3 though. I could make the driver target this version but it reached end of life 7 years ago. According to versionsof.net/core, the oldest active .NET version is 8 so that's what I picked.

The PR does not compile right now because the .NET 8 target generates a bunch of obsolete warnings (upgraded to errors) about System.Runtime.ConstrainedExecution and TLS1.X. Also, tests are missing.

I would like to get some first feedbacks before resuming the work, especially around adding this new target framework. I believe it's time to add new targets as .NET Standard is now 8 years old.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants