这是indexloc提供的服务,不要输入任何密码
Skip to content

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

@gecube

Description

@gecube

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions