473,473 Members | 1,972 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Help Needed for fine-tuning CF code

28 New Member
Hi All,
I am working on a web page which is built in ColdFusion.
The problem is it's performance.The page takes lot of time for appearing on the screen.I have fine-tuned my code to follow the best practices of CF but somehow could not find any improvement in the performance.I have found-out that the query does not take much time but while rendering the data on the screen it takes most of the time.I am using the cfoutput tag to loop over the query data.

Can someone please help me out with the possible solution.

Thanks.
Jan 23 '07 #1
2 2544
acoder
16,027 Recognized Expert Moderator MVP
Hello and welcome to TheScripts.

If you haven't already, see this page for tips on performance.

I have found that one of the largest bottlenecks is when retrieving data from the database. To counter this, if your data does not need to be current (say, an hour old is fine), you can cache the query by using the CachedWithin attribute of the CFQUERY tag. You can also use Query of queries which queries an existing query rather than get new data from the database for each piece of data. You could also reorder SQL clauses.

See if that helps and post again if you need more help.
Jan 23 '07 #2
hussain123
28 New Member
Thanks mate.
I'll try that.


Hello and welcome to TheScripts.

If you haven't already, see this page for tips on performance.

I have found that one of the largest bottlenecks is when retrieving data from the database. To counter this, if your data does not need to be current (say, an hour old is fine), you can cache the query by using the CachedWithin attribute of the CFQUERY tag. You can also use Query of queries which queries an existing query rather than get new data from the database for each piece of data. You could also reorder SQL clauses.

See if that helps and post again if you need more help.
Jan 23 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Ralph Freshour | last post by:
I'm not sure the follow multiple table query is the right way to do what I need to do although it seems to be working: $php_SQL = "SELECT * ". "FROM basics, personal, photos ". "WHERE...
10
by: svenn.are | last post by:
Hi, I wanted to run a program that is written in PyQt on my mac, and went over to Riverbank to get PyQ 3.13 and SIP 4.1.1 sources. I followed the installation guide except for the compiling...
0
by: Ralph Freshour | last post by:
I'm not sure the follow multiple table query is the right way to do what I need to do although it seems to be working: $php_SQL = "SELECT * ". "FROM basics, personal, photos ". "WHERE...
19
by: Thue Tuxen Sørensen | last post by:
Hi everybody ! I´m maintaining a large intranet (approx 10000 concurrent users) running on one IIS box and one DB box with sqlserver 2000. Currently there is 2,5 GB Ram, 1 1400 mhz cpu and 2...
8
by: slim | last post by:
hi again all, i am still working on the website as mentioned in earlier threads and have hit another snag... http://awash.demon.co.uk/index.php http://awash.demon.co.uk/vd.css the php is...
0
by: Andrew S. Giles | last post by:
Hello everyone, I am trying to deploy a project, and I cannot get it to work. Does anyone have any ideas how I should be going about this, since the way I am attempting is obviously wrong. ...
1
by: firenet | last post by:
Came in one morning and found that the following message appeared only on running Access 2000, then the program shuts down, all other office 2000 applications work fine. "Required registry...
2
by: dave | last post by:
Hi, I have a COM control / server I'm trying to get events from in my c# applications. 1) I'm trying to get events in both c# console apps and in c# winform apps. 2) I can call methods on the...
3
by: Ron | last post by:
Hi All, Okay, here's the deal: Access2000/WinXP. Have a database that's split, FE/BE with multiple users having FE and one of those users also has BE (still split though...). Have a form on...
3
by: thanawala27 | last post by:
Hi, I needed some help here. I have variable which has the following data var = "User:abc, <br>Date:06/15/07,<br>Comments: EVERYTHING IS FINE" i tried to put the value of 'var' in a text area...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.