I had an 800 GB Moodle mdl_logstore_standard_log.ibd database file. I deleted around 900 million rows in 10-15 days. The .idb file was around 800GB and still the same size after deletion. I want to optimize the table so I can fix this.
Is it safe to run OPTIMIZE TABLE while users continue to use the moodle webpage? Or should I stop users from accessing and run OPTIMIZE TABLE?
If I stop access, I must restore access within 48 hours. In this process, if the optimization process does not finish, if I have to interrupt it, will I have a problem?
Thank you.