Apr
25

we found the problem of my last post, like this post, Innodb Locks cause something else spend long time in transaction.

It is expire_action from disk in our case. we used action_cache plugin in rails application, we have multiple languange versions of zh and en, so we write expire_reg_action to expire both cache when content after_save, this will spent long time when delete cache from huge files.

so we switch Rails cache files from file_store to ramfs_store temporary, it works perfect right now.

mount -t ramfs ramfs /home/yay/rails_app/current/tmp/cache


reference :

  1. rails缓存机制的几个问题
  2. Innodb Locks, ActiveRecord and acts_as_ferret Problem


Share and Enjoy:These icons link to social bookmarking sites where readers can share and discover new web pages.
  • del.icio.us
  • digg

Tags:

No Responses

Leave a Response

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>