RohitDhankar / DigitalCognition_OldRepo_ARCHIVED

DC is being developed to be a generic BI tool. Product preview here :- https://www.youtube.com/channel/UC9J9N9CNv15s9U9Aejpza6g/videos
2 stars 1 forks source link

"SELECT t.oid, typarray FROM pg_type t JOIN pg_namespace ns ON typnamespace = ns.oid WHERE typname = 'hstore'; " #9

Open RohitDhankar opened 5 years ago

RohitDhankar commented 5 years ago

The PSQL log being recorded using own method psql_liveConn_Status() , shows this query multiple times . Needs to be investigated what this is and why it occurs so frequently - how does it impact performance ?

This is linked to #5 , as its creating PSQL connections - not requested by end user.

"SELECT t.oid, typarray
FROM pg_type t JOIN pg_namespace ns
    ON typnamespace = ns.oid
WHERE typname = 'hstore';
"

screenshot of the csv dumped from own method psql_liveConn_Status() , as seen below -

Screenshot from 2019-03-26 18-53-15

Issue occurs as per information here - https://code.djangoproject.com/ticket/28334 verbatim quote from issue above - "On each newly created database connection django.contrib.postgresql tries to register hstore type for this connection via connection_created signal and register_hstore function."

PostgreSQL creates a new connection and thus - "register hstore type" , which is the core of the issue .

RohitDhankar commented 5 years ago

Status as on 5th JUNE 19. After checking the CSV dump from own method - psql_liveConn_Status() As seen in screencapture's below this 'hstore' related query has not been seen since - 30th May 19 will need further monitoring , keeping issue open.

Screenshot from 2019-06-05 12-54-19 Screenshot from 2019-06-05 12-52-11