landscape icon indicating copy to clipboard operation
landscape copied to clipboard

The file is too large and it is not very convenient to operate with it

Open gecube opened this issue 1 year ago • 0 comments

Good day!

The simple issue. I did not have any good tools with me and I needed to check the changes into landscape. So I opened it in browser and got something like this even on powerful laptop:

Image

It means that it is difficult to operate with the file when it's size over 500k.

I think it would be nice to split all records by some logic. Let's propose the alphabet. I think it would give almost uniform distribution and it would make changes to the file easier as maintainers ask to keep the alphabetical sort in single file. I don't see any disadvantages. Probably the only thing is that potential contributor could mess with the letters and add a new product starting from (just example) A letter in the file where only names starting from B letter are present. But it could be easily handled by automation.

So finally:

  • now we have a single landscape.yaml
  • lets' split it into landscape-a.yaml, landscape-b.yaml ... ``landscape-z.yaml` files
  • if we need to generate site, just combine programatically all files and process them as it was done before.

gecube avatar Feb 26 '25 07:02 gecube