From cf40828a4c3cc5c4f4fbc9262f2dd66e773699a0 Mon Sep 17 00:00:00 2001 From: John Klehm Date: Mon, 7 Apr 2008 15:11:18 -0500 Subject: config.php: Add global switches for nice urls functionality --- include/config.php.sample | 16 ++++++++++++++++ 1 files changed, 16 insertions(+), 0 deletions(-) diff --git a/include/config.php.sample b/include/config.php.sample index 4a33336..04f8dac 100644 --- a/include/config.php.sample +++ b/include/config.php.sample @@ -20,6 +20,22 @@ define("APPDB_OWNER_EMAIL","appdb@winehq.org"); // e-mail of this product/compan define("APPDB_SENDER_EMAIL","appdb-noreply@winehq.org"); // The e-mail address which appears as the sender in mails sent by the AppDB define("BUGZILLA_ROOT","http://bugs.winehq.org/"); // path to bugzilla +define("APPDB_ENABLE_NICE_URLS", true); //switch for APPDB_ROOT/app/app-name linking and search functions +define("APPDB_ENABLE_NICE_URLS_INDEXER", false); //turn this on when building the nice urls index db +// set to less if ids at the end of the query arent getting added +// mysql can only do a certain amount of inserts per query. +// query will still succeed if there are more inserts in it than can really be done, yay mysql +// at for instance if it is 1000 you will know if that is too high a setting if you are missing appIds near +// each thousand ie if 1000 > id > 900 are missing, and if 2000 > id > 1900 are gone etc +// you must get this below the max for sure otherwise the indexer wont do a complete job, in other words +// better to guess under than guess over +// 1000 worked for me on mysql 5.0.54 on gentoo default settings where as 5000 did not YMMV +// related to mysql packet query size?? +define("APPDB_MYSQL_MAX_INSERTS_PER_QUERY", 1000); +//set to max value of data type used for rank in index table +//rank currently == mysql tinyint unsigned => 0 to 255 +define("APPDB_SEARCH_INDEX_MAX_RANK", 255); + // AppDB developers: Use this define to disable email from being sent from the appdb during testing //if(!defined("DISABLE_EMAIL")) // define("DISABLE_EMAIL", true); // disable email, see mail_appdb() in include/mail.php -- 1.5.4.5