Skip to main content
Participant
August 15, 2009
Question

CF Admin -Data Source Q

  • August 15, 2009
  • 1 reply
  • 494 views

Hi all,

Can someone tell me the adv and disadv of 'Maintain Connections ' under CF Admin > Data & Services > Datasources > Oracle?


Note : yesterday we got ora -01000 error ...after cf server restart there were no ora errors...

    This topic has been closed for replies.

    1 reply

    BKBK
    Community Expert
    Community Expert
    August 15, 2009

    Advantage of maintaining connections: This is efficient, as  Coldfusion can then process one query after the other, using the same connection. This all happens in the background, without any need for your intervention.

    Disadvantage: Suppose you check the setting to maintain connections. Suppose also that Coldfusion processes one query but, for whatever reason the connection breaks  before it can process the next. Then  an exception will be thrown.

    If you uncheck the setting to maintain connections, Coldfusion will establish a connection for every query. You would avoid exceptions, but making a connection for every request is inefficient.