• Resolved kinduweb

    (@kinduweb)


    Hi, your plugin creates a lot of entries in action scheduler table with the prefix of wc_facebook. Within a month there are 5000+ entries in my database. How do I clean that? Is there any way to optimise it?

    Thanks for the last few updates, it solved some of my problems but removing thousands of tables in database is huge and annoying task.

    regards,

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @kinduweb,

    Thanks for reaching out. Happy to help you with this!

    The last couple of updates included some additional processes to do a bit of cleanup, so this is not the norm going forward. In addition, your “Action Scheduler” list should automatically remove completed entries older than a month, so they’ll fall off shortly.

    Since the plugin’s product feed file is regenerated every 15 minutes, you’ll certainly have a number of these in there for any given month – that’s about 2800 per month. If your products aren’t updated as frequently, we do have a code snippet that I’d be happy to share that allows you to change the frequency of this update.

    Would you please let me know if this is helpful and if there’s anything else I can help with?

    Thanks,
    Marcus

    Thread Starter kinduweb

    (@kinduweb)

    When SkuVerge took the support of this plugin we were expecting improvement. Thanks for living up to your reputation.

    Yes, after a while the product doesn’t get updated much or not required to sync frequently. So, syncing products once or twice a day would be perfect for us.

    Cheers,

    Hey @kinduweb,

    Thank you for the kind words! We have a custom code snippet that should do what you’re looking for here, so I’m happy to share it. However, please be aware of a couple notes:

    • I’m afraid that customizations are not covered under our support policy, so implementing this directly or modifying it further isn’t something we can assist with.
    • Please be sure you know how to add custom code to your site. Personally, I like the free Code Snippets plugin method.

    You can view the snippet here:
    https://github.com/skyverge/wc-plugins-snippets/blob/master/facebook-for-woocommerce/change-feed-file-generation-interval.php

    Once you add and activate this snippet, you’ll need to navigate to your Tools > Scheduled Actions settings page and cancel the last wc_facebook_regenerate_feed item (which should be “pending”) so that a new schedule can be automatically created with the new interval.

    Would you please give this a try and let me know if this works for you?

    Thanks,
    Marcus

    Hey @kinduweb,

    It has been a while since we heard from you, so I’m going to mark this topic as resolved. If you’re still experiencing issues please take a look at our documentation for more information and create a new thread if you have further questions.

    Thanks,
    Marcus

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to optimise lot of entries in database’ is closed to new replies.