- Oct 16 Fri 2009 14:38
-
[Basic] 一些新手學習 rails 可以當做 example 的 application
- Oct 16 Fri 2009 14:34
-
[Scale] Scale Frontend 應該注意的五件事
EngineYard Blog 10/13 發表的一篇文章:Rails in the Wild: 5 Client-Side Performance Observations
五個重點:
1.
五個重點:
1.
- Oct 16 Fri 2009 14:14
-
[寄信] 使用 Mad Mini 發送電子報
這是今天在 EnvyLab 看到的一篇文章所提到的新 starup Mad Mini。
一般傳統寄信的做法通常是靠 ActionMailler 去寄。不過 ActionMailer 本身有相當多的問題,大量使用會有維護上的困難。
一般傳統寄信的做法通常是靠 ActionMailler 去寄。不過 ActionMailer 本身有相當多的問題,大量使用會有維護上的困難。
- Oct 14 Wed 2009 18:50
-
[Scale] 使用不同 backend 做 Cache
在開發時,使用 partial 是相當簡潔以及迅速的做法。但這會帶來一個壞處。造成相當多的 db query 以及 render :partial 這個行為帶來的 slow down。
解法是,在 controller 下 find all 時,順便下 :include ,把相關的 model 都拉一拉回來。
至於 partial 這部份,就使用 fragment cache 的做法,把 html 丟進 memcache ..XD。時間到 expire 掉。
解法是,在 controller 下 find all 時,順便下 :include ,把相關的 model 都拉一拉回來。
至於 partial 這部份,就使用 fragment cache 的做法,把 html 丟進 memcache ..XD。時間到 expire 掉。
- Oct 14 Wed 2009 18:46
-
[Scale] Rails 接 cluster db
使用 Data Fabric 這個 gem。
這個 gem 的想法是建一個 proxy,先去問 mapping table,然後要資料時 reset db connection 去該負責的 db 拿資料。
這個 gem 的想法是建一個 proxy,先去問 mapping table,然後要資料時 reset db connection 去該負責的 db 拿資料。
- Oct 14 Wed 2009 18:44
-
[Scale] Rails Application 接兩個以上的 db
Splitting up Rails Models to different databases
然後在 lib/tasks/dev.rake 裡寫 override db:create; db:drop 的 rake; 確保重建資料時一致
然後在 lib/tasks/dev.rake 裡寫 override db:create; db:drop 的 rake; 確保重建資料時一致
- Oct 04 Sun 2009 17:31
-
[Trick]多重 asset_host
- Sep 09 Wed 2009 10:00
-
Plugin: Oink
https://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.
Description
Rails plugin and log parser to help narrow down the source(s) of increased memory usage in rails applications.
- Sep 04 Fri 2009 16:33
-
[懶人] Magick Installer
因為 rmagick 在 MacOS 下實在太難裝了。於是有人寫了一支 script 來處理這種惱人的事。
https://github.com/maddox/magick-installer
https://github.com/maddox/magick-installer
- Sep 03 Thu 2009 11:15
-
[Scale] 在 Rails Project 對 Database 打 index 應該注意的一些事項
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.
- Aug 07 Fri 2009 12:43
-
Set Your Server Right
- Aug 03 Mon 2009 11:37
-
[Basic] Git Basics at Rails
用 Git 管理 Rails Project 的一些基本指令和 Workflow,一樣也出自 Rails Undergroud。
Git Basics at Rails UndergroundView more presentations from Ariejan De vroom.
Git Basics at Rails UndergroundView more presentations from Ariejan De vroom.