Skip to content
This repository has been archived by the owner on Jan 29, 2022. It is now read-only.

intitial connection from connection manager should be in its own thread #80

Open
mispp opened this issue Sep 20, 2018 · 1 comment
Open
Assignees
Projects

Comments

@mispp
Copy link
Owner

mispp commented Sep 20, 2018

when initiating connection to any database, connection is established by GUI thread. i've tried connecting to a database behind vpn and, for a brief moment, gui freezes.
'initial' connection is later cloned for each tab in a new thread, so there it works fine.

this initial conneciton should also be handled in a separate thread, which would also be used to pull objects from the database once treeview control is implemented.

@mispp mispp self-assigned this Sep 20, 2018
@mispp
Copy link
Owner Author

mispp commented Sep 20, 2018

i guess with this change, GuiStateHandle class should be made, so based on all events coming, gui would be updated.

example:

  • export data button should only be enabled when we a conneciton in a tab is active, when there is already executed query and execution of it is finished and when query is a "select"
  • run query shoudl be enabled only when active connection is selected in a tab
  • while there is a running query, connection switch should not be allowed, if needed, first the query should be cancelled.
  • etc.

once treeview control is implemented, then also loading objects from database should be handled in a queue so the queries (forward only) don't get mixed up.

@mispp mispp added this to Todo in v0.1 Aug 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
v0.1
  
Todo
Development

No branches or pull requests

1 participant