Is it possible to make asynchronous stored procedure calls to VoltDB using the Python client











up vote
0
down vote

favorite












Is it possible to make asynchronous calls to a stored procedure in VoltDB (an insert in a custom Java Stored procedure) using the Python client?



It looks like it isn't supported but is there a way to not wait for the response, or will I have to move to the Java client for async support?










share|improve this question


























    up vote
    0
    down vote

    favorite












    Is it possible to make asynchronous calls to a stored procedure in VoltDB (an insert in a custom Java Stored procedure) using the Python client?



    It looks like it isn't supported but is there a way to not wait for the response, or will I have to move to the Java client for async support?










    share|improve this question
























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      Is it possible to make asynchronous calls to a stored procedure in VoltDB (an insert in a custom Java Stored procedure) using the Python client?



      It looks like it isn't supported but is there a way to not wait for the response, or will I have to move to the Java client for async support?










      share|improve this question













      Is it possible to make asynchronous calls to a stored procedure in VoltDB (an insert in a custom Java Stored procedure) using the Python client?



      It looks like it isn't supported but is there a way to not wait for the response, or will I have to move to the Java client for async support?







      python asynchronous voltdb






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 19 at 18:59









      StevieB

      31




      31
























          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote



          accepted










          The VoltDB python client does not support asynchronous calls. It may be possible to make calls from a multi-threaded python application, but we've never tested that, so I don't want to lead you into uncharted waters.



          The java, C++, and Go clients support asynchronous calls.



          If you're mainly trying to do fast inserts, you might leverage csvloader and you could probably execute csvloader from within a python application, but that's probably not what you're looking to do.



          Disclosure: I work at VoltDB.






          share|improve this answer





















          • Thanks for the reply. I've tried from a multi threaded python application with 50-100 threads so far and it seems to work, but I haven't finished testing yet! We're looking to minimise latency on the inserts, would the csv loader increase latency if working in batches? Looks like will need to move to one of the other clients.
            – StevieB
            Nov 20 at 11:28










          • For the same request, the latency should be the same regardless of which client is used. But asynchronous requests allow you to send many requests at once so that throughput is not a function of the latency. A multi-threaded client making synchronous requests can also achieve high throughput, but may require a lot of threads to be able to reach the same level as a single-threaded client sending asynchronous requests.
            – BenjaminBallard
            Nov 20 at 14:07










          • CSVLoader would generally increase the latency, because it would be sending larger batch insert requests into the queues and these take longer to process than individual inserts. You can optionally call a procedure from CSVLoader using the -p parameter, which is usually slightly lower throughput, but can have less impact on latency.
            – BenjaminBallard
            Nov 20 at 14:08











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53381017%2fis-it-possible-to-make-asynchronous-stored-procedure-calls-to-voltdb-using-the-p%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          0
          down vote



          accepted










          The VoltDB python client does not support asynchronous calls. It may be possible to make calls from a multi-threaded python application, but we've never tested that, so I don't want to lead you into uncharted waters.



          The java, C++, and Go clients support asynchronous calls.



          If you're mainly trying to do fast inserts, you might leverage csvloader and you could probably execute csvloader from within a python application, but that's probably not what you're looking to do.



          Disclosure: I work at VoltDB.






          share|improve this answer





















          • Thanks for the reply. I've tried from a multi threaded python application with 50-100 threads so far and it seems to work, but I haven't finished testing yet! We're looking to minimise latency on the inserts, would the csv loader increase latency if working in batches? Looks like will need to move to one of the other clients.
            – StevieB
            Nov 20 at 11:28










          • For the same request, the latency should be the same regardless of which client is used. But asynchronous requests allow you to send many requests at once so that throughput is not a function of the latency. A multi-threaded client making synchronous requests can also achieve high throughput, but may require a lot of threads to be able to reach the same level as a single-threaded client sending asynchronous requests.
            – BenjaminBallard
            Nov 20 at 14:07










          • CSVLoader would generally increase the latency, because it would be sending larger batch insert requests into the queues and these take longer to process than individual inserts. You can optionally call a procedure from CSVLoader using the -p parameter, which is usually slightly lower throughput, but can have less impact on latency.
            – BenjaminBallard
            Nov 20 at 14:08















          up vote
          0
          down vote



          accepted










          The VoltDB python client does not support asynchronous calls. It may be possible to make calls from a multi-threaded python application, but we've never tested that, so I don't want to lead you into uncharted waters.



          The java, C++, and Go clients support asynchronous calls.



          If you're mainly trying to do fast inserts, you might leverage csvloader and you could probably execute csvloader from within a python application, but that's probably not what you're looking to do.



          Disclosure: I work at VoltDB.






          share|improve this answer





















          • Thanks for the reply. I've tried from a multi threaded python application with 50-100 threads so far and it seems to work, but I haven't finished testing yet! We're looking to minimise latency on the inserts, would the csv loader increase latency if working in batches? Looks like will need to move to one of the other clients.
            – StevieB
            Nov 20 at 11:28










          • For the same request, the latency should be the same regardless of which client is used. But asynchronous requests allow you to send many requests at once so that throughput is not a function of the latency. A multi-threaded client making synchronous requests can also achieve high throughput, but may require a lot of threads to be able to reach the same level as a single-threaded client sending asynchronous requests.
            – BenjaminBallard
            Nov 20 at 14:07










          • CSVLoader would generally increase the latency, because it would be sending larger batch insert requests into the queues and these take longer to process than individual inserts. You can optionally call a procedure from CSVLoader using the -p parameter, which is usually slightly lower throughput, but can have less impact on latency.
            – BenjaminBallard
            Nov 20 at 14:08













          up vote
          0
          down vote



          accepted







          up vote
          0
          down vote



          accepted






          The VoltDB python client does not support asynchronous calls. It may be possible to make calls from a multi-threaded python application, but we've never tested that, so I don't want to lead you into uncharted waters.



          The java, C++, and Go clients support asynchronous calls.



          If you're mainly trying to do fast inserts, you might leverage csvloader and you could probably execute csvloader from within a python application, but that's probably not what you're looking to do.



          Disclosure: I work at VoltDB.






          share|improve this answer












          The VoltDB python client does not support asynchronous calls. It may be possible to make calls from a multi-threaded python application, but we've never tested that, so I don't want to lead you into uncharted waters.



          The java, C++, and Go clients support asynchronous calls.



          If you're mainly trying to do fast inserts, you might leverage csvloader and you could probably execute csvloader from within a python application, but that's probably not what you're looking to do.



          Disclosure: I work at VoltDB.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 19 at 20:34









          BenjaminBallard

          1,2421011




          1,2421011












          • Thanks for the reply. I've tried from a multi threaded python application with 50-100 threads so far and it seems to work, but I haven't finished testing yet! We're looking to minimise latency on the inserts, would the csv loader increase latency if working in batches? Looks like will need to move to one of the other clients.
            – StevieB
            Nov 20 at 11:28










          • For the same request, the latency should be the same regardless of which client is used. But asynchronous requests allow you to send many requests at once so that throughput is not a function of the latency. A multi-threaded client making synchronous requests can also achieve high throughput, but may require a lot of threads to be able to reach the same level as a single-threaded client sending asynchronous requests.
            – BenjaminBallard
            Nov 20 at 14:07










          • CSVLoader would generally increase the latency, because it would be sending larger batch insert requests into the queues and these take longer to process than individual inserts. You can optionally call a procedure from CSVLoader using the -p parameter, which is usually slightly lower throughput, but can have less impact on latency.
            – BenjaminBallard
            Nov 20 at 14:08


















          • Thanks for the reply. I've tried from a multi threaded python application with 50-100 threads so far and it seems to work, but I haven't finished testing yet! We're looking to minimise latency on the inserts, would the csv loader increase latency if working in batches? Looks like will need to move to one of the other clients.
            – StevieB
            Nov 20 at 11:28










          • For the same request, the latency should be the same regardless of which client is used. But asynchronous requests allow you to send many requests at once so that throughput is not a function of the latency. A multi-threaded client making synchronous requests can also achieve high throughput, but may require a lot of threads to be able to reach the same level as a single-threaded client sending asynchronous requests.
            – BenjaminBallard
            Nov 20 at 14:07










          • CSVLoader would generally increase the latency, because it would be sending larger batch insert requests into the queues and these take longer to process than individual inserts. You can optionally call a procedure from CSVLoader using the -p parameter, which is usually slightly lower throughput, but can have less impact on latency.
            – BenjaminBallard
            Nov 20 at 14:08
















          Thanks for the reply. I've tried from a multi threaded python application with 50-100 threads so far and it seems to work, but I haven't finished testing yet! We're looking to minimise latency on the inserts, would the csv loader increase latency if working in batches? Looks like will need to move to one of the other clients.
          – StevieB
          Nov 20 at 11:28




          Thanks for the reply. I've tried from a multi threaded python application with 50-100 threads so far and it seems to work, but I haven't finished testing yet! We're looking to minimise latency on the inserts, would the csv loader increase latency if working in batches? Looks like will need to move to one of the other clients.
          – StevieB
          Nov 20 at 11:28












          For the same request, the latency should be the same regardless of which client is used. But asynchronous requests allow you to send many requests at once so that throughput is not a function of the latency. A multi-threaded client making synchronous requests can also achieve high throughput, but may require a lot of threads to be able to reach the same level as a single-threaded client sending asynchronous requests.
          – BenjaminBallard
          Nov 20 at 14:07




          For the same request, the latency should be the same regardless of which client is used. But asynchronous requests allow you to send many requests at once so that throughput is not a function of the latency. A multi-threaded client making synchronous requests can also achieve high throughput, but may require a lot of threads to be able to reach the same level as a single-threaded client sending asynchronous requests.
          – BenjaminBallard
          Nov 20 at 14:07












          CSVLoader would generally increase the latency, because it would be sending larger batch insert requests into the queues and these take longer to process than individual inserts. You can optionally call a procedure from CSVLoader using the -p parameter, which is usually slightly lower throughput, but can have less impact on latency.
          – BenjaminBallard
          Nov 20 at 14:08




          CSVLoader would generally increase the latency, because it would be sending larger batch insert requests into the queues and these take longer to process than individual inserts. You can optionally call a procedure from CSVLoader using the -p parameter, which is usually slightly lower throughput, but can have less impact on latency.
          – BenjaminBallard
          Nov 20 at 14:08


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53381017%2fis-it-possible-to-make-asynchronous-stored-procedure-calls-to-voltdb-using-the-p%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          404 Error Contact Form 7 ajax form submitting

          How to know if a Active Directory user can login interactively

          TypeError: fit_transform() missing 1 required positional argument: 'X'