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

Showing Progress During Populate or Rebuild Commands #470

Open
keehun opened this issue Jan 24, 2024 · 1 comment
Open

Showing Progress During Populate or Rebuild Commands #470

keehun opened this issue Jan 24, 2024 · 1 comment

Comments

@keehun
Copy link

keehun commented Jan 24, 2024

When rebuilding/populating a large database with many nested fields, it can take 8-12 hours for the full rebuild. It would be great to know the progress as it goes.

I followed the code in django-elasticsearch-dsl all the way through the elasticsearch PIP package, and adding such a counter/progress printout doesn't seem straightforward, but I thought I'd report this feature request anyways.

Has anyone tried to add such a counter/progress meter?

Yes, it's possible to check how many records have been rebuilt in Kibana, but django-elasticsearch-dsl uploads documents in batches of 500, and each 500-document batch takes a long time. It would be great to know at a per-document level where the rebuild/populate progress is at.

@dziugas505hq
Copy link

I guess you can just override the management command and use python package such as (https://pypi.org/project/pqdm/)

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