Support Forums

Slow retrieval of SQL data

This is a discussion on Slow retrieval of SQL data within the Technical Support forums, part of the Technical Support Forums category; Hi, We have two 68 C sites using V4.0.9 Designer and a modified default template that have been running for ...


Go Back   68 Classifieds Forums > Technical Support Forums > Technical Support

Reply
 
Thread Tools Display Modes
Old 06-20-2011, 11:19 PM   #1
Customer
 
Join Date: Sep 2008
Posts: 49
Rep Power: 13
skyblue is on a distinguished road
Default Slow retrieval of SQL data

Hi,

We have two 68 C sites using V4.0.9 Designer and a modified default template that have been running for some time now. Recently we have noticed that when a search is performed there is a delay of anywhere from 10 to 30 seconds. We contacted our host provider and they are telling us it is a parsing issue in our code and provided the following link to help with repair:

Quote:
[19:58:11.074] An unbalanced tree was written using document.write() causing data from the network to be reparsed. For more information https://developer.mozilla.org/en/Opt...lative_Parsing
I have searched the unencrypted files and cannot seem to find the specific code referenced in the link.

Has anyone experienced this problem? (or is the host provider skirting the issue)

Any suggestions would be much appreciated.

Thanks.
__________________
__________________
Using Designer V4.09 & 4.1.9
skyblue is offline   Reply With Quote
Old 06-21-2011, 04:03 AM   #2
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,342
Rep Power: 84
seymourjames is a jewel in the rough
Default

You would need to have a copy of developer to search all the files. I have looked at an old 4.0.9 installation that I have and do not have the same problem with search. This too unfortunately was designer. Have you tried testing on a completely untouched default template? This will then get rid of the case it is your modifications to the template behind the slowdown.

You might also like to consider upgrading as the newer versions not only correct bugs but also provide many security patches.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates & Modules
Get the Best U.S Hosting, Best U.K Hosting
seymourjames is offline   Reply With Quote
Old 06-21-2011, 07:38 AM   #3
curmudgeon
 
Join Date: Mar 2006
Posts: 5,413
Rep Power: 138
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

document.write is javascript, not the mysql database.

Do you have any modules?

Have you customized the templates at all?

What browser are you using, people who recently switched to Firefox 4 have had similar issues with html parser enabled. Often times its a missed closing tag in java or something.
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline   Reply With Quote
Old 06-22-2011, 12:29 AM   #4
Customer
 
Join Date: Sep 2008
Posts: 49
Rep Power: 13
skyblue is on a distinguished road
Default

Thank you both for the quick replies.

I spoke with a different individual at our host provider and was told that they recently installed some security updates that may be causing an issue... something about a referrer does not exist when a search is performed. ...They are looking into the issue.

I'll post an update after receipt of thier response.
__________________
__________________
Using Designer V4.09 & 4.1.9
skyblue is offline   Reply With Quote
Old 06-22-2011, 10:00 AM   #5
Developer & Moderator
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 2,311
Rep Power: 69
Mike-N-Tosh is just really nice Mike-N-Tosh is just really nice
Default

One thing, I would be interested in knowing is whether this delay is with ALL browsers or just Firefox. As Larry already pointed out, "document.write()" is javascript. Each browser has it's own version(s) of javascript engine/parser. As pointed out in the developers article for Mozzila (FireFox v4.x), they implemented a new preemptive fetch which is proprietary to that browser.

I would be more apt to believe that it is actually a javascript, document.onload(), call with what your describing as that type of call isn't executed until the page actually fully loads including all images even from other sources like banner ads or google adsense.

I've run into similar delays even much longer or never finishing even though the entire page shows in the browser windows when a Facebook iframe is used. It's notorious for never getting all the resource items called in their javascript. This also, unfortunately has the ill affect of not allowing any other javascript functions to work as well until it finishes, which includes menus that use javascript.
__________________
Mike-N-Tosh
IndianaPC.org - A community website (v3.1.10 Developer - heavily modified & used as the CMS)
Sandbox [localhost(v3.1.10, v4.0.9, 4.1.10,4.2,5.0)] for development and customization
Visit My blog: reviews, tips, tricks, tutorials and my store with Templates, Mods & Docs
Web Hosting | Web Design & Development | 68 Classifieds Customizations
I am not a 68C employee, just a user and try to help out
Mike-N-Tosh is offline   Reply With Quote
Old 06-22-2011, 11:30 PM   #6
Customer
 
Join Date: Sep 2008
Posts: 49
Rep Power: 13
skyblue is on a distinguished road
Default

Yes, the issue existed with all browsers tested (Firefox, IE and Safari).

I received a response from our web host today and they discovered that another website was significantly dominating the shared resources. (I've always found it amazing how fast web hosts point to your script as the issue) They moved the site off the server and all is working well... for now. I guess it's time to seriously consider moving our site from the "pains" of a shared web server.

Thanks again to all for your suggestions and sorry for the false alarm.

Regards,
Jim
__________________
__________________
Using Designer V4.09 & 4.1.9
skyblue is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Products data first after personal data... lowis Site Marketing 5 02-03-2010 01:35 PM
Includes Slow Down Site? bowers01 Technical Support 1 01-21-2010 07:56 AM


All times are GMT -4. The time now is 07:00 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2011, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0