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

Run importers in Parallel #837

Open
ziadhany opened this issue Aug 9, 2022 · 1 comment
Open

Run importers in Parallel #837

ziadhany opened this issue Aug 9, 2022 · 1 comment

Comments

@ziadhany
Copy link
Collaborator

ziadhany commented Aug 9, 2022

Instead of running ./manage.py import --all in sequence
We can use multiprocessing and try to use all CPU power.

suggestions:

  • we can use Celery and schedule tasks and run easily importers in parallel
    (another benefit: we can run periodic Tasks and make importers synchronize )

  • we can make it simple and use some code from scancode.

this could be a solution for #833

@ziadhany
Copy link
Collaborator Author

While I was trying to run importers using threads I couldn't notes any improvement !
https://stackoverflow.com/questions/31062124/multiple-db-inserts-with-django-performance-is-not-increased-by-parallel-threads

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

1 participant