tuning the index cache
authorArt Cancro <ajc@citadel.org>
Thu, 9 Aug 2018 17:27:14 +0000 (13:27 -0400)
committerArt Cancro <ajc@citadel.org>
Thu, 9 Aug 2018 17:27:14 +0000 (13:27 -0400)
citadel/modules/fulltext/serv_fulltext.c
citadel/sysconfig.h

index 40645a294b7cdb4eb2e5dba6226adf24f7f91169..4fced5e28ac95b2a7eaebf00ec992b8e524605a8 100644 (file)
@@ -256,7 +256,6 @@ void do_fulltext_indexing(void) {
        /*
         * Make sure we don't run the indexer too frequently.
         * FIXME move the setting into config
-        */
        time_t now = time(NULL);
        if ( (now - last_index) < 300L) {
                syslog(LOG_DEBUG,
@@ -266,10 +265,10 @@ void do_fulltext_indexing(void) {
                );
                return;
        }
+        */
 
        /*
-        * Check to see whether the fulltext index is up to date; if there
-        * are no messages to index, don't waste any more time trying.
+        * Silently return if our fulltext index is up to date with new messages.
         */
        if (
                (CtdlGetConfigLong("MMfulltext") >= CtdlGetConfigLong("MMhighest"))
index 871fdd11bb505a8aa06f19709d6b360d7fef7a77..068ad88da6011e3a750ba2756bd000f3840dd511 100644 (file)
@@ -95,4 +95,4 @@
  * How many messages may the full text indexer scan before flushing its
  * tables to disk?
  */
-#define FT_MAX_CACHE           2500
+#define FT_MAX_CACHE           25