For HTML compression you probably want to turn it off in Q2A and turn it on at the server level instead (ie Apache/Nginx). Actually I think it's on by default for recent versions of Apache.
You shouldn't have both the DB options set to true. If your MySQL server is on the same box as the site (ie you're using 'localhost' to connect) then you should set local DB to true and distant DB to false. Or if MySQL is on a different box then do the opposite.
Besides that, you should make sure you're using the latest version of PHP. 5.6 has several performance gains, and the recently released PHP7 is even faster - typically twice as fast!
Might be worth looking into MariaDB as well - it's a drop-in replacement for MySQL and is supposedly faster.
By the way, your max content length is way too high - any post going up to the limit will break MySQL's row limit size (around 65,000).