pgAdmin 4 commit: Do not dump the session data on the disk on everyreq
В списке pgadmin-hackers по дате отправления:
| От | Ashesh Vashi |
|---|---|
| Тема | pgAdmin 4 commit: Do not dump the session data on the disk on everyreq |
| Дата | |
| Msg-id | E1dZwzK-0003uo-SG@gothos.postgresql.org обсуждение |
| Список | pgadmin-hackers |
Do not dump the session data on the disk on every request. Session object is updated, everytime a request is being served, and that was forcing the session object dumped on the dist on every request. On windows, it was causing issues on slower system on startup. Because - windows file system locks the file, when it is opened by any application. And, frequent requests on the pgAdmin main UI rendering was causing issues, because of that. In order to resolve the issue, we will not write the session data on disk for every request, but - only after certain delay (in seconds), from it was last written. It can be configured using the attribute 'PGADMIN_SESSION_DISK_WRITE_DELAY' in the configuration file, default vaule for the delay is 10. (i.e. 10 seconds) Branch ------ master Details ------- https://git.postgresql.org/gitweb?p=pgadmin4.git;a=commitdiff;h=d339d6b816a28c5947b2312a932c047773d7e350 Author: Harshal Dhumal <harshal.dhumal@enterprisedb.com> Modified Files -------------- web/pgadmin/utils/session.py | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-)
В списке pgadmin-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера