)
if Keyword.get(options, :vacuum) do
- Logger.info("Runnning VACUUM FULL. This could take a while.")
+ Logger.info("Runnning VACUUM FULL.")
+
+ Logger.warn(
+ "Re-packing your entire database may take a while and will consume extra disk space during the process."
+ )
Repo.query!(
"vacuum full;",
|> Repo.delete_all(timeout: :infinity)
if Keyword.get(options, :vacuum) do
- Logger.info("Runnning VACUUM FULL. This could take a while.")
+ Logger.info("Runnning VACUUM FULL.")
+
+ Logger.warn(
+ "Re-packing your entire database may take a while and will consume extra disk space during the process."
+ )
Repo.query!(
"vacuum full;",
case args do
"analyze" ->
Logger.info("Runnning VACUUM ANALYZE.")
+
Repo.query!(
"vacuum analyze;",
[],
)
"full" ->
- Logger.info("Runnning VACUUM FULL. This could take a while.")
+ Logger.info("Runnning VACUUM FULL.")
+
+ Logger.warn(
+ "Re-packing your entire database may take a while and will consume extra disk space during the process."
+ )
Repo.query!(
"vacuum full;",