search error
search error
i tried to search and it give me this error
Fatal error: Allowed memory size of 50331648 bytes exhausted (tried to allocate 35 bytes) in /opt/www/html/dev/search.php on line 1028
is this my computer or the server?
Fatal error: Allowed memory size of 50331648 bytes exhausted (tried to allocate 35 bytes) in /opt/www/html/dev/search.php on line 1028
is this my computer or the server?
What's happening is this... It's kind of a way to protect the server from locking up the database for too long when doing a search. When you do a search with a very general term like the word "truck", this takes up a lot of time because that word is used in just about every post. Some of the database tables are locked during a search and if that search takes too long, it backs up the other users trying to post, browse or do something else on the site. By allowing only a certain amount of memory to be used in a search, although to you it looks bad when you see it, it's a way to protect the site from going down. If a search takes too long, you have other people trying to click all over the place and when they can't get to a page, they keep clicking and clicking. All of these queries pile up in the queue while your search is going. The load just skyrockets from there. When you see that error, although sometimes I know it can be a pain, know that it's the servers way of protecting itself so to speak. Try using less general terms.
Thread
Thread Starter
Forum
Replies
Last Post
roughstock
Suggestions, Comments and Site Questions
5
Dec 8, 2009 10:29 PM
sdscuba
Suggestions, Comments and Site Questions
1
Dec 1, 2009 03:55 PM







