Re: [RM#4307][pgAdmin4] Graphical Explain Plan - Embed images in explain plan only when user try to download it

From: Murtuza Zabuawala <murtuza(dot)zabuawala(at)enterprisedb(dot)com>
To: Aditya Toshniwal <aditya(dot)toshniwal(at)enterprisedb(dot)com>
Cc: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: [RM#4307][pgAdmin4] Graphical Explain Plan - Embed images in explain plan only when user try to download it
Date: 2019-05-30 11:31:32
Message-ID: CAKKotZQT05QY6hanZMG_7_g5_QrJ5FTwYx9MgOrxnQ7cH+znZw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Here is updated patch.

On Thu, May 30, 2019 at 4:06 PM Aditya Toshniwal <
aditya(dot)toshniwal(at)enterprisedb(dot)com> wrote:

> Hi Murtuza,
>
> I was just going through code change, and I would suggest one small change.
> In the image_mapper.js, export it as default, as it will have only one
> export. Then you can use it as imageMapper.default rather than
> imageMapper.imageMapper.
> Otherwise, looks fine to me. I didn't test though :P
>
>
> On Thu, May 30, 2019 at 2:41 PM Murtuza Zabuawala <
> murtuza(dot)zabuawala(at)enterprisedb(dot)com> wrote:
>
>> Hi,
>>
>> Embedding images using *.toDataURL()* method hits the performance of the
>> explain plan rendering if the plan is complex because first it downloads
>> the images then it will convert each images into base64, to improve the
>> performance we will embed the images only when downloading of SVG is called
>> and not when displaying the graphical plan.
>>
>> --
>> Regards,
>> Murtuza Zabuawala
>> EnterpriseDB: http://www.enterprisedb.com
>> The Enterprise PostgreSQL Company
>>
>>
>
> --
> Thanks and Regards,
> Aditya Toshniwal
> Software Engineer | EnterpriseDB India | Pune
> "Don't Complain about Heat, Plant a TREE"
>

Attachment Content-Type Size
RM_4307_v1.diff application/octet-stream 27.7 KB

In response to

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message Aditya Toshniwal 2019-05-30 11:35:35 [pgAdmin][RM4169] Multiple Geometry Viewer issue
Previous Message Fahar Abbas 2019-05-30 10:45:47 Re: pgAdmin4 v4.7 candidate builds