From: | Dave Page <dpage(at)pgadmin(dot)org> |
---|---|
To: | Dinesh Kumar <dinesh(dot)kumar(at)enterprisedb(dot)com> |
Cc: | "J(dot)F(dot) Oster" <jinfroster(at)mail(dot)ru>, pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org> |
Subject: | Re: PATCH: Choose best width for Data Output columns of Query tool |
Date: | 2013-12-11 12:20:26 |
Message-ID: | CA+OCxowRSojq+hoC+p12YCYjBPEJSCei9mAHfh8jgDSZ3J2okA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgadmin-hackers |
Hi
On Mon, Dec 9, 2013 at 8:58 AM, Dinesh Kumar
<dinesh(dot)kumar(at)enterprisedb(dot)com> wrote:
> Hi,
>
> On Thu, Dec 5, 2013 at 8:42 PM, J.F. Oster <jinfroster(at)mail(dot)ru> wrote:
>>
>> Hello Dinesh,
>>
>> Thursday, December 5, 2013, 1:38:10 PM, you wrote:
>>
>>
>> DK> I have reviewed your patch and managed to traverse each line
>> DK> of your code, except "AutoColumn" function body. Could you give me
>> DK> some information, when the pgAdmin goes to this function call.
>>
>> You mean AutoSizeColumn()? In fact it is used only in
>> ctlSQLGrid::OnLabelDoubleClick(). If user doubleclicks column label
>> holding Ctrl/Meta, the column's manual size is forgotten and this
>> function is called to resize that single column immediately (otherwise
>> the user wouldn't notice the effect until re-execution of query).
>
>
> OK. Thank you.
>
> @Dave:
>
> It seems good to me. I might be wrong in some places in analyzing this
> patch, hence requesting you to look into this once.
I took a look at this, and my only real concern is that the
auto-sizing code is forcing the grid to fully populate itself, which
it's currently specifically designed not to. The result of this is
that if you have a large dataset, there is a delay between when the
query finishes and the results are rendered.
I would suggest that instead of looking at the first 50 rows, and then
looking at every 500th row until the end, we just look at the first
500 and then stop. That won't be perfect of course, but it should
eliminate any delay with large amounts of data.
--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake
EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Browder | 2013-12-11 14:07:34 | pgAdmin feature request: SQLite interface |
Previous Message | Dhiraj Chawla | 2013-12-11 07:14:35 | Re: Text goes out of header area in html reports |