From 74f5fb6f79a2d6e498db4e33f2120e9dc05994eb Mon Sep 17 00:00:00 2001 From: "Bora M. Alper" Date: Fri, 16 Jun 2017 11:31:16 +0300 Subject: [PATCH] add a notice that preparing FTS might take a while --- magneticow/magneticow/magneticow.py | 1 + 1 file changed, 1 insertion(+) diff --git a/magneticow/magneticow/magneticow.py b/magneticow/magneticow/magneticow.py index cbdb2b0..0b34715 100644 --- a/magneticow/magneticow/magneticow.py +++ b/magneticow/magneticow/magneticow.py @@ -317,6 +317,7 @@ def initialize_magneticod_db() -> None: magneticod_db_path = os.path.join(appdirs.user_data_dir("magneticod"), "database.sqlite3") magneticod_db = sqlite3.connect(magneticod_db_path, isolation_level=None) + logging.info("Preparing for the full-text search (this might take a while)...") with magneticod_db: magneticod_db.execute("PRAGMA journal_mode=WAL;")