-
Notifications
You must be signed in to change notification settings - Fork 8
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
Non-blocking Database Queries within app$get() #41
Comments
Finally I used the Minimal example:
|
@m-saenger I'm sorry I never came back to you on this issue. I've setup my company last year and it left me very little time for all open-source projects. Has this been resolved? Have you found a solution? |
No worries. I found a workaround and closed this issues a couple of days ago. See #41 (comment). |
Project:
The goal is an API which queries a database. Results set length varies a lot and so does the response time. In order to avoid blocking of fast queries by slow ones the API should by async.
Problem:
future
does not allow for external pointers (such as DB connections,pool
connections, etc.), thus I had to open a new DB connection (withinfuture
) for every request which slows down response time significantlyI am looking for a solution based on this example with a non-blocking
query_db()
functionality within the future.Any help would be greatly appreciated!
The text was updated successfully, but these errors were encountered: