Ask a Question related to Coldfusion Database Access, Design and Development.
-
dj shane #1
Performance Enhancing in SQL 2000 Opinion
Hey guys, I was told specifying dbo.tablename for each field in a query could
enhance performance. Even though I assume this would have more impact on larger
queries, I've given this theory a shot with the below two queries and turned on
DEBUG in CFADMIN. I don't know a difference, both queries are taking 15ms to
run.
Do you all follow the practice of owner.tablename.field?
<cfquery name="test" datasource="#application.dsn#">
SELECT d.Department_ID,
d.Lob_ID,
e.ID,
e.First_Name,
e.Last_Name
FROM Lob_Department_TBL d
INNER JOIN Employees e ON d.Department_ID = e.Dept_ID
WHERE d.Lob_ID = 2
ORDER BY e.First_Name
</cfquery>
<cfquery name="test2" datasource="#application.dsn#">
SELECT dbo.lob_department_tbl.Department_ID,
dbo.lob_department_tbl.lob_ID,
dbo.employees.ID,
dbo.employees.first_name,
dbo.employees.last_name
FROM Lob_Department_TBL
INNER JOIN Employees ON dbo.lob_department_tbl.Department_ID =
dbo.employees.dept_ID
WHERE dbo.lob_department_tbl.lob_ID = 2
ORDER BY dbo.employees.first_name
</cfquery>
dj shane Guest
-
enhancing datefield input type
I have been looking for a way to enhance the coldfusion input "datefield" in my coldfusion flash form. My basic problem is this: I need to make... -
enhancing the dropdownlist
i need to enhance the dropdownlist by adding a property which is bound to the data source. this should keep the view state on a post back. please... -
ASP / SQL 2000 performance problems
I am working with a CMS system that runs on a SQL 2000 db. The server the website sits on is the the DMZ and the SQL server resides in the internal... -
Opinion which to get?
I'm considering getting a Mac for my I.T company. I currently have a PC notebook but the display starting going after 2 months of use. It was... -
XP poor performance on 2000 domain
I have a couple of XP Pro machines on a 2000 domain and they exhibit various behaviors, described below, culminating in slow performance. Login... -
SafariTECH #2
Re: Performance Enhancing in SQL 2000 Opinion
doesn't actually matter in any application we have created
you can get a slight performance boost by calling columns in the same order
they appear in the DB, and you can get a substantial boost (depending on query
sizes) if you cache the queries that are always the same for everyone over a
period of time using the cachedWithin attribute.
SafariTECH Guest
-
mxstu #3
Re: Performance Enhancing in SQL 2000 Opinion
Honestly, I never use "owner." unless it is required. IMO, unless your
reference or article can prove there is a measurable performance difference
using the "owner" qualifier, it is not really something I would worry about.
There are more important areas to focus on, ones that can signifigantly impact
performance... by more than a millisecond or two.
IMO, using "owner.tablename.field" makes large queries difficult to read. I
prefer using aliases instead.
mxstu Guest



Reply With Quote

