I have a MySQL database with 86k records. When the database query is loaded in a Wappler table, the “Design” view in Wappler stops responding and after a while it responds quite slow showing data records but the Wappler fields in “design” view are not responsive to anything. It would appear that Wappler loads the entire database.
When I load the webpage via browser, the records take a while to appear on the screen and it appears that the entire 86k records are loaded into the browser.
@Teodor but the issue i faced with paged query is with limited search on the current page.
is there a way(if possible) to search the whole database with paged query?
Hi @mrbdrm, I think you should retry applying the search, because It applies to all database results and not to those that are rendered in the current page result. If you have 50 pages and you make a search it will reduce the number of pages shown based on your search
im talking about the paged query server action search by the way.
i have a paged query sever action with search variable, and i use the table generator on the page. and the text field is above the table and i assign the search variable to the search field.
anything else missing?
you should not place any filters on the paged query and then apply the filtering on the repeat created by the table generator. Something like this <div class="col-lg-12 mt-8" id="repeatAnypswtikaContainers" is="dmx-repeat" dmx-bind:repeat="get_anypswtika_containers.data.repeat1.where('selling_type_fgn', enoikiasi_pwlisi.value, "startsWith")">
Although this repeat is not from a table but one I am currently working on, just notice the .where
You should place your filtering there
If you want your filters to be working on the entire database results (on a paged query) and not being applied in the current page only, just apply the filtering on the repeat. Even better if you are using a dataview. Yes it works with dataview also. Check code below from another project