Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve performance with lots of jobs #4

Open
sampsyo opened this issue Aug 24, 2019 · 1 comment
Open

Improve performance with lots of jobs #4

sampsyo opened this issue Aug 24, 2019 · 1 comment

Comments

@sampsyo
Copy link
Contributor

sampsyo commented Aug 24, 2019

Several operations in Polyphemus are linear in the total job count. For example, to find the latest job, you have to list all the jobs on the filesystem, open their JSON documents, and sort the result.

It would be great to someday not slow down too much in the presence of lots of old jobs, perhaps by caching some metadata in an index.

(Expanded from #1.)

@rachitnigam
Copy link
Member

Note to future self: This is hard because of concurrent worker execution. Workers modifying a meta-data file without locks will corrupt the index file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants