I have a table that selects data from a complex view on a mysql database. The query takes arount 1.5 s to execute. On this table are various filters. These filters are mostly on columns that is configured with a foreign key, so the foreign key specify all the possible values that the column may contain. The filters are also configured as multi-select strings.
The problem that I have is that as soon as the filter is multi-select, it is seen in the code as a rangeslider. The code then re-run the whole view to find the min and max value:
wpdatatables/source/class.wpdatacolumn.php line 1012
Having 10+ multselect filters - this view (which takes 1.5sec to execute) are queries 10+ times and it takes almost 50 sec to render the table (I also have inline editing) so each query are executed twice.
By commenting out the following two lines, I could cut out 30 seconds in rendering time and the filters are still perfect.
Thank you very much, I'm satisfied that I could assist other users in my position. We can close this issue - I will watch the updates like a hawk.. ;-)
You're welcome, I am happy to advise, at least to pass what our Developers found, since this specific issue already went above my knowledge from the start;
but that's OK, we have great communication within the Team, which allows us to confirm it.
Thank you again for reporting it, it saved a lot of time for our QA Team for their testing, as they are always 'on the lookout for bugs', of course.
No problem, we will close this ticket for now, but will be on stand-by, if you notice anything else, please don't hesitate to open new/multiple tickets if needed.
(*made me laugh for the 'hawk' reference, good one)
Hi there,
I have a table that selects data from a complex view on a mysql database. The query takes arount 1.5 s to execute. On this table are various filters. These filters are mostly on columns that is configured with a foreign key, so the foreign key specify all the possible values that the column may contain. The filters are also configured as multi-select strings.
The problem that I have is that as soon as the filter is multi-select, it is seen in the code as a rangeslider. The code then re-run the whole view to find the min and max value:
wpdatatables/source/class.wpdatacolumn.php line 1012
if ($this->getRangeSlider() === 1 && $this->getParentTable()->serverSide()) {
$jsFilterDef->minValue = $this->getColumnMinValue();
$jsFilterDef->maxValue = $this->getColumnMaxValue();
}
Having 10+ multselect filters - this view (which takes 1.5sec to execute) are queries 10+ times and it takes almost 50 sec to render the table (I also have inline editing) so each query are executed twice.
By commenting out the following two lines, I could cut out 30 seconds in rendering time and the filters are still perfect.
$jsFilterDef->minValue = $this->getColumnMinValue();
$jsFilterDef->maxValue = $this->getColumnMaxValue();
The problem that I have is that with each update on the plugin, I will have to look for these two lines again to speed up the table rendering time.
My questions are:
1) Why are multiselect strings considered rangesliders?
2) If it HAS to be rangsliders, why is the foreign key set-up not used to get the min and max value (which will be much faster)
3) Can there be an option in the set-up of the filtering to be a mult-select string without rangesliding
Attached files: Screenshot 2024-01-23 at 13.50.03.png
Hi Hanli,
To be honest, this goes a bit above my level of expertise on this matter, so we are reaching out to our Developer Team for advice.
As soon as they reply, we will report back.
I will let you know if they require any additional details/ or access from your end.
Thank you for your patience.
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 | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia 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
Hi Hanli,
To begin, I want to extend my heartfelt apologies for the delayed reply,
which is due to an unexpectedly high volume of inquiries.
We truly value your patience during this period.
I am still following up on this - our developers have been extremely busy, but they should provide us with a response very quickly at this point.
Thanks again for your patience.
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 | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia 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
Hi Hanli,
First, my apologies that it took us so long.
We have confirmation, after further testing, our developers are able to isolate what you described.
You are absolutely correct, this is a bug.
Our developers isolated the bug, and they'll add it to their queue for fixing.
They will do their best to build a fix as soon as possible.
We don't have an ETA on when the fix will be available, but please keep a lookout on our wpDataTables changeLog.
It will be stated there during updates which bug fixes have been implemented at each update.
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 | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia 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
Thank you very much, I'm satisfied that I could assist other users in my position. We can close this issue - I will watch the updates like a hawk.. ;-)
Hi Hanli,
You're welcome, I am happy to advise, at least to pass what our Developers found, since this specific issue already went above my knowledge from the start;
but that's OK, we have great communication within the Team, which allows us to confirm it.
Thank you again for reporting it, it saved a lot of time for our QA Team for their testing, as they are always 'on the lookout for bugs', of course.
No problem, we will close this ticket for now, but will be on stand-by, if you notice anything else, please don't hesitate to open new/multiple tickets if needed.
(*made me laugh for the 'hawk' reference, good one
)
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 | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia 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