bartongroup / slivka

http://bartongroup.github.io/slivka/
Apache License 2.0
7 stars 3 forks source link

Broad structure of jobs directory makes it slow to search or display. #142

Open warownia1 opened 3 months ago

warownia1 commented 3 months ago

As the number of jobs run increases, the directory structure under jobs directory grows broader. As a result accessing the directory becomes slower to the point that ls no longer works. A possible solution is to split the id into chunks e.g. 8-bytes each end store it in a nested directory structure. e.g.

/jobs
  /661ff7bc
    /d8fe59f6
      /6ca8ae14  # job 661ff7bc-d8fe59f66ca8ae14
      /5df1bb03  # job 661ff7bcd8fe59f65df1bb03