O.K. this code does run in very nearly no time but that still leaves me
right back where I started trying to figure out why the readFields function
in ObjectDao is firing six times each time I do an update from the form
using Joes basic sample Unity app modelglueapplicationtemplate.

<!--- Create the coldspring bean factory --->
<cfset variables.instance.ColdSpringBeanFactory = createObject("component","
coldspring.beans.DefaultXmlBeanFactory").init() />
<cffunction name="getColdSpring" access="public" returntype="any"
output="false">
   <cfreturn variables.instance.ColdSpringBeanFactory />
</cffunction>

<!--- Read the xml file --->
<cfset
getColdSpring().loadBeansFromXmlFile("/actionpacks/security/config/ColdSpring.xml",true)
/>

<!--- get the Reactor bean based on the definition in the xml file --->
<cfset variables.instance.Reactor = getColdSpring().getBean("Reactor") />
<cffunction name="getReactor" access="public" returntype="any"
output="false">
   <cfreturn variables.instance.Reactor />
</cffunction>

<cfset UserMain = getReactor().createRecord("USER_MAIN")>
<cfset UserMain.setUSM_USER_MAIN_ID(328)>
<cfset UserMain.setUSM_USER_LOGIN("testuser02")>
<cfset UserMain.save()>
<cfset UserMain = UserMain.load()>

<cfdump var="#UserMain.getUSM_USER_LOGIN()#" label="UserMain">
<cfabort>


On 5/11/07, Tom Chiverton <[EMAIL PROTECTED]> wrote:

On Thursday 10 May 2007, Bryan S wrote:
> something to do with our environment as Tom suggested. A similar update
was
> taking close to five seconds there without the enhancement versus eleven
> seconds here with the enhancement. Is nearly five seconds for an update
> with MSSQL normal?

Of a single record ? No, it should be well under a second (at least).
Can you turn on debugging and confirm (for a 2nd run straight after the
1st
one) that it isn't just the insert query itself taking a long time (maybe
the
database is over loaded), it really is Reactor running all the 'one time'
setup queries again every single time.

> can't really duplicate it without Model Glue

Use CreateObject() in a plain old CFM template to create reactorFactory
yourself, as in the Reactor livedocs, and then go ahead and update the DB
record.
Do the same debugging test as above.

What I *expect* to happen is that the plain Reactor version runs in very
nearly no time (the 2nd time round), where as the MG version doesn't.

--
Tom Chiverton
Helping to conveniently enhance real-time experiences
on: http://thefalken.livejournal.com

****************************************************

This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England
and Wales under registered number OC307980 whose registered office address
is at St James's Court Brown Street Manchester M2 2JF.  A list of members is
available for inspection at the registered office. Any reference to a
partner in relation to Halliwells LLP means a member of Halliwells LLP.
Regulated by the Law Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and
may be confidential or legally privileged.  If you are not the addressee you
must not read it and must not use any information contained in nor copy it
nor inform any person other than Halliwells LLP or the addressee of its
existence or contents.  If you have received this email in error please
delete it and notify Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.



-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- --
Reactor for ColdFusion Mailing List
[EMAIL PROTECTED]
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- --




-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Reactor for ColdFusion Mailing List
[EMAIL PROTECTED]
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

Reply via email to