My site has over 150,000 redirects, and trying to load the admin page (/admin/config/search/redirect) results in this error:
<h1>Additional uncaught exception thrown while handling exception.</h1>
<h2>Original</h2>
<p>PDOException: SQLSTATE[08S01]: Communication link failure: 1153 Got a packet bigger than &#039;max_allowed_packet&#039; bytes: SELECT redirect.*
FROM
{redirect} redirect
WHERE (rid IN (:db_condition_placeholder_0, :db_condition_placeholder_1, :db_condition_placeholder_2,
[...and so on]
Seems like the limit(50) part of the query is being ignored.
Comments
Comment #1
derekahmedzai commentedI modified the query in redirect.admin.inc so that it PagerDefault and TableSort came first, which is how it's done in path.admin.inc.
It seems to work fine now.
Patch attached.
Comment #2
dave reidThanks for noticing this. This should now be fixed with the latest commit to Git: http://drupalcode.org/project/redirect.git/commit/84c5f6e