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

logger.info in management command dbrestore is too slow (utils.handle_size) #517

Open
jahazieldom opened this issue Apr 16, 2024 · 0 comments

Comments

@jahazieldom
Copy link
Contributor

Feature description

Management command dbrestore is too slow, I can see that a lot of the time it is due to this log:

self.logger.info("Restore tempfile created: %s", utils.handle_size(input_file))

I'm using Google Cloud Storage and the file size of the dump is 4 GiB

Alternatives options

Can use filehandle.size instead filehandle.tell() in utils.handle_size

@jahazieldom jahazieldom changed the title Log inside management command dbrestore is too slow (utils.handle_size) Log in management command dbrestore is too slow (utils.handle_size) Apr 16, 2024
@jahazieldom jahazieldom changed the title Log in management command dbrestore is too slow (utils.handle_size) logger.info in management command dbrestore is too slow (utils.handle_size) Apr 16, 2024
jahazieldom added a commit to jahazieldom/django-dbbackup that referenced this issue Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant