Title: Plugin doesn&#039;t handle resources efficiently
Last modified: August 22, 2016

---

# Plugin doesn't handle resources efficiently

 *  [saintandrews](https://wordpress.org/support/users/saintandrews/)
 * (@saintandrews)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/plugin-doesnt-handle-resources-efficiently/)
 * I had an image database of about 1800 images running WP on a shared server with
   an average Web server load of about 5. The database server is equally responsive.
 * I was able to cull about 200 images by setting the plugin to 25 per page, the
   highest it could accommodate without throwing a 404, my server’s response to 
   an excess memory demand. After about an hour of effort, I was able to clean the
   first 24 pages of 25 images out of a total of 64 pages. When I tried to advance
   to the next page, the plugin threw a 404 and seized up.
 * Today over half an hour I slowly advanced page by page to where I left off previously
   and, once again, the plugin would not advance further.
 * I have other plugins to do similar cleaning processes involving the database 
   which suffer none of these problems. The plugin works well on the small nibbles
   it is capable of addressing, but its use of resources needs to be rethought completely
   in the direction of more efficiency.
 * [https://wordpress.org/plugins/cleanup-images/](https://wordpress.org/plugins/cleanup-images/)

Viewing 1 replies (of 1 total)

 *  [nicearma](https://wordpress.org/support/users/nicearma/)
 * (@nicearma)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/plugin-doesnt-handle-resources-efficiently/#post-5330277)
 * He needs to improve the search query, he search in the all database, he have 
   to put `limit 0,1` in the sql search, that way when the request get one post 
   who have the image, he will continue to the next image and search, the other 
   problem is that the plugin depends of session, so this is save in the memory 
   of the server (all the information is save in the session i think), that is why
   the memory demand, this problem is more hard to fix.

Viewing 1 replies (of 1 total)

The topic ‘Plugin doesn't handle resources efficiently’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/cleanup-images.svg)
 * [Cleanup Images](https://wordpress.org/plugins/cleanup-images/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cleanup-images/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cleanup-images/)
 * [Active Topics](https://wordpress.org/support/plugin/cleanup-images/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cleanup-images/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cleanup-images/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [nicearma](https://wordpress.org/support/users/nicearma/)
 * Last activity: [11 years, 5 months ago](https://wordpress.org/support/topic/plugin-doesnt-handle-resources-efficiently/#post-5330277)
 * Status: not resolved