Hey everyone!

With the holiday season upon us, we want to share our upcoming working hours:

After that, we’ll return to our regular schedule and assist you as quickly as possible.

In the meantime, you can explore our documentation for Amelia and wpDataTables. You'll find tons of helpful resources, including articles and handy video tutorials on YouTube (Amelia's YouTube Channel and wpDataTables' YouTube Channel), which might just have the answers you need while we’re away.

Thanks a bunch for your understanding and support!

Warm regards and happy holidays!

TMS

Okay
  Public Ticket #3409375
Website / PHP Memory Optimization
Closed

Comments

  • Lana started the conversation

    Hi Awesome Person,

    I've been pushing my PHP Memory Limits with WP Data Tables. I'm working on a healthcare site and, as you can imagine, it's incredibly data intensive. I had to figure out a way to bridge the gap between data sources, team resources, and make all that data connect to the website. As it turned out, having all the data in a few master spreadsheets on google drive made things 10x cleaner and easy for my team to make updates if there are typos or incorrect information.

    As a result of using WP Data Tables to pull in the healthcare data from google drive, my PHP Memory limit has needed to be increased. The latest error I had was 

    PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 98304 bytes)

    I went into cloudways and increased the memory limit from 128mb to 256mb, which solved my problem. However, that's... a lot. My reliance on WP Data Tables will only increase, and while I understand I should probably just clone the data into the MySQL database, it undermines my teams ability to easily and quickly manipulate data on the google spreadsheet. 

    Is there anyway to reduce the load WPDataTables imposes on my website?

  •   Lana replied privately
  • Lana replied

    I'm using the wpdatatable_cell shortcode to populate data in my templates.

  •  1,847
    Miloš replied

    Hi, Lana.

    Firstly, I would like to sincerely apologize for the delayed response as we have been experiencing an unusually high number of tickets. I am sorry that it has taken longer than usual to respond to your concern and your patience is highly appreciated.

    -

    1. First, just to comment on this error, as it said :

    Allowed memory size of 134217728 bytes exhausted (tried to allocate 98304 bytes)

    If that came from wpDataTables, it means that our plugin just needed 98304 bytes,

    and the rest of your website data has already taken up 134217728 bytes of your available PHP Memory from the hosting server.

    When we convert 98304 bytes to MB,  that is 0.09375 Megabytes (MB), 

    so our plugin tried to use less than 1 MB.


    • These datatables ( connected/linked to Google Sheet source)

    are not saved in the database like manual tables, but instead, their data is stored in database table 'wp_wpdatatables_rows'  in JSON format, not like manual tables (columns * rows).


    2. Is there anyway to reduce the load WPDataTables imposes on my website?

    -  

    The loading speed depends on a lot of factors - your hosting plan, server's performance, amount of other data on the page, internet speed, etc. 

    For example, you can take a look at this SQL table on our documentation, which contains around 2.600.000 rows, and see how it loads. The more data the table has, the more chance that it will impact the loading time, but it shouldn't be as drastic as it is on your end.

    -

    When it comes to tables linked with Google Sheets,

    it depends how many rows you plan to have on the Sheet data for each table.

    If the table won't go over around 5, 6 thousand rows,

    then you can try our Cache and Auto-Update cache Feature,

    this helps with performance for non server-side tables.

    -

    But if you get any table to go over 5 to 6 thousand rows, for such large data set , it is recommended to switch to the Import of the Google Sheet method,

    and use our server-side processing to reduce the load on the server.

    If you import the file, the plugin reads the source file and creates a manual table

    Once the table is created, it is no longer linked to the source file, so changing data in the table will not show up in Excel or Google Spreadsheet, and vice-versa. 

    To modify this table, you can either switch to the Excel-like view

    and then select and copy the range of cells you want to paste from the source file, and paste it in the Excel-like view, 

    or you can import a new/edited CSV to update the table, as well, in the following ways :

    I hope this, helps, let me know if you have any additional questions.

    Kind Regards, 

    Miloš Jovanović
    [email protected]

    Rate my support

    Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables

  • Lana replied

    Thank you so so much for your incredibly thoughtful and detailed response. It's support like this that makes my job 10x easier.


    Thank you so much for creating such an amazing tool. It has been a game changer.

  •   Miloš replied privately