Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need to support async queries #775

Open
mbrankintrintech opened this issue Dec 16, 2022 · 1 comment
Open

Need to support async queries #775

mbrankintrintech opened this issue Dec 16, 2022 · 1 comment
Assignees
Labels

Comments

@mbrankintrintech
Copy link

It's absolutely essential for scalability that this library can support queries which can be done asynchronously.

Right now, the [EnableQuery] Attribute will take a query from Entity Framework Core and do an implicit ToList() on it in the constructor of TruncatedCollection<T>, meaning that its thread will block while the query is running.

I understand the need for library agnosticism but some way of allowing queries to be ran asynchronously, through config or otherwise must be possible, otherwise the scalability of this is in question.

@Xriuk
Copy link

Xriuk commented Nov 12, 2024

Duplicate of #253 ? Also as I have commented there, why TruncatedCollection<T> exists this way in the first place? Couldn't it be possible to create some kind of wrapper to avoid enumerating all elements in a non-asynchronous way?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants