Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Nope.<br> That's interesting question and I spent some good time investigating it.<br> There is no way to pass a prepared statement between calls. </p> <p>And, honestly, speed gain is not that great to talk about. </p> <p>If you're concerned in performance - turn to the <strong>queries</strong>, not to mere a driver.<br> It's queries that affect performance, not the way they re called.</p> <p>errr..<br> after reading your question more throughly, I didn't change my mind, but there are some things to note</p> <blockquote> <p>high volume of tiny REST requests which will mostly be doing small queries and returning them to the browser to deal with will end up doing a lot of redundant work for each request.</p> </blockquote> <p>That's right.<br> So, consider to reduce that number by sending requests in batches and requesting more info in one. Not because of negligible difference in prepared statements but because of <strong>considerable network latency</strong>.</p> <blockquote> <p>I would expect to reduce the apache server to mysql server overhead substantially.</p> </blockquote> <p>And this one is not.<br> Looks like you're taking prepared statements wrong and confusing them with query cache.<br> Even if you manage to get prepared statements to persist between requests, it won't affect whatever apache to mysql interchange - you need to <em>execute</em> every subsequent call to prepared statement, means send request to mysql server. So, the only thing you save on is just query parsing which is blazingly fast nowadays. I mean unnoticeable fast. </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload