PIXNET Logo登入

Always on Rails

跳到主文

xdite 主筆的 Ruby on Rails 部落格

部落格全站分類:數位生活

  • 相簿
  • 部落格
  • 留言
  • 名片
  • 10月 16 週五 200914:38
  • [Basic] 一些新手學習 rails 可以當做 example 的 application

Jetpack Blog 10/14 整理了一篇 High Quality Ruby on Rails Example Applications
練功時可以參考別人的寫法
(繼續閱讀...)
文章標籤

rails 發表在 痞客邦 留言(10) 人氣(1,372)

  • 個人分類:General Turtorial
▲top
  • 10月 16 週五 200914:34
  • [Scale] Scale Frontend 應該注意的五件事

EngineYard Blog 10/13 發表的一篇文章:Rails in the Wild: 5 Client-Side Performance Observations

五個重點:

1.
(繼續閱讀...)
文章標籤

rails 發表在 痞客邦 留言(0) 人氣(161)

  • 個人分類:Scaling Tips
▲top
  • 10月 16 週五 200914:14
  • [寄信] 使用 Mad Mini 發送電子報

這是今天在 EnvyLab 看到的一篇文章所提到的新 starup Mad Mini。
一般傳統寄信的做法通常是靠 ActionMailler 去寄。不過 ActionMailer 本身有相當多的問題,大量使用會有維護上的困難。
(繼續閱讀...)
文章標籤

rails 發表在 痞客邦 留言(0) 人氣(583)

  • 個人分類:Development Tips
▲top
  • 10月 14 週三 200918:50
  • [Scale] 使用不同 backend 做 Cache

在開發時,使用 partial 是相當簡潔以及迅速的做法。但這會帶來一個壞處。造成相當多的 db query 以及 render :partial 這個行為帶來的 slow down。

解法是,在 controller 下 find all 時,順便下 :include ,把相關的 model 都拉一拉回來。

至於 partial 這部份,就使用 fragment cache 的做法,把 html 丟進 memcache ..XD。時間到 expire 掉。
(繼續閱讀...)
文章標籤

rails 發表在 痞客邦 留言(0) 人氣(268)

  • 個人分類:Scaling Tips
▲top
  • 10月 14 週三 200918:46
  • [Scale] Rails 接 cluster db

使用 Data Fabric 這個 gem。

這個 gem 的想法是建一個 proxy,先去問 mapping table,然後要資料時 reset db connection 去該負責的 db 拿資料。
(繼續閱讀...)
文章標籤

rails 發表在 痞客邦 留言(0) 人氣(137)

  • 個人分類:Scaling Tips
▲top
  • 10月 14 週三 200918:44
  • [Scale] Rails Application 接兩個以上的 db

Splitting up Rails Models to different databases

然後在 lib/tasks/dev.rake 裡寫 override db:create; db:drop 的 rake; 確保重建資料時一致

(繼續閱讀...)
文章標籤

rails 發表在 痞客邦 留言(0) 人氣(76)

  • 個人分類:Scaling Tips
▲top
  • 10月 04 週日 200917:31
  • [Trick]多重 asset_host

可指定 asset_host 為 http://asset%d.example.com

或


(繼續閱讀...)
文章標籤

rails 發表在 痞客邦 留言(0) 人氣(60)

  • 個人分類:Scaling Tips
▲top
  • 9月 09 週三 200910:00
  • Plugin: Oink

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)

  • 個人分類:Development Tips
▲top
  • 9月 04 週五 200916:33
  • [懶人] Magick Installer

因為 rmagick 在 MacOS 下實在太難裝了。於是有人寫了一支 script 來處理這種惱人的事。

http://github.com/maddox/magick-installer
(繼續閱讀...)
文章標籤

rails 發表在 痞客邦 留言(0) 人氣(39)

  • 個人分類:Development Tips
▲top
  • 9月 03 週四 200911: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.
(繼續閱讀...)
文章標籤

rails 發表在 痞客邦 留言(0) 人氣(134)

  • 個人分類:Development Tips
▲top
123»

最新文章

  • [Basic] 一些新手學習 rails 可以當做 example 的 application
  • [Scale] Scale Frontend 應該注意的五件事
  • [寄信] 使用 Mad Mini 發送電子報
  • [Scale] 使用不同 backend 做 Cache
  • [Scale] Rails 接 cluster db
  • [Scale] Rails Application 接兩個以上的 db
  • [Trick]多重 asset_host
  • Plugin: Oink
  • [懶人] Magick Installer
  • [Scale] 在 Rails Project 對 Database 打 index 應該注意的一些事項

文章搜尋

熱門文章

  • (3,695)深入淺出 RoR (1)
  • (1,367)深入淺出 RoR (2)
  • (2,340)深入淺出 RoR (3) - 目錄結構
  • (2,127)深入淺出 RoR (4-1) - 打造你第一個 Rails Project
  • (1,717)深入淺出 RoR (4-2) - Post 的 CRUD
  • (7,664)深入淺出 RoR (4-3) - RESTful 與 CRUD action
  • (125)ARMailer 接 GMail 在 Ruby 1.8.7 上會踩到的問題
  • (620)Ubuntu 上跑 apache + mod_proxy 的注意事項
  • (84)ARMailer 採用 multipart 在 Rails production 模式會有找不到 view 的問題
  • (3,090)如何入門 Ruby on Rails?(2009)

文章分類

toggle Rails (3)
  • Scaling Tips (6)
  • Deployment (4)
  • Development Tips (9)
toggle Rails 教學文章 (2)
  • 深入淺出RoR (6)
  • General Turtorial (3)
toggle Plugin & Gems (1)
  • Ruby Gems (2)
  • 未分類文章 (1)

誰來我家

參觀人氣

  • 本日人氣:
  • 累積人氣: