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
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.
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)
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