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

Optimized Marten w/ Hot Chocolate Recipe #2738

Closed
jeremydmiller opened this issue Sep 28, 2023 · 2 comments
Closed

Optimized Marten w/ Hot Chocolate Recipe #2738

jeremydmiller opened this issue Sep 28, 2023 · 2 comments

Comments

@jeremydmiller
Copy link
Member

Marten's session model is very optimized for being used in AspNetCore or message handler tools like Wolverine/NServiceBus/MassTransit, and does not play well with the very different execution model in Hot Chocolate

More thoughts coming later today...

@jeremydmiller
Copy link
Member Author

Possible Tasks

  • New IQueryRunner --> IQuerySession that behaves exactly like QuerySession, but uses an auto close connection so no connection is ever "sticky" and there's no risk from scoping issues or forgetting to dispose the session like there absolutely is today w/ Marten inside of Hot Chocolate
  • Maybe trying to use query batching inside of Hot Chocolate

@jeremydmiller
Copy link
Member Author

Folding this into #2887 for now

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

No branches or pull requests

1 participant