Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

tSQLiteInput and terminated tSQLiteConnection

Hello.

 

My tSQLiteInput uses an existing tSQLiteConnection.

 

In certain circumstances the tSQLiteConnection is beeing terminated and my tSQLiteInput throws an exception because of missing connection and my job stops running.

 

Is there any way to reopen the connection when it has been terminated?

 

Thank you and best regards.

 

 

 

Labels (2)
6 Replies
Anonymous
Not applicable
Author

Instead of using existing connection, you can provide
connection details in input explicitly . it will cost you 0 to always open a new connection, in the case of sqlite db.
Anonymous
Not applicable
Author

Hello Chirgal. Why you mean that it costs me 0 if I access the file each iteration of around 200k iterations each hour?

Thank you.
Anonymous
Not applicable
Author

Sqlite db are server less and based on local file only. R u really connecting to any external server while opening connection?
Anonymous
Not applicable
Author

Hello, I know that sqlite is file based. But file i/o also takes time. db file is stored on a netshare...

Anonymous
Not applicable
Author

You can open/close connection per iteration . There won't be performance impact.

Yes I/O may impact, if you are running iterations in parallel. But sqlite won't complain ,since it always does write work for 1 connection/process/thread at a time, while read operations can be done in parallel.
Anonymous
Not applicable
Author

This doesn't work.

 

I run into "locked database" exeption quite fast.

 

Filehandler seems to keep it locked longer than an iteration takes...