by Neil Simon.
I found that it took over 3 hours to restore a modest course. See MDL 44813 (https://tracker.moodle.org/browse/MDL-44813) for more info and access to a profiled run.
I have had this issue on Linux and Windows Moodle servers.