Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
wtodd #1
Access Database Horror
PLEASE HELP ME. It takes about 21 seconds to bring up a form which has 24
input fields (7 of which are drop down fields that brings up selection items
from the access database such as mfg, vendor, bldg #, etc.). The access
database is not big at all.
I'm running CFMX 6.1 on a stand alone W2K Server and connecting to MS Access
2000 database, which is also on the server. I added my datasource from the
CFMX Administrator with Access as my datasource and everything checked fine. I
have 7 drop down fields on my form such what you see below: Can someone help
me with this incredibly slow performance. By the way my server has plenty of
space and ram.
<cfquery name=?mfg_name? datasource=?eeeproj?>
SELECT distinct manufacturer
FROM JWST_Table
ORDER BY manufacturer
</cfquery>
<SELECT NAME = ?manufacturer?>
<OPTION SELECTED VALUE = ??> <CFOUTPUT QUERY=?mfg_name?>
<OPTION VALUE = ?#manufacturer#?>#manufacturer#
</cfoutput>
</select>
:clock;:frown;
wtodd Guest
-
Access Database
Hello. We have a database that we does like to use in a movie. How can we do that? Need any special Xtra? Thanks for help Paul and Mike -
Shockwave HORROR
I am trying to get onto Habbo Hotel.. any help? http://img157.imageshack.us/img157/2145/shockwave7kc.png -
php and apache horror on widows xp
Hi, This question maybe asked a lot of times but I still can get apache and php working together. I tried allmost everything what can be found in... -
Write Access to Access DataBase
I'm trying to update a Access Database from information gained from a ASPX page. The database will not update. I'm sure it is in some security... -
How to repair the horror of OS X
I know there are some people who like OS X. Fine for them. This message isn't for them, and they should skip it now. I think OS X has destroyed... -
Stressed_Simon #2
Re: Access Database Horror
Well that is quite a basic query so maybe your db is not indexed very well. If
this query changes rarely then you could always cache it, which will help
immensely.
<cfquery name=?mfg_name? datasource=?eeeproj? cachedwithin="#CreateTimeSpan(0,
0, 30, 0)#">
SELECT distinct manufacturer
FROM JWST_Table
ORDER BY manufacturer
</cfquery>
The bit I have highlighted in bold will save the query to memory for 30
minutes before running it again. This means that the query is run the first
time and then not checked again for 30 minutes. This will definitely make your
page run quicker!
Stressed_Simon Guest
-
wtodd #3
Re: Access Database Horror
Thank you Stressed_Simon. The 'cachedwithin' did speed it up immensely. The
database is new and perhaps you're right on it not being indexed correctly. So
I will check with the creator. THANKS AGAIN.
wtodd Guest
-
mxstu #4
Re: Access Database Horror
You should also check your database design. If the [JWST_Table] table
contains a unique list of manufacturers, then you do not need to use SELECT
DISTINCT, which is typically slower than a regular SELECT. If the table does
not contain unique manufacturers, then you would probably be better off having
a separate table for Manufacturer information [Manufacturers]. Your selects on
this table would be faster and you could use the ManufacturerID (numeric key)
as a foreign key other related tables.
mxstu Guest
-
jorgepino #5
Re: Access Database Horror
if you really don't want a access db horror story
you may want to upgrade your data base to MSsql or MYSQL
jorgepino Guest



Reply With Quote

