Is there an efficient way to log all DB queries in Staging and Production without having a big impact on performance?
Is there a good tool(free or paid) that does it?
The DB Engines I am working with are: MySql and MongoDB
Note: I know how to write all the DB queries into a log file. This solution is too slow for production and I am curious to know if there is a better way to store the logs and then easily find/browse them.