Make it obvious a full vacuum can take a while

This commit is contained in:
Mark Felder 2020-05-27 16:27:29 -05:00
parent a2f57bd82b
commit 73ca57e4f1
1 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ def run(["remove_embedded_objects" | args]) do
) )
if Keyword.get(options, :vacuum) do if Keyword.get(options, :vacuum) do
Logger.info("Runnning VACUUM FULL") Logger.info("Runnning VACUUM FULL. This could take a while.")
Repo.query!( Repo.query!(
"vacuum full;", "vacuum full;",
@ -94,7 +94,7 @@ def run(["prune_objects" | args]) do
|> Repo.delete_all(timeout: :infinity) |> Repo.delete_all(timeout: :infinity)
if Keyword.get(options, :vacuum) do if Keyword.get(options, :vacuum) do
Logger.info("Runnning VACUUM FULL") Logger.info("Runnning VACUUM FULL. This could take a while.")
Repo.query!( Repo.query!(
"vacuum full;", "vacuum full;",