summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2013-10-07 11:29:52 +0200
committerThomas Bruederli <thomas@roundcube.net>2013-10-07 11:29:52 +0200
commita69f9918cd1d3a0ca5fec28ac71801ff223435ae (patch)
treeeb17de4da51f91f1d3db7869c8b394e8b0d168e4 /config
parent120db629b0645033fd6a477b9f96cc8dad589213 (diff)
Improve selection of replicated database connection:
- Analyze query and prefer dsnr unless a write operation for a table involved has been carried out before - New config option and setter method to enforce connection mode on table level
Diffstat (limited to 'config')
-rw-r--r--config/defaults.inc.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/config/defaults.inc.php b/config/defaults.inc.php
index 66db040d3..9afa4ac81 100644
--- a/config/defaults.inc.php
+++ b/config/defaults.inc.php
@@ -41,6 +41,16 @@ $config['db_persistent'] = false;
// you can define specific table (and sequence) names prefix
$config['db_prefix'] = '';
+// Mapping of table names and connections to use for ALL operations.
+// This can be used in a setup with replicated databases and a DB master
+// where read/write access to cache tables should not go to master.
+$config['db_table_dsn'] = array(
+// 'cache' => 'r',
+// 'cache_index' => 'r',
+// 'cache_thread' => 'r',
+// 'cache_messages' => 'r',
+);
+
// ----------------------------------
// LOGGING/DEBUGGING