yaqwsx / jlcparts

Better parametric search for components available for JLC PCB assembly
https://yaqwsx.github.io/jlcparts/
MIT License
572 stars 52 forks source link

store single image url #81

Closed maksz42 closed 1 year ago

maksz42 commented 1 year ago

There are 3 sizes of the same photo. No need to store 3 URLs. Reduces JSON size by 10%.

yaqwsx commented 1 year ago

Thanks you for the contribution.

maksz42 commented 1 year ago

Btw, I don't know if you did something or mozilla did but it works much faster on firefox recently, especially the catalogue update is like 3x faster.

yaqwsx commented 1 year ago

There was only a single change since I relaunched the service - we don't store components that have been out of stock for more than six months. This shrinks down the database roughly to 1/3 of the original size.

yaqwsx commented 1 year ago

Once we migrate to a better DB, I plan to serve all components again. But until that happens, this makes the service much more useful.