Jump to content

Problem with DB Query Speed (no code just question)


idontknowphp

Recommended Posts

I have a pretty large database, and I can run some simple queries on it e.g. Select, Update...the real problem i am having is trying to drop the fulltext so I can update it....every time i try to run the drop query it will timeout...also, now my app is not functioning properly when i load the search it is automatically supposed to show a few rows and now there are none displayed at all....Any thoughts?

 

If someone can help better by looking at the code/db send a PM and we will discuss it...

 

In fact i would prefer that, I just recieved this error:

 

Warning: mysql_query() [function.mysql-query]: Unable to save result set in /home1/oregoner/public_html/search.php on line 157

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home1/oregoner/public_html/search.php on line 158

MySQL server has gone away

Link to comment
Share on other sites

The most likely cause for this was that your query results were very large, took too much time to fetch them, try increasing your timeout in php.ini

 

It would also help to increase the memory in php.ini, and also create an index on any where/and/or values for the select statements in your database.

 

Posting the actual code can get you better help.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.