tables icon indicating copy to clipboard operation
tables copied to clipboard

Add batch query and proper pagination

Open FreemoX opened this issue 1 year ago • 1 comments

Is your feature request related to a problem? Please describe.

Currently, the tables is limited to returning 65535 entries per table due to PostgreSQL. This results in larger tables being unviewable in the browser.

Describe the solution you'd like

Implement batch querying with a limit that respects PostgreSQL's query limitations. Instead of attempting to query the entire table at once, it should rather index how many rows are in the database to make up the pagination number, and then query the entries related to that page. This will result in less spontanious resource usage for the server, and prevent breaching the query limit.

Describe alternatives you've considered

Haven't tried any solutions other than doing limited API calls through external applications. This is in reference to using Tables on the WebUI of Nextcloud. Only workaround is creating multiple views, one for every 65535 table entries.

Additional context

No response

FreemoX avatar Oct 15 '24 22:10 FreemoX

Related to:

  • https://github.com/nextcloud/tables/issues/448
  • in a way https://github.com/nextcloud/tables/issues/941

blizzz avatar Oct 16 '24 10:10 blizzz