Forum Moderators: open
This morning I gave all my scripts a thorough going through tweaking them for performance but with little effect. I've now taken a step back and have identified some things that may be possibilities but have not found much on them to help me.
The possibilities I wondered about are:
I have modularised my code too much and the use of includes (10 on one page) is slowing it down
My method for dealing with recordsets is wrong. I use about 6 recordsets on a page. Only one is open at any time, but I am using 6 recordset objects with different names, and closing & setting each one to nothing after use. Would it be better only having one recordset object and just opening/closing it?
I've tried some testing. The most common error I get is that the page appears minus its CSS, and the browser stays busy for ages. What could the browser be doing? It has processed the script, so what is keeping it busy?
Any advice on how to narrow down the cause or on the suggestions above is greatly appreciated.
Matt
Should I be doing:
Open conn
open rst1
close rst1
close conn1
open conn2
open rst2
close rst2
close conn2
?
Doing it that way sounds a bit odd to me, but maybe thats what I'm doing wrong...