Well in that case I'm not sure what else to do.
However, is speed really a necessity? It doesn't seem like this is a mission-critical process or one that will interact with your site's visitors, so why not let the query run in the background and take however long it needs?