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

a very important async query issue!!! #24

Closed
wr404274848 opened this issue Jul 23, 2021 · 1 comment
Closed

a very important async query issue!!! #24

wr404274848 opened this issue Jul 23, 2021 · 1 comment

Comments

@wr404274848
Copy link

query=...from category in await _categoryRepository.GetListAsync()
join posts in await _postRepository.GetListAsync()
on category.Id equals posts.CategoryId
this code snip in your code is very expensive!!!
can change to this:
query=...from category in _categoryRepository
join posts in _postRepository
on category.Id equals posts.CategoryId
await AsyncExecuter.ToListAsync(query);

@Meowv
Copy link
Owner

Meowv commented Jul 30, 2021

@wr404274848
Thanks for the feedback, very good issue, I have time to fix it later.

@Meowv Meowv closed this as completed Aug 13, 2021
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

No branches or pull requests

2 participants