stephen mallette created TINKERPOP3-671:
-------------------------------------------

             Summary: Support Batching in Gremlin Driver
                 Key: TINKERPOP3-671
                 URL: https://issues.apache.org/jira/browse/TINKERPOP3-671
             Project: TinkerPop 3
          Issue Type: Improvement
          Components: driver
            Reporter: stephen mallette


When the {{Client}} borrows a {{Connection}} from the {{ConnectionPool}} and 
the {{submitAsync}} method is ultimately called, the request is written to the 
connection and the {{Connection}} is returned to the pool at a later point when 
the stream completes.  It should be possible to batch multiple requests 
together such that they might be all sent at once, thus making better use of 
the {{Connection}} while it is in hand.

Perhaps there is some variation of the {{submit}} method like:

{code}
List<CompletableFuture<ResultSet>> submitAsync(final RequestMessage... msg) 
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to