Query tool data grid - Infinite scroll vs Pagination

From: Aditya Toshniwal <aditya(dot)toshniwal(at)enterprisedb(dot)com>
To: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: Query tool data grid - Infinite scroll vs Pagination
Date: 2024-06-19 12:41:19
Message-ID: CAM9w-_mJkHpqE2BSdBsLqOVO4ARaWPDXZGYb5Hn3eMh+sDcOrg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers pgadmin-support

Hi Hackers,

Query tool data grid currently pulls the data on load basis in batches. For
example, it will initially load only 1000 rows and once a user scrolls to
the 1000th row, it will fetch the next batch of 1000.
Many users who want access in between rows or last row struggle to do it as
the user has to scroll and scroll. If someone grabs the scroller and pulls
it down still it will be a good UX and the scrollbar may jump. One reported
here - https://github.com/pgadmin-org/pgadmin4/issues/1780
One more aspect to this is the in memory data of the query tool which keep
on increasing on each scroll, it affects the performance.

I propose we should use pagination instead of infinite scroll with the
following advantages:
1. Users can jump to any page they want.
2. Users can change the page size on the grid directly.
3. Memory will be used only for visible rows so performance improvement.
4. Predictable UI, no jumping scrollbars.

Let me know what you think.

--
Thanks,
Aditya Toshniwal
pgAdmin Hacker | Sr. Software Architect | *enterprisedb.com*
<https://www.enterprisedb.com/>
"Don't Complain about Heat, Plant a TREE"

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message Dave Page 2024-06-20 08:06:25 Re: Query tool data grid - Infinite scroll vs Pagination
Previous Message Qasim Tahir 2024-06-12 11:07:58 Re: Potential Security Issue: Permissions in PgAdmin Installation Directory

Browse pgadmin-support by date

  From Date Subject
Next Message Dave Page 2024-06-20 08:06:25 Re: Query tool data grid - Infinite scroll vs Pagination
Previous Message Aditya Toshniwal 2024-06-19 04:47:12 Re: Expand/Collapse Nodes in Query Window