mchail
Re:Improve developer habits by showing time cost of DB queries
on Wednesday April 16, 2014 @07:49PM (#7601237)
Great tip! For rails devs, I strongly recommend rack-mini-profiler [0]. It gives you an in-browser view of rendering time (which you can expand to break out by partial) with query time listed for each query. Each query also includes a stacktrace to make it easy to fix offensive queries. Great for identifying N+1 query bugs as well. There's a railscast for it, too [1].
Re:Using pry in production
on Saturday February 15, 2014 @04:46PM (#7245486)
The prompt customization is a great idea! My team just added it to our production build.