Merges 55e9b2263c from versions/next
with code from GitLab issue #594 and GitLab merge request !55.
Thanks to Jakob Haufe (@sur5r) and Jesaja Everling (@jeverling)
for much of the research and code updates.
Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com>
Code now resides in common.serialization in the form
of two new functions: yaml_load and yaml_dump.
Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com>
All database configuration is now done using MAYAN_DATABASES to
mirror Django way of doing database setup.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
Database connection when using gunicorn microthreads
are not shared by the microthreads and can exhaust the
number of open connections available.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>