Commit f115e3d
committed
Speed up postgresql by disabiling durability settings.
Read:
https://pythonspeed.com/articles/faster-db-tests/
I'm not using docker for postgresql at this time, but this article
describes how to start a docker postgres image with disabled settings
that may be of use if I end up having to change python 2.7 testing to
use dockerized containers against dockerized database backends.
However as a result of the above article, I took another look at:
https://www.postgresql.org/docs/current/non-durability.html
and switched off a few more settings.
Also added some similar settings for mysql that was not in the
deployed workflow.
[skip travis]1 parent 939b358 commit f115e3d
1 file changed
+16
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
125 | 137 | | |
126 | 138 | | |
127 | 139 | | |
| |||
131 | 143 | | |
132 | 144 | | |
133 | 145 | | |
134 | | - | |
135 | | - | |
| 146 | + | |
| 147 | + | |
136 | 148 | | |
| 149 | + | |
| 150 | + | |
137 | 151 | | |
138 | 152 | | |
139 | 153 | | |
| |||
0 commit comments