Jochem,

Don't tell anyone, but I actually just started using CFTransaction,
shhhh ;) That's awesome to know that it will be more useful for things
other than Roll Back.

Sweeeeeeet!  


......................
Ben Nadel
Certified Advanced ColdFusion MX7 Developer
www.bennadel.com
 
Need ColdFusion Help?
www.bennadel.com/ask-ben/

-----Original Message-----
From: Jochem van Dieten [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 27, 2006 9:32 AM
To: CF-Talk
Subject: Re: Creating text files w/ 1mil + lines

Ben nadel wrote:
> This is very interesting. I have never really learned very much about 
> CURSORS but they seem quite cool. I didn't realize that you could make

> any SQL objects that would live past more than one CFQuery tag.

You have to put it in a transaction to make sure you keep using the same
connection, but you can also persist temp tables, savepoints and
probably a few more.

> I will
> definitely give this a try for experimentation sake. CURSORS do seem 
> like something that are very useful... Are there any downsides to 
> CURSORS that I should know about right off the bat?

They consume resources on the DB server so be careful with keeping many
big ones open. Try to use flags like NO SCROLL and FOR READ ONLY to
minimize their performance impact. And on MS SQL Server 2005 you might
want to look into snapshot isolation (which already is the default for
Oracle, PostgreSQL, InnoDb etc.).

Jochem



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:265078
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to