You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Use server-side pagination instead of automatically injecting a LIMIT #2427
TablePro currently adds a LIMIT to queries that do not already define one, based on the configured maximum number of rows to display.
However, this does not seem to prevent the database from processing the full query efficiently. For example, a query without an explicit LIMIT can take around 10 seconds, even though TablePro eventually displays only 1,000 rows according to the configured limit.
This suggests that limiting the displayed result set is not behaving as expected from a performance perspective.
Ideally, TablePro should avoid relying on modifying the original query with a LIMIT and instead implement server-side pagination, similar to DBeaver. This would allow TablePro to fetch only the rows needed for the current page and request additional rows as the user navigates through the result set.
Proposed solution
Implement server-side pagination for query results:
Fetch only the first configured batch of rows (e.g. 1,000 rows).
Request subsequent batches from the database only when the user scrolls or navigates to the next page.
Avoid executing or materializing the entire result set before displaying the first batch.
Preserve explicit LIMIT clauses provided by the user.
Ideally, use database-specific pagination mechanisms where appropriate (LIMIT/OFFSET, cursors, fetch size, etc.).
This should improve the time-to-first-results and make large queries behave more like DBeaver.
Activity
perf(plugins): stop fetching query rows once the row cap is exceeded (#…
Nisgrak commentedon Aug 26, 2026
Hi @datlechin !
I just test 0.68.1 and keeps happening, its a MariaDB, I can provide logs or anything you need!
perf(plugin-mysql): bound a capped read at the server with SQL_SELECT…