Our company uses a PHP/MySQL-based project management app heavily. So heavily that the app is really starting to slow down. It's not that the app is running out of memory -- I never go above 50% utilization. CPU isn't that heavily used either. The code in the app just does not seem very optimized in terms of queries and disk I/O... It does sloppy stuff like a SELECT DISTINCT query on a million row table to populate a few checkboxes. But we're stuck with it for now.
I'm curious what options I have if I was willing to throw more hardware at it (it's running on a Linode VPS). Is it possible to run the whole app and MySQL database in memory? How would I accomplish that? What would the drawbacks be? Is this something worth exploring?