[Rails] Re: Re: Memcache

2010-07-20 Thread Yani Yen
Forgot to mention : I had the configuration : config.cache_store = :mem_cache_store in my specific environment file. Still i was getting the above mentioned error Yani Yen wrote: > Hi, > > What i did in my environment.rb file was created an instance of memcache > and assign it t

[Rails] Re: Re: Memcache

2010-07-20 Thread Yani Yen
Hi, What i did in my environment.rb file was created an instance of memcache and assign it to a constant: CACHE = MemCache.new('127.0.0.1') and then in my code something like this: def data_cache(key) unless output = CACHE.get(key) output = yield CACHE.set(key, output, 1.hour) end

[Rails] Re: Memcache

2010-07-19 Thread Yani Yen
y-1.5.1/lib/ruby/1.8/webrick/server.rb:23:in `start' c:/jruby-1.5.1/lib/ruby/1.8/webrick/server.rb:82:in `start' Can anyone help what is happening? Yani Yen wrote: > Hi, > > I am analysis memcache. Hence would like to know whats the best client > for memcache. Have read a

[Rails] Memcache

2010-07-19 Thread Yani Yen
Hi, I am analysis memcache. Hence would like to know whats the best client for memcache. Have read a lot about memcache-client gem. Is that the most popular and widely used one? Also most of my queries are complex queries and i have used find_by_sql for the same. Can i cache these results got fro

[Rails] Re: db connection issues in production but not in dev mode

2010-06-09 Thread Yani Yen
Hi, my postgreSQl error went by changing the postgres adapter to 8.3.604.. Thanks... -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-t...@google

[Rails] Re: db connection issues in production but not in dev mode

2010-06-09 Thread Yani Yen
(1.3.0, 1.2.9) ruby-debug (0.10.3) ruby-debug-base (0.10.3.2) rubyzip (0.9.4) sources (0.0.1) warbler (1.0.3) Thank you. Marnen Laibow-Koser wrote: > Yani Yen wrote: >> We have an application Ruby on rails, which fires a number of queries to >> the database. I Suspect it is connectio

[Rails] Re: db connection issues in production but not in dev mode

2010-06-09 Thread Yani Yen
mentioned. Yani Yen wrote: > We have an application Ruby on rails, which fires a number of queries to > the database. I Suspect it is connection timeout error or something > > When we run the application in development mode, it works as expected. > However when we switch to Prod

[Rails] db connection issues in production but not in dev mode

2010-06-09 Thread Yani Yen
We have an application Ruby on rails, which fires a number of queries to the database. I Suspect it is connection timeout error or something When we run the application in development mode, it works as expected. However when we switch to Production mode, we get the following error in Postgre conso