You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Zenko, all database queries are executed via two global connections/cursors. That might unnecessarily hold the connection resources and prevent other applications from accessing the database.
Better localize the connection usage, like create a new connection while executing a new query, and close it immediately once you're done using this connection. For example,
cursor=conn.cursor()
try:
cursor.execute(...)
except:
# error handling hereelse:
# do your stuff herefinally:
cursor.close()
The text was updated successfully, but these errors were encountered:
In Zenko, all database queries are executed via two global connections/cursors. That might unnecessarily hold the connection resources and prevent other applications from accessing the database.
Better localize the connection usage, like create a new connection while executing a new query, and close it immediately once you're done using this connection. For example,
The text was updated successfully, but these errors were encountered: