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

From: Ashesh Vashi <ashesh(dot)vashi(at)enterprisedb(dot)com>
To: pgadmin-hackers(at)postgresql(dot)org
Subject: pgAdmin 4 commit: Do not dump the session data on the disk on every req
Date: 2017-07-25 10:22:50
Message-ID: E1dZwzK-0003uo-SG@gothos.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(dot)dhumal(at)enterprisedb(dot)com>

Modified Files
--------------
web/pgadmin/utils/session.py | 16 +++++++++++++---
1 file changed, 13 insertions(+), 3 deletions(-)

Browse pgadmin-hackers by date

  From Date Subject
Next Message Surinder Kumar 2017-07-25 10:26:47 Re: [pgAdmin4]: Webpacking of static JS/CSS
Previous Message Shirley Wang 2017-07-25 10:15:48 Re: [pgAdmin4][Patch]: Allow user to cancel long running queries from dashboard