Title: Efficiently Find Redirect
Last modified: January 5, 2017

---

# Efficiently Find Redirect

 *  [dylanfitzger](https://wordpress.org/support/users/dylanfitzger/)
 * (@dylanfitzger)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/efficiently-find-redirect/)
 * I was having issues with the do_redirect function taking too much of my server’s
   resources. I currently have about 16,000 redirects and the function was calling
   all 16,000 from the database, then looping through to find the correct redirect.
   It often took about 10 minutes for the correct redirect to go through.
 * I would recommend changing the SQL query to only return relevant redirects.

The topic ‘Efficiently Find Redirect’ is closed to new replies.

 * ![](https://ps.w.org/eps-301-redirects/assets/icon-256x256.png?rev=2413221)
 * [301 Redirects - Redirect Manager](https://wordpress.org/plugins/eps-301-redirects/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/eps-301-redirects/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/eps-301-redirects/)
 * [Active Topics](https://wordpress.org/support/plugin/eps-301-redirects/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/eps-301-redirects/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/eps-301-redirects/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [dylanfitzger](https://wordpress.org/support/users/dylanfitzger/)
 * Last activity: [9 years, 6 months ago](https://wordpress.org/support/topic/efficiently-find-redirect/)
 * Status: not a support question