-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Dear all
I was looking at some performance tuning document on IIS 5.0 where it
says that the "Optimization" setting in "File and Printer Sharing for
Microsoft Networks Properties" should be changed from "Balanced" to
"Maximize data throughput for network applications".
If I'm using Spectra 1.5 and I frequently use cfa_contentObjectFind
and cfa_contentObjectGet, will the above change help in speeding up
execution of code?
Consider the following 2 ways of searching through objects of a
certain type:
#1
<cfa_contentObjectFind dataSource="some_dsn" typeID="#type_Ducks#"
r_lObjects="lDucks" bactiveonly="no">
<cfloop list="#lDucks#" index="idxlDucks">
<cfa_contentObjectGet dataSource="some_dsn" objectID="#idxlDucks#"
r_stObject="stDuck">
<cfif stDuck.Weight gt 2>
<!--- do stuff --->
</cfif>
</cfloop>
#2
<cfa_contentObjectFind dataSource="some_dsn" typeID="#type_Ducks#"
r_stObjects="stDucks" bactiveonly="no">
<cfloop collection="#stDucks#" item="keystDucks">
<cfif stDucks[keystDucks].Weight gt 2>
<!--- do stuff --->
</cfif>
</cfloop>
The first method returns a list of object IDs, while the second
returns a structure of object data. Which way is faster?
Thanks for any help.
- ----
Loke, Teng-Yan | [EMAIL PROTECTED] | +65-2169725
E-commerce | novaSPRINT.com (S) Pte Ltd
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 6.5.8 for non-commercial use <http://www.pgp.com>
iQA/AwUBOoGYphQsl2B8K+e4EQIRSgCeOhlhGhkAQ1IWMx6m4LEEQtyFRkMAoJ8L
AgJUR8cQD5kWZ133bhszPuje
=+4kD
-----END PGP SIGNATURE-----
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
------------------------------------------------------------------------------
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/spectra_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.