Disclaimer: I can’t speak for all multi-tenant apps but I suspect the vast majority of those which use separate DB schemas will run into the same issue I ran into. I was excited to try out the new Relation#load_async feature in Rails 7 to speed up some pages on SwingTradeBot. I upgraded the app to… Continue reading Rails 7’s load_async Doesn’t Play Well with Multi-Tenant Apps
Author: Michael
My Digitally Nomadic Epic Road Trip
In about a week from now I’ll be embarking on a 4 or 5 month long road trip. I’ve told a several people about my plans and I always seem to get at least one of the following in response: Where are you going? Take me with you! / I’d love to do that. How… Continue reading My Digitally Nomadic Epic Road Trip
Slow Responses from the BrainTree Ruby Gem? Try This Fix.
A few weeks ago I was tasked with trying to mitigate some timeout issues in a client’s Rails app making BrainTree calls. This was becoming more of a problem as the client’s users built up more & more history in BrainTree. Apparently you can’t paginate the results or ask BrainTree to exclude certain parts of… Continue reading Slow Responses from the BrainTree Ruby Gem? Try This Fix.
Calculating Standard Deviations in Ruby on Rails (and PostgreSQL)
I need to calculate some Bollinger Bands (BBs) for SwingTradeBot, which is built in Rails 4. Here’s a quick definition of Bollinger Bands: Bollinger BandsĀ® are volatility bands placed above and below a moving average. Volatility is based on the standard deviation, which changes as volatility increases and decreases. So I needed to do some… Continue reading Calculating Standard Deviations in Ruby on Rails (and PostgreSQL)
Ruby / Rails Memoization Gems Memoist vs. Memoizable
I was just adding some memoization to a Rails app and I was exploring the available gems. I’d used Memoist in the past on another project but I couldn’t remember why I chose it over other gems. While researching today I found the Memoizable gem and thought that it looked pretty good. It has all… Continue reading Ruby / Rails Memoization Gems Memoist vs. Memoizable
I’ve Finally Found a Rails 4.x Blogging Engine / Gem
I can’t believe how difficult it’s been to find a good solution for plugging a simple blog into an existing Rails app. I wanted to add a blog to SwingTradeBot, the new site I’m building but most answers to this question that I’ve found say to either use RefineryCMS or “roll your own. Well I… Continue reading I’ve Finally Found a Rails 4.x Blogging Engine / Gem
Follow Your Favorite NFL Team on Your iPad in Flipboard
With N4MD’s new NFL coverage it’s simple to stay up-to-date on your favorite pro football team on your iPad. Simply add your team to your Flipboard favorites and you’ll be informed of all the important team news all season long. Here’s how to add your team to Flipboard: Launch Flipboard and click the “+ More…”… Continue reading Follow Your Favorite NFL Team on Your iPad in Flipboard
Quentin Tarantino, the Master Remixer
I’ve enjoyed the “Everything is a Remix” video series. As an old-school hip-hop fan, I’ve always enjoyed figuring out the origin of samples used in any given track. I guess that’s why part 2 of the remix series, which covered remixing in movies, was so interesting to me. That video touches on some of Quentin… Continue reading Quentin Tarantino, the Master Remixer
Back Online!
Just a test post. I’m rebuilding my web presence after selling Trader Mike in January. So it’s time to resurrect this old blog which I’ve neglected for years…
Lack of Indexes on Ultimate Tag Warrior Tables
Over the last week or so I’ve been on a mission to improve the performance of my web server, and especially MySQL. I took Arne’s advice and turned on the query cache. That helped but I still needed to do more. After doing some research I discovered MySQL’s slow query log, which does exactly what… Continue reading Lack of Indexes on Ultimate Tag Warrior Tables