Re: Query tool data grid - Infinite scroll vs Pagination - Mailing list pgadmin-support
From | Aditya Toshniwal |
---|---|
Subject | Re: Query tool data grid - Infinite scroll vs Pagination |
Date | |
Msg-id | CAM9w-_nL+mFa5vFzrrkBsEmXfN-jKp6X_DwAkjaqmnZMVGg1gQ@mail.gmail.com Whole thread Raw |
In response to | Re: Query tool data grid - Infinite scroll vs Pagination (Edson Richter <edsonrichter@hotmail.com>) |
Responses |
RES: Query tool data grid - Infinite scroll vs Pagination
RES: Query tool data grid - Infinite scroll vs Pagination |
List | pgadmin-support |
Hi Edson,
The current implementation is infinite scroll. We're planning to replace/improve it.
On Fri, Jun 28, 2024 at 6:48 PM Edson Richter <edsonrichter@hotmail.com> wrote:
Infinite scroll usually consume a lot of memory, and generate additional overhead in case of copy data, export, etc. In my humble opinion, if anything then paginated would work better without additional memory consumption.In case of implementing infinite scroll, please give users a option to disable it.Thanks,EdsonObter o Outlook para AndroidFrom: Aditya Toshniwal <aditya.toshniwal@enterprisedb.com>
Sent: Friday, June 28, 2024 5:33:45 AM
To: pgAdmin Support <pgadmin-support@postgresql.org>
Cc: pgadmin-hackers <pgadmin-hackers@postgresql.org>; Dave Page <dpage@pgadmin.org>
Subject: Re: Query tool data grid - Infinite scroll vs PaginationHi,Unfortunately, there were only 3 responses to this.In that case, we will discuss internally and decide what to do.On Thu, Jun 20, 2024 at 2:46 PM Aditya Toshniwal <aditya.toshniwal@enterprisedb.com> wrote:Hi Everyone,Request you to share your opinion on this and respond on:On Thu, Jun 20, 2024 at 1:36 PM Dave Page <dpage@pgadmin.org> wrote:HiOn Wed, 19 Jun 2024 at 13:42, Aditya Toshniwal <aditya.toshniwal@enterprisedb.com> wrote: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/1780One 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.I think there are definite benefits, but there is the downside of having to scroll and click to browse results. Personally I'm fine with that, but I think you should probably poll pgadmin-support for opinions from more users.--Dave PagepgAdmin: https://www.pgadmin.org--Thanks,Aditya Toshniwal"Don't Complain about Heat, Plant a TREE"--Thanks,Aditya Toshniwal"Don't Complain about Heat, Plant a TREE"
Thanks,
Aditya Toshniwal
"Don't Complain about Heat, Plant a TREE"
pgadmin-support by date: