Title: Optimize database tables Slow
Last modified: March 4, 2018

---

# Optimize database tables Slow

 *  Resolved [nerdoutapp](https://wordpress.org/support/users/nerdoutapp/)
 * (@nerdoutapp)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/optimize-database-tables-slow/)
 * Being running the Optimize database tables all day. Is it supposed to that this
   long? Its been on “Optimizing Table: wp8b_ngg_gallery” for hours.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Contributor [DNutbourne](https://wordpress.org/support/users/dnutbourne/)
 * (@dnutbourne)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/optimize-database-tables-slow/#post-10050171)
 * Hi,
 * Apologies for the delay.
 * It is possible that an error or timeout occurred on the server, and the frontend
   was not updated.
 * Please could you ask your server admin/hosts to check the PHP error logs for 
   the site, and see if there is a record of an error around that time?
 *  Thread Starter [nerdoutapp](https://wordpress.org/support/users/nerdoutapp/)
 * (@nerdoutapp)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/optimize-database-tables-slow/#post-10055319)
 * Below is the debug from the last day…
 *     ```
       [08-Mar-2018 00:02:53 UTC] PHP Notice:  Trying to get property of non-object in /home/nerdouta/public_html/wp-includes/class-wp-query.php on line 3871
       [08-Mar-2018 00:02:53 UTC] PHP Notice:  Trying to get property of non-object in /home/nerdouta/public_html/wp-includes/class-wp-query.php on line 3871
       ```
   
 * _[moderator note: remainder of giant paste removed. For large pastes, use wpbin.
   io or gist.github.com.]_
    -  This reply was modified 8 years, 3 months ago by [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/).
 *  Plugin Contributor [DNutbourne](https://wordpress.org/support/users/dnutbourne/)
 * (@dnutbourne)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/optimize-database-tables-slow/#post-10057953)
 * Hi,
 * Please could you re-post a link to the debug log, using an online service such
   as Pastebin or wpbin.io?

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Optimize database tables Slow’ is closed to new replies.

 * ![](https://ps.w.org/wp-optimize/assets/icon-256x256.png?rev=1552899)
 * [WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance](https://wordpress.org/plugins/wp-optimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-optimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-optimize/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-optimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-optimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-optimize/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [DNutbourne](https://wordpress.org/support/users/dnutbourne/)
 * Last activity: [8 years, 3 months ago](https://wordpress.org/support/topic/optimize-database-tables-slow/#post-10057953)
 * Status: resolved