Jetpack Blog 10/14 整理了一篇 High Quality Ruby on Rails Example Applications
練功時可以參考別人的寫法
rails 發表在 痞客邦 留言(10) 人氣(1,372)
EngineYard Blog 10/13 發表的一篇文章:Rails in the Wild: 5 Client-Side Performance Observations
五個重點:
1.
rails 發表在 痞客邦 留言(0) 人氣(161)
這是今天在 EnvyLab 看到的一篇文章所提到的新 starup Mad Mini。
一般傳統寄信的做法通常是靠 ActionMailler 去寄。不過 ActionMailer 本身有相當多的問題,大量使用會有維護上的困難。
rails 發表在 痞客邦 留言(0) 人氣(583)
在開發時,使用 partial 是相當簡潔以及迅速的做法。但這會帶來一個壞處。造成相當多的 db query 以及 render :partial 這個行為帶來的 slow down。
解法是,在 controller 下 find all 時,順便下 :include ,把相關的 model 都拉一拉回來。
至於 partial 這部份,就使用 fragment cache 的做法,把 html 丟進 memcache ..XD。時間到 expire 掉。
rails 發表在 痞客邦 留言(0) 人氣(268)
使用 Data Fabric 這個 gem。
這個 gem 的想法是建一個 proxy,先去問 mapping table,然後要資料時 reset db connection 去該負責的 db 拿資料。
rails 發表在 痞客邦 留言(0) 人氣(137)
Splitting up Rails Models to different databases
然後在 lib/tasks/dev.rake 裡寫 override db:create; db:drop 的 rake; 確保重建資料時一致
rails 發表在 痞客邦 留言(0) 人氣(76)
可指定 asset_host 為 http://asset%d.example.com
或
rails 發表在 痞客邦 留言(0) 人氣(60)
http://github.com/noahd1/oink/tree/master
Description
Rails plugin and log parser to help narrow down the source(s) of increased memory usage in rails applications.
rails 發表在 痞客邦 留言(1) 人氣(64)
因為 rmagick 在 MacOS 下實在太難裝了。於是有人寫了一支 script 來處理這種惱人的事。
http://github.com/maddox/magick-installer
rails 發表在 痞客邦 留言(0) 人氣(39)
Matt Jankowski provided a great article on properly indexing your database for your Rails application. He covers indexing validation and STI columns, state columns for state machines, association columns, and more.
rails 發表在 痞客邦 留言(0) 人氣(134)