Hi Shane,
thanks for your post, and sorry for the trouble.
Unfortunately, I have bad news here. TablePress is not really suited for huge tables like this. It simply was not designed to be a database replacement system.
The server probably stops the import script when it reaches some sort of memory limit. That’s why the import of the large files fails.
For the initial display: You are correct here. Basically, the entire data set (which is at least 6.5 megs, from your numbers) has to be sent to the browser, and then the DataTables JS library has to be invoked on that. That just takes time in the “client-side” approach that TablePress takes for this.
As you are planning to use data from an SQL table anyway, I’d recommend to not use TablePress here, but to look into custom PHP/SQL solutions directly. With those, you could then also use the DataTables JS library (see http://datatables.net/ ) directly, and even use the server-side operation mode that it offers. With that, only the required parts of a table would be sent to the browser, which makes the displaying much faster.
Regards,
Tobias
Hi Tobias,
Thanks for your honesty! My last question on this topic before I go in search of another solution is…
Can the underlying table – that TablePress loads and does it’s client-side processing on – actually be a query i.e. the ‘table’ that is loaded by TablePress is a generated-on-the-fly query based on prior selections made by the user?
If not, (and I know this a bit like going into a Ford dealership and asking them to recommend a BMW!) could you recommend a particular PHP/SQL plugin that can handle ‘big-data’ and facilitate querying it.
Ok, and very very last question, what is the best tool for database management work – creating tables, queries, indices etc. – on WordPress.
Right, that’s it.
Thanks,
Shane
Hi Shane,
querying tables or similar is not really possible in TablePress either. Is it’s not a database tool, it’s more aiming at static tables. One similar function to querying is the Row Filter Extension from http://tablepress.org/extensions/row-filter/
I’m not aware of directly usable PHP/mySQL plugins, unfortunately. There are probably not that many, as they would have to cover very many different requirements. One commercial one seems to be http://wpdatatables.com/ but I have never used that. Another option might be to use plain PHP, e.g. with the help of the examples from the DataTables website.
For creating tables, queries, etc. you should not use a WordPress plugin, but a database tool, like phpMyAdmin.
Regards,
Tobias