Title: Switched from php to JavaScript
Last modified: July 22, 2019

---

# Switched from php to JavaScript

 *  [Beats247](https://wordpress.org/support/users/beats247/)
 * (@beats247)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/switched-from-php-to-javascript/)
 * Hi there,
    I have recently switched the counter mode within your plugin from 
   php to Ajax, as the table in the database is getting pretty big and I need to
   save some space. I’ve already run into trouble because of my database’s size.
   Now that I switched to JS, how can I reduce the table size without losing the
   data it has collected so far? Is there a way to delete the data in the table 
   without losing the stats or re-import them? Thanks in advance!
 * Best regards

The topic ‘Switched from php to JavaScript’ is closed to new replies.

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

 * 0 replies
 * 1 participant
 * Last reply from: [Beats247](https://wordpress.org/support/users/beats247/)
 * Last activity: [6 years, 10 months ago](https://wordpress.org/support/topic/switched-from-php-to-javascript/)
 * Status: not resolved