pgAdmin 4 commit: Do not dump the session data on the disk on everyreq

Поиск
Список
Период
Сортировка
От 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 по дате отправления:

Предыдущее
От: Shirley Wang
Дата:
Сообщение: Re: [pgAdmin4][Patch]: Allow user to cancel long running queries from dashboard
Следующее
От: Surinder Kumar
Дата:
Сообщение: Re: [pgAdmin4]: Webpacking of static JS/CSS