jaspermayone / website

Personal Website for @jaspermayone.
https://jaspermayone.com
3 stars 2 forks source link

[BUG] /photos page takes a suuuuuper long time to load #50

Closed jaspermayone closed 2 months ago

Lokendra-sinh commented 2 months ago

@jaspermayone do you want me to take it up? The root cause of this slowness seems to be the additional metadeta api call we are making.

jaspermayone commented 2 months ago

Sure!

Lokendra-sinh commented 2 months ago

@jaspermayone on average the server is taking around 5-6 seconds to retrieve the meta data of a single image. The download and the request itself are really fast.

Just to make sure we're considering everything...is there any pre-processing or an additional service in between the client and server?

Lokendra-sinh commented 2 months ago

@jaspermayone one of the images taking around 18s just to fetch the metadata of an image...it should happen in ms. Image

jaspermayone commented 2 months ago

That would be the ones @Lokendra-sinh!

Lokendra-sinh commented 2 months ago

@jaspermayone for reducing load time, we can have batch processing. I'm currently working on that and hopefully will raise a PR soon.

jaspermayone commented 2 months ago

@Lokendra-sinh I moved back to local images which should fix it, but now I need to solve #51.