summaryrefslogtreecommitdiff
path: root/lib/default.php
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-03-29 12:57:16 -0700
committerBrion Vibber <brion@pobox.com>2010-03-29 13:14:11 -0700
commitd44e5ac935ec50ec48dd3f1599e5fbba39b3278a (patch)
treeb0c65040de6cd288becabd5073a10a4d5ff9fc73 /lib/default.php
parent03f670646841025bfb117f14bea12aab70dec4de (diff)
Add $config['db']['annotate_queries'] option to include caller ID comments into queries. Comment can then be seen in process list, slow query logs on the server, aiding in tracking down unexpected slow queries.
SELECT /* queuedaemon.php Ostatus_profile->processPost */ * FROM notice WHERE ( notice.uri = 'http://stormcloud.local/mublog2/notice/479' ) INSERT /* POST Notice::saveNew */ INTO notice (profile_id , content ....
Diffstat (limited to 'lib/default.php')
-rw-r--r--lib/default.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/default.php b/lib/default.php
index 10f3f1a97..7b0d08e4c 100644
--- a/lib/default.php
+++ b/lib/default.php
@@ -72,6 +72,7 @@ $default =
'quote_identifiers' => false,
'type' => 'mysql',
'schemacheck' => 'runtime', // 'runtime' or 'script'
+ 'annotate_queries' => false, // true to add caller comments to queries, eg /* POST Notice::saveNew */
'log_queries' => false, // true to log all DB queries
'log_slow_queries' => 0), // if set, log queries taking over N seconds
'syslog' =>