Repository navigation
Beginnings of connection pooling configuration. - #96
Conversation
… fixed up the locator for the Akka dispatcher (we need to fix our Play doc on this subject). I have observed that the thread pool executor is now being used with the correct number of threads.
|
Made lots of progress here, but still need to set the execution context for the play-java sample - please refer to the FIXME. |
|
java execution context - I'm probably wrong (my understanding of the play internals is really, really bad, especially on the java side of things), but maybe this helps: https://github.com/playframework/Play20/blob/master/framework/src/play/src/main/java/play/libs/F.java#L9 |
…ime as generating 10 futures is a short lived operation and doesn't require parallelism.
|
Thanks @Skamander - I'll have to consult my colleagues on configuring the Java EC. That's really the only thing outstanding on this PR now. |
|
@huntc - Thanks for your work on the tests. I'm eagerly awaiting the new benchmark results next week. 👍 btw: you could remove the import of the global execution context and make the new db context implicit, so you don't have to pass it to the future explicitly. |
|
Ah, but I don't want to use my dbEc for other future related activity such as the sequence call... I deliberately avoided the implicit approach here. |
|
Sorry, I didn't thought of that. totally forgot that Future.sequence also takes an implicit execution context. |
|
This PR is now ready for merging from my perspective. |
|
Thank you, @huntc and @Skamander! Pat is carving out some time this morning to work through some of the pending pull requests. |
Beginnings of connection pooling configuration.
|
Thanks @huntc and @Skamander this looks great. |
Beginnings of connection pooling configuration.
Provides connection pooling configuration for play-java and play-scala