aferrandi / dbtarzan

To explore the tables of a database following their relations as defined in their foreign keys.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Timeout reading rows of a table

aferrandi opened this issue · comments

Is your feature request related to a problem? Please describe.
If the table has long fields (e.g. varchar(max)) reading the rows can be very slow and the query can take long time making the application feel sluggish

Describe the solution you'd like
Add a timeout (configurable by connection, with a good default). The DBWorker actor stops reading the rows when the query takes more than the timeout value.

Describe alternatives you've considered
A stop button. More difficult to implement with the actor reading the rows.

Now the system applies the timeout specified for the connection in the connection editor (or 10 seconds if this amount is not specified) both when running the query and when reading the rows.
For tables with very big texts in LOG columns of the table there could be still some delay. In this case, closing the application, this disconnects from the database.