Title: Database Size
Last modified: October 1, 2018

---

# Database Size

 *  Resolved [phillipsburgh](https://wordpress.org/support/users/phillipsburgh/)
 * (@phillipsburgh)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/database-size-5/)
 * Hi,
 * is it normal that Statify needs 90 MB of database-space? Just checked my database
   and found an entry wp_statify with a size of nearly 90 MB….
 * Could need some advice
 * Thank you
 * Stephan
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fdatabase-size-5%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Patrick Robrecht](https://wordpress.org/support/users/patrickrobrecht/)
 * (@patrickrobrecht)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/database-size-5/#post-10740366)
 * Hi,
 * Statify stores one entry per page view. A cron job regularly deletes all entries
   older than the data saving period (default: 14 days, can be changed to any number
   of days in the configuration).
 * So the size of the database table wp_statify depends upon the number of page 
   views and the period of data saving. However, 90 MB sounds quite much. You may
   check whether the cron job is running correctly:
 * a) Compare the oldest entry (found via a query on the database) with the period
   of data saving.
 * b) [WP Crontrol](https://wordpress.org/plugins/wp-crontrol/) helps to check registered
   cron jobs. There should be an cron event `statify_cleanup` executed once daily.
 * Cheers
    Patrick
 *  [tajin](https://wordpress.org/support/users/tajin/)
 * (@tajin)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/database-size-5/#post-11230963)
 * The database size could be greatly decreased by saving visit for each target 
   as a daily count and by having a second table that saves the count for each referrer.
 * Saving each and every visit as a separate entry is a bit overkill.
 * I would also recommend to show the default 14 days setting a bit more prominent
   on the plugin page. That information is easy to miss.

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

The topic ‘Database Size’ is closed to new replies.

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

 * 2 replies
 * 3 participants
 * Last reply from: [tajin](https://wordpress.org/support/users/tajin/)
 * Last activity: [7 years, 3 months ago](https://wordpress.org/support/topic/database-size-5/#post-11230963)
 * Status: resolved