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

Speed up drop database #6623

Merged
merged 1 commit into from
May 13, 2016
Merged

Speed up drop database #6623

merged 1 commit into from
May 13, 2016

Commits on May 13, 2016

  1. Speed up drop database

    Drop database was closing and deleting each shard dir individually and
    serially.  It would then delete the empty database dirs.
    
    This changes drop database to close all shards in parallel and run
    one os.RemoveAll to remove everything under the db dir which is more
    efficient.
    
    This also reworked the locking to avoid locking the tsdb.Store for
    long periods of time.  That can cause queries and writes for other
    databases to block as well.
    jwilder committed May 13, 2016
    Configuration menu
    Copy the full SHA
    9e54adc View commit details
    Browse the repository at this point in the history