]> git.nbdom.net Git - nb.git/commitdiff
type.tables
authorNicolas Boisselier <nicolas.boisselier@semantico.com>
Mon, 5 Sep 2016 15:47:54 +0000 (16:47 +0100)
committerNicolas Boisselier <nicolas.boisselier@semantico.com>
Mon, 5 Sep 2016 15:47:54 +0000 (16:47 +0100)
etc/dbs/all.php

index 23c0a099adb8baf66a566939bf4d7cff57aef33e..49c63ad8627c4f19df56d7099ea485196829bf4e 100644 (file)
@@ -16,6 +16,12 @@ $CONF['all'] = array(
   'options' => [
     PDO::ATTR_PERSISTENT => true,
   ],
+  'types' => [
+    'exec' => [
+      'PRAGMA synchronous=NORMAL',
+      'PRAGMA journal_mode=MEMORY',
+    ]
+  ],
 );
 $attach = [];
 foreach ([
@@ -38,7 +44,6 @@ usort($attach,function($a,$b){
 });
 if (!$attach) return;
 
-$CONF['all']['types']['exec'] = [];
 $CONF['all']['_import'] = [];
 if (nb::p('debug')=='all') debug($attach);