What is it about CFFUNCTION that slows things down???

I have some code that imports the contents of an Excel
spreadsheet into my database, during the import process I also do a
fair amount of data massaging. When I run this code straight from a
URL it completes in about 90 seconds. When I encapsulate the exact
same code into a CFC function and call it from my Flex application
the run time jumps to around 10 minutes. Is there something about
calling a CFC function from within Flex that I am missing here? The
only differences in the code are a few passed in variables (which
are hard coded in the URL version) and the CFFunction tags. The
differences are trivial so I don't see how they could be accounting
for the extra time.
Any thoughts on why the CFC runs so much slower than the
CFM??? Oh... I am running CF 7.02 and my client will be on that
platform for the foreseeable future.
Have an Ordinary Day...
KomputerMan ~|:-)

I think it is something to do with how the end of the
function processes. I am able to watch the records get wrote into
my database table. From the time the last record gets wrote to the
time the end of the function is processed is about 19 seconds for
500 records. That time goes up when more records are processed too.
Here is the code at the end of my loop that processes the data
prior to the end of the function. When the /CFLOOP is reached is
when the last record is wrote to the table.
<CFSILENT>
<!--- bunch of code to import a spreadsheet and put it
into a temporary database table so the data can be further
manipulated. This is then followed by a bunch of code to do
summations, groupings, create referential integrity, etc… and
then put the clean data into a good data table and the bad data
into a bad data table. --->
<CFTRANSACTION>
<cftry>
<CFLOOP QUERY="GetData">
<cftransaction action = "commit"/>
</CFLOOP>
<cfcatch type="database">
<cfthrow message="function = ADD records, MyFlag =
#MyFlag# #cfcatch.Message# #cfcatch.Detail#">
</cfcatch>
</cftry>
</CFTRANSACTION>
<!--- here is where I start my stop watch when the record
count in my table quits incrementing --->
</CFSILENT>
<CFSET MyReturnString = GoodCnt & ',' & BadCnt1
& ',' & BadCnt2 & ',' & BadCnt3>
<CFRETURN MyReturnString>
</CFFUNCTION>
I have been playing with adding a CFTRANSACTION into the code
to see if that helps or hurts. So far it has not made a difference.
Bottom line is after the data is processed the function is not
returning to Flex in a timely manner.
Have an Ordinary Day...
KomputerMan ~|:-)

Similar Messages

  • How do I turn off the "Error Console"? It is popping up every second or less. I clicked on "Messages" and that slowed things down a little but it still keeps coming up.

    This all started when I mistakenly clicked "Restore Default..." instead of "Done" when I was customizing the toolbars. How do I get the error console to stop coming up??
    Thanks!!

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • Preloader - slowing things down?

    Hello there - hope you're good - thanks for looking at this.
    I've been experimenting with 2 different kinds of preloaders,
    they both work (internal & external preloaders), both giving
    the same kinda results... but both slowing things down a bit.
    Let me explain!
    I have 2 swfs, each one about 500k, with some streaming audio
    embedded in the timeline, and banks of buttons that hop around the
    timeline to play different sounds.
    In a sec i'll post a link to an example page, but let me
    explain first what you'll be looking for the first time they load.
    The swf on the left (just under the VOICE title) has a
    preloader built into the beginning of the movie, which i made
    thanks to Lee's "Advanced Flash Preloader" tutorial. I've made sure
    there's no data on the first 2 frames (where the preloader is) so
    it should load quick. The preloader graphic is just a bar that
    fills from left to right.
    The swf on the right (just under the MUSIC title) is an
    external preloader called MUSIC2.swf, that preloads MUSIC.swf. This
    was made using Lee's "External SWF Preloading" tutorial. The
    preloader graphic for this is just a percentage.
    With both of them there's still a delay before even showing
    the preloader - and then i reckon the actual preloading process is
    slowing things down. When i tried other versions of the swf's that
    just opened normally, they seemed to load much quicker.
    At the moment i'm thinking that the issue of the preloading
    graphic not showing straight away is an actual fixable problem, but
    the issue of the preloading graphic slowing the preloading is
    probably just the way it is?
    Anyway, here's the link...
    http://keepholding.com/examplesinner2.htm
    (ignore the fact the functionality of the audio buttons on
    the panel on the left is a bit screwey - i haven't fixed that since
    i shifted everything along by 2 frames to make the preloader!).
    Now my mum has a slow dial-up connection, and she didn't even
    get to see either of the preloaders, before she had to go to bed!
    Thinking about it, there are some small solo audio swf
    buttons further down the page - so may the browser will try and
    load those first - even though they're only tiny - maybe THAT is
    the problem?!
    Oh by the way, the reason i've used 2 different types of
    preloaders is just for experimentation. I plan to use the best one
    on both when it's proven to work properly.
    Some of the files i've used are in this zip file
    http://keepholding.com/bits.zip
    VOICEUNITv2 is the raw FLA file used to make VOICES3.swf
    MUSICLOADER is the raw FLA file used to make preloader
    MUSIC2.swf, which preloads MUSIC.swf.
    Does any of this make sense?
    Can you help?!
    cheers
    James

    Oh, when i say Lee's tutorial, i mean from
    www.gotoandlearn.com

  • How to slow things down to see the progress bar?

    how to slow things down to let the progress bar to show its progress?
    everytime i run the program i can see only two scenario: 1. 0% 2. 100%
    i think the stuffs are too little to make any difference.
    what should i add in the codes so that i can see the progress?
    thanks!
    here is my codes:
    jProgressBar1.setValue(1);
    do some stuff here
    jProgressBar1.setValue(15);
    do some stuff
    jProgressBar1.setValue(31);
    do some stuff
    jProgressBar1.setValue(41);
    do some stuff
    jProgressBar1.setValue(61);
    do some stuff
    jProgressBar1.setValue(100);

    Hi!
    When you call update on the progress bar, the value of the progress bar is updated, but it won't be reflected on the screen until Swing has a chance to repaint. Swing can't repaint until your code is finished. So, what's happening is something like this:
    setValue(1), do stuff, setValue(15), do stuff, setValue(31), do stuff, Swing Repaint
    Also, not only does this block the progress bar from updating, but as long as your code here is running it blocks all of Swing (repainting, handling events, etc...).
    If your "stuff" isn't very time consuming, just remove the progress bar altogether. Otherwise, to make things work properly, you'll want to move it to another thread. Then, from that thread you can keep the progress bar up to date with:
    SwingUtilities.invokeLater(new Runnable() {
        public void run() {
            jProgressBar1.setValue(xxx);
    });Hope that helps!
    Shannon Hickey (Swing Team)

  • 2nd Display: does it slow things down?

    This could be a really stupid question, so bear with me -- does the addition of a second screen to the imac duo slow the machine down? I have noticed that Aperture isn't quite as zippy, and I suspect it's a simple lack of VRAM because of the other monitor...
    True?

    All other things being equal, and the VRAM already being higly used, it seems perfectly logical that adding a secondary display would slow things down. Extra trips to main memory to fetch things that don't fit into VRAM do take time. No idea how noticeable this performance hit would be though/how much load would be required to make it noticeable.

  • What do I do now that I have down loaded LR 4 only to find out that it's not compatable with win. XP

    What do I do now that I have down loaded LR4 only to find out that it's not compatable with windows XP?

    Upgrade your operating system? Call sales support to return the package/ undo the purchase within the 14 day timeframe? Whichever you prefer...
    Mylenium

  • All kinds of problems with scripts running and slowing things down. It always has to do with "chrome". I sick of it and am going back to IE if I can't get this resolved this weekend.

    What do you want to know.....it's been going on for months and I can't seem to get it resolved. It's definitely a conflict with FF and why you can't resolve it, I have no idea. I've searched the net and these error messages are everywhere. Don't you think it's time you address this.
    At this point I really don't care if I use FF any more. It's slowing everything down on my machine and if you don't have the experience to correct it, then back to IE I'll go.

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes
    Create a new profile as a test to check if your current profile is causing the problems.
    See "Basic Troubleshooting: Make a new profile":
    *https://support.mozilla.com/kb/Basic+Troubleshooting#w_8-make-a-new-profile
    There may be extensions and plugins installed by default in a new profile, so check that in "Tools > Add-ons > Extensions & Plugins" in case there are still problems.
    If that new profile works then you can transfer some files from the old profile to that new profile, but be careful not to copy corrupted files.
    See:
    *http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox

  • I bought and downloaded a few song on iTunes. Now I see that some of the songs were not completely downloaded and stops a few seconds into the song. I went back to the album but it does not give me an option to re-download. What do I do so that I can down

    I bought and downloaded a few song on iTunes. Now I see that some of the songs were not completely downloaded and stops a few seconds into the song. I went back to the album but it does not give me an option to re-download. What do I do so that I can down

    Just found the answer - if you have the sam problem look here for the answer:
    https://discussions.apple.com/thread/5769424?tstart=0

  • What's wrong about  "JSF that emits Ajax-widgets" on the server side?

    Hi,
    I just read this chat about Ajax on the server side and I wonder what this comment bellow means when we are building JSF application with Ajax:
    Another thing to consider is that in a pure Ajax application (i.e. one that's not a hybrid of a server-side technology like JSF that emits Ajax-widgets), the server can pretty much just respond to requests from the Ajax client in a stateless manner, and all of the state gets distributed to the client, greatly reducing the memory resources on the server. I'm working on an app like this for IBM Rational and we're really excited about the *decreased* load on the server by distributing state to clients.
    http://www.devwebsphere.com/devwebsphere/2006/04/ajax_and_its_im.html
    Thanks in advance.

    Just created a half an hour ago application:
    http://jsfbyexamples.com/facesTrace/
    shows that the AJAX request spends less time on the server even it walk though the whole life-cycle. This is a very small page, BTW. On the complicated page, the difference will be more significant. It is about server resources.
    About network traffic: Do you actually believe that sending the whole page produces less traffic than the portion updates? Just mathematically speaking?
    OK, I guess you mean the AJAX application requires traffic comes back and forward to produce the AJAX functionality. Non-AJAX application does not produce the traffic, but it does not produce the functionality you have in the first case.
    People who argue about it just try to compare Something to Nothing. So, where is the point?
    Sergey : http://jsfTutorials.net

  • I have tabs that are always reloading and at times it either slows things down or I stopped it before in a previous version. How can you stop this constant refreshing? Its not just one site usually its all of them.

    After the last upgrade the tabs will begin refreshing at times it slows my movements the page freezes til it catches up. Or if flashplayer is running it will crash. One of the previous versions had this problem but there was an area to go to, to disable it. Ive tried about:config but it still refreshes. Im using Wimdows 7

    Thank you both so very much for your quick replies.  that is what I thought but the your assurances  help me ease my anxiety.  And yes the credit union has made a change because now it no longer recognizes my computer as a personal computer when I am using Firefox after the latest Firefox update, and requires me to answer a security question to log in, which is why I had been using Safari, but as I was in Firefox I was lazy and didn't switch browsers.

  • What do a about messages that have no mailbox?

    Yesterday I rebuilt Envelope Index and now I'm looking at a bunch of messages that no longer have a mailbox associated with them and interestingly enough you cannot sort them in the viewer by this column.
    The ones that have no mailbox look like this
    The message from poipu <[email protected]> concerning “[Rails] Re: actsascommentable release” has not been downloaded from the server. You need to take this account online in order to download it.
    I'd like to be able to isolate all of these and purge them all together.
    How can you do that?
    I'm not sure there's any column that indicates these. I'd like to be able to write a piece of applescript that just goes thru and gets rid of all of these but since they exist in the index but not in the filesystem as files I'm not sure how to do that.
    And all of this after rebuilding the index.

    First, consult Mac OS X 10.4, Mail: Messages seem to be missing, or "Message has not been downloaded" alert appears when opening for the other two remedies Apple suggests for this.
    Also pay attention to the caveat about having enough disk space in the rebuilding link it references, & check the info in Mac OS X 10.3, 10.4 Mail: Overstuffed mailbox is unexpectedly empty for relevance.
    Hopefully, one of these references will help.

  • SIMBL bundle in a loop: slowing things down

    I am experiencing some kind of a slowdown here. Checking the Console gives this message over and over again:
    2006-12-09 14:19:18.829 Console[2702] * -[NSBundle load]: Error loading code /Users/"Me"/Library/InputManagers/SIMBL/SIMBL.bundle/Contents/MacOS/SIMBL for bundle /Users/johngrif/Library/InputManagers/SIMBL/SIMBL.bundle, error code 2 (link edit error code 0, error number 0 ())
    The Activity Monitor shows a kernel_task with process ID of "0" taking up the lion's share of the CPU.
    Does anyone know what is going on here? I would go in and remove the offending "SIMBL.bundle" but I don't know what this would do.
    Griff
    Griff

    Hi Griff
    It is quite safe to use the finder to move the folder /Users/"Me"/Library/InputManagers/SIMBL/ to the desktop, then restart your mac to be sure that SIMBL isn't loaded, If this solves the slow-down, you'll know it's related to that.
    Simbl is used to load other 3rd party add-ons on osx, so you'll likely find that one of those isn't working after you do it.
    If moving the simbl folder makes no difference, you can just move it back again.
    and if so, I;d suggest testing this issue in another user account next.

  • How do I stop new tabs openning when I have not selected anything. I end up with dozens of tabs espetially in Ebay, which slows things down and is a right pain.

    As question

    Sometimes a problem with Firefox may be a result of malware installed on your computer, that you may not be aware of.
    You can try these free programs to scan for malware, which work with your existing antivirus software:
    * [http://www.microsoft.com/security/scanner/default.aspx Microsoft Safety Scanner]
    * [http://www.malwarebytes.org/products/malwarebytes_free/ MalwareBytes' Anti-Malware]
    * [http://support.kaspersky.com/faq/?qid=208283363 TDSSKiller - AntiRootkit Utility]
    * [http://www.surfright.nl/en/hitmanpro/ Hitman Pro]
    * [http://www.eset.com/us/online-scanner/ ESET Online Scanner]
    [http://windows.microsoft.com/MSE Microsoft Security Essentials] is a good permanent antivirus for Windows 7/Vista/XP if you don't already have one.
    Also try [https://addons.mozilla.org/en-US/firefox/addon/adblock-plus/ ABP]
    Further information can be found in the [[Troubleshoot Firefox issues caused by malware]] article.
    Did this fix your problems? Please report back to us!

  • Safari update slowed things down

    hi,
    after installing safari update 7.1.5 my internet browsing became very slow.  should i revert to previous safari? how?
    other updates were: Security update 1.0 and iTunes 12.1.2.  could these have slowed down the browsing?
    presently the system is os x 10.9.5. 
    more than half the storage is free.
    thanks

    Hi
    There may be a lot of reasons for this issue. Try to follow the instructions above:
    Reset Safari settings:
    1.Open Safari
    2. Click on Safari menu at the top(to the right from the Apple logo)
    3. Select preferences/privacy tab
    4. Click on Remove all website data
    5. Close Safari.
    Delete Safari cache files:
    1. Click on finder
    2. Look for GO menu at the top
    3. click on GO and hold down the option key. This will show user library folder.
    4. Click on Library and look for Caches folder
    5. In caches folder open com.apple.Safari folder
    6. Move to trash Cache.db file.
    Turn off Safari extentions
    1.Open Safari
    2. Click on Safari menu at the top(to the right from the Apple logo)
    3. Select preferences
    4. Find extentions tab
    5. Turn off all the extentions
    6. Relauch Safari

  • What is it about Apple???

    I realize that this question may not belong in this discussion forum and if someone knows about any other forum that is more suitable for this types of questions I would be very grateful if you could give me the name/link to the forum.
    I am currently doing research for an article regarding brands and customer loyalty and after reading through a great number of articles, news releases, blogs, etc. I realize that the customers of Apple are not like other customers. They are probably some of the most loyal people I've ever read about. No matter what mistakes Apple may make, the customers are always there to support them and every time someone says something bad about the company, there are always one or more Apple-enthusiasts that steps forward to defend the brand. As a person who do not own any Apple products, I'm having a hard time understanding this extreme loyalty and I therefore need to ask: what is it about Apple that is so great? Is it just the great products that make the customers so loyal or is it something more than that?
    I'd be extremely grateful for any replies I may get.

    Ckristof wrote:
    ...what is it about Apple that is so great? Is it just the great products that make the customers so loyal or is it something more than that?
    Ckristof ~ In this _1995 interview_, Steve Jobs explains the type of creative people behind the original Mac. And at the end of the quote below, Jobs reveals something special those people put into Apple's products — and presumably still do. ...Could it be that which is the +"something more"+ ? ... Could it be that which indirectly makes Apple's customers so loyal without them really understanding why?
    Interviewer:
    And the artistry is in the elegance of the solution, like chess playing or mathematics?
    Steve Jobs:
    No. I think the artistry is in having an insight into what one sees around them. Generally putting things together in a way no one else has before and finding a way to express that to other people who don't have that insight so they can get some of the advantage of that insight that makes them feel a certain way or allows them to do a certain thing. I think that a lot of the folks on the Macintosh team were capable of doing that and did exactly that.
    If you study these people a little bit more what you'll find is that in this particular time, in the 70's and the 80's the best people in computers would have normally been poets and writers and musicians. Almost all of them were musicians. Alot of them were poets on the side. They went into computers because it was so compelling. It was fresh and new. It was a new medium of expression for their creative talents. The feelings and the passion that people put into it were completely indistinguishable from a poet or a painter. Many of the people were introspective, inward people who expressed how they felt about other people or the rest of humanity in general into their work, work that other people would use. People put a lot of love into these products, and a lot of expression of their appreciation came to these things. It's hard to explain.

Maybe you are looking for