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

True Non-Blocking Support #102

Open
darkfrog26 opened this issue Jun 8, 2016 · 1 comment
Open

True Non-Blocking Support #102

darkfrog26 opened this issue Jun 8, 2016 · 1 comment

Comments

@darkfrog26
Copy link
Contributor

Currently our asynchronous support is simply wrapping a database call with Future(...) and a little bit more niceness, but it isn't truly non-blocking, a thread is still running because JDBC is built around blocking calls. However, we could introduce an extension to ScalaRelational that support true non-blocking database requests with a project like this: https://github.com/mauricio/postgresql-async

That project only supports PostgreSQL and MySQL, but we might be able to introduce support for others in the future.

@darkfrog26
Copy link
Contributor Author

The biggest hurdle is going to be keeping the Session alive across multiple asynchronously running database requests.

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

1 participant