Note that there are some explanatory texts on larger screens.

plurals
  1. POMYSQL Error, server has gone away?
    primarykey
    data
    text
    <p>i am useing the query below, when i run this query once per page there is no problem, but it needs to be called around 30+ times with slightly different values on a single page, sometimes it runs ok, sometimes the page never loads, and sometimes i get a "server has gone away" error, <a href="http://dev.mysql.com/doc/refman/5.0/en/gone-away.html" rel="nofollow">http://dev.mysql.com/doc/refman/5.0/en/gone-away.html</a></p> <p>is this a performance problem, do i need to break down this query into smaller ones (will that even have any effect), or is there something else i can do ?</p> <pre><code>SELECT normalmtm.id, normalmtm.amt, normalmtm.lockexpire, ptassumptions.id, ptassumptions.zero, ptassumptions.beta, ptdata.id, ptdata.date FROM normalmtm INNER JOIN ptdata ON ptdata.date = normalmtm.lockdate INNER JOIN program ON program.clientcode = '1' AND program.clientprogram = normalmtm.program AND program.normalprogram = 'program' INNER JOIN ptassumptions ON ptassumptions.clientcode = '1' AND ptassumptions.program = program.normalprogram INNER JOIN purpose ON purpose.clientcode = '1' AND purpose.clientpurpose = normalmtm.purpose AND purpose.normalpurpose = ptassumptions.purpose INNER JOIN status ON status.clientcode = '1' AND status.clientstatus = normalmtm.stage AND status.normalstatus = ptassumptions.status WHERE normalmtm.clientcode = '1' GROUP BY normalmtm.id </code></pre> <p>the normalmtm table has a few thousand rows, and the other tables are smaller normalised tables with around 100 rows</p> <p>EDIT</p> <p>its a WAMP server running on a local windows machine, Apache Version :2.2.11, PHP Version :5.3.0, MySQL Version :5.1.36</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. 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