2009年9月9日 星期三

oink , logger parser, memory

oink
Log parser to identify actions which significantly increase VM heap size

可以讓log 多出memory 的紀錄
Feb 08 11:39:54 ey33-s00302 rails[9076]: Memory usage: 316516 | PID: 9076

也可做report 來查 哪些request or action 耗 memory 比較多

benchmark

convenient benchmark

在 ~/.irbrc

就可以在consloe 輕鬆的做benchmark
>> benchmark{ User.find(2).records.wake.count}
0.00197 seconds (-1% change)

index , mysql slow qurey

A grand piano for your violin, 一篇關於哪些地方需要建index 的好文
table indexes in rails

找出 MySQL 哪些 Query 速度較慢
檢查 mysql sql 效能使用 MySQL Slow Queries
MySQL 常用指令筆記(問答)

Railscast skill (3)

Auto-Complete Association

2009年9月8日 星期二

Screencasts skill (II)

Dynamic Select Menus
可以用生個javascript stylesheets controller 來動態生js , css
在利用content_for 動態 include


Formatting Time


Performing Calculations on Models


Optimistic Locking

2009年9月7日 星期一

railscast skill

Refactoring User Name Part 2


Fun with Find Conditions


Multibutton Form


Refactoring Long Methods


Cleaning Up the View

2009年9月5日 星期六

Create Model Through Text Field

Create Model Through Text Field