I'm at a stage of my project where I'm thinking about moving to NoSQL for performance reasons. I will definitely have tables with millions of rows, so NoSQL might be useful. But my problem is I'm also doing a lot of calculations with this data and I don't know if that would give me that much more performance if rails still has to do all the calculations.
Here's another question of mine where I describe what data I need and how I process it.
After I realized most of my code in SQL and match one user with 1000 other users it still took
Completed 200 OK in 104871ms (Views: 2146.0ms | ActiveRecord: 93780.5ms)
(on my local machine with sqlite)
And that's not acceptable for me. I would definitely be able to denormalize my tables into one for this to work. But will this give me a performance boost?
I also thought about storing the calculated match percentages IN the database, but that would result in 2.5 billion rows for just 50k users.