LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > External Applications > Ruby/Rails > LiteSpeed not honoring my optimistic locking setting

Reply
 
Thread Tools Display Modes
  #1  
Old 04-19-2007, 12:29 PM
dirkbj dirkbj is offline
Member
 
Join Date: Oct 2006
Posts: 16
Default LiteSpeed not honoring my optimistic locking setting

When I launch my rails app under WEBrick, my connection to FrontBase is optimistic, as specified in config/environment.rb:

ActiveRecord::Base::connection.set_optimistic_tran sactions

However, when I launch under LiteSpeed, and it connects to the database, this setting is ignored and it is always pessimistic.

Any thoughts?

Dirk
Reply With Quote
  #2  
Old 04-19-2007, 12:48 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,585
Please verify that WEBrick is started in production mode if LiteSpeed is in production mode. LiteSpeed will not touch connection properties.

However, for technical reason, LSAPI closes all ActiveRecord connections after Rails framework initialization before forking a child process, and the connection will be re-established when a child process processes a request. If this option get lost when the connection was closed/re-established, you need to set it again.
Reply With Quote
  #3  
Old 04-19-2007, 03:29 PM
dirkbj dirkbj is offline
Member
 
Join Date: Oct 2006
Posts: 16
OK... that makes sense. That would be why.

Dirk
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 12:01 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.