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

View file

@ -34,7 +34,7 @@ defmodule Mix.Tasks.Pleroma.Database 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 @@ defmodule Mix.Tasks.Pleroma.Database 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;",