1
0
Fork 0
mirror of synced 2024-10-02 10:16:27 +13:00

Use buffered queries

This commit is contained in:
Jake Barnby 2022-11-15 15:45:53 +13:00
parent 447f3f6756
commit 1c24421a95
No known key found for this signature in database
GPG key ID: C437A8CC85B96E9C

View file

@ -598,7 +598,8 @@ $register->set('pools', function ($size = APP_DATABASE_DEFAULT_POOL_SIZE) {
PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC,
PDO::ATTR_ERRMODE => App::isDevelopment() ? PDO::ERRMODE_WARNING : PDO::ERRMODE_SILENT, // If in production mode, warnings are not displayed
PDO::ATTR_EMULATE_PREPARES => true,
PDO::ATTR_STRINGIFY_FETCHES => true
PDO::ATTR_STRINGIFY_FETCHES => true,
PDO::MYSQL_ATTR_USE_BUFFERED_QUERY => true,
));
});
};