coubeatczech coubeatczech - 2 years ago 97
MySQL Question

mysql deliberate slowdown

I have an Java application that connects to database. In the production environment, the dataset is very large, so the application very slow and I want to simulate (the slowness) in development environment. Is there a way, how to slowdown mysql, so the response time is bigger?

I know, that I could enlarge my test dataset, but the proccessing of the large dataset would eat processor cycles, I'm rather searching for something that would do "cheap"

s in

Answer Source

MySQL has a SLEEP(duration) miscellaneous function, where duration is the number of seconds.


Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download