From 3dbf190677a5f9d55c83538cb4cd9a02dda899f0 Mon Sep 17 00:00:00 2001 From: Nicolas A Perez Date: Sat, 8 Dec 2018 16:44:55 -0600 Subject: [PATCH] Update Db.scala --- .../scala/com/github/anicolaspp/maprdbcleaner/db/Db.scala | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/scala/com/github/anicolaspp/maprdbcleaner/db/Db.scala b/src/main/scala/com/github/anicolaspp/maprdbcleaner/db/Db.scala index d25dd59..cd32b9c 100644 --- a/src/main/scala/com/github/anicolaspp/maprdbcleaner/db/Db.scala +++ b/src/main/scala/com/github/anicolaspp/maprdbcleaner/db/Db.scala @@ -20,6 +20,8 @@ object Db { val documents = documentStore.find(query) + println(s"Notice that the deletion process might take a while based on the size of the table ${config.tableName}.") + documentStore.delete(documents, config.id) documentStore.close() @@ -36,5 +38,5 @@ case class Error(e: Throwable) extends DBError sealed trait DBMessage case class CompletionMessage(query: Query) extends DBMessage { - override def toString: String = s"Done deleting documents for query: $query" + override def toString: String = s"Done deleting documents for query: $query." } \ No newline at end of file