Do not use the sqlite for session handling, as the old implementation is optimized to work from multiple threads. It has too many frequent transaction from multiple threads, and that tends to result into the 'database is locked' error of sqlite. With the new implemenation, we're using the caching mechanism, which keep the data in the memory all the time, and saves it on request completion, and loads it only for the first time. Also, it will storage the data using pickle, which will be faster than accessing sqlite. Fixes #1329 Branch ------ master Details ------- http://git.postgresql.org/gitweb?p=pgadmin4.git;a=commitdiff;h=61698b7b4db3eea39a034c7ff0f90d0c710ffcb8 Modified Files -------------- requirements_py2.txt | 1 + web/pgadmin/__init__.py | 4 +- web/pgadmin/utils/session.py | 424 +++++++++++++++++++++++-------------------- 3 files changed, 234 insertions(+), 195 deletions(-)
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера