/adei/trunk

To get this branch, use:
bzr branch http://darksoft.org/webbzr/adei/trunk

« back to all changes in this revision

Viewing changes to config.php

  • Committer: Suren A. Chilingaryan
  • Date: 2018-03-23 03:25:36 UTC
  • Revision ID: csa@suren.me-20180323032536-r3nofczubbjlgmdv
Group INSERTs into the transactions for better INNODB performance

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
 
11
11
        // INNODB is required for replication, MyISAM in other case especially on the systems with low IOPS
12
12
        // MyISAM tables are significantly smaller and less disk intensive
13
 
    $ADEI_CACHE_ENGINE = "INNODB";              // "MYISAM";
14
 
    $ADEI_MAX_OPERATIONS_PER_TRANSACTION = ($ADEI_CACHE_ENGINE == "INNODB")?100:false;
 
13
        // Compression with Katrin dataset give 35% of data savings, but results 50-70% performance degradation
 
14
        // There is more CPU usage, but systems are not bound by CPU, so reason is not completely clear
 
15
    $ADEI_CACHE_ENGINE = "MYISAM";              // "INNODB"
 
16
    $ADEI_TRANSACTION_SIZE = 0;                 // 0 to disable
 
17
    $ADEI_CONTINUOUS_TRANSACTION = true;        // required unless we have a perfectly tuned configuration
 
18
    $ADEI_CACHE_COMPRESSION = "None";           // "zlib"
 
19
 
15
20
        // This does not help much to performance and may create problems under some circumstances. Don't turn on.
16
21
    $ADEI_DELAYED_KEYS = false;                 
17
22
 
595
600
                unset($READER_DB[$key]);
596
601
        }
597
602
    }
 
603
 
 
604
    if ($ADEI_CACHE_ENGINE != "INNODB") {
 
605
        $ADEI_CACHE_COMPRESSION = "None";
 
606
        $ADEI_TRANSACTION_SIZE = false;
 
607
    }
 
608
 
598
609
?>