Cancel long sqlite query via UniDac

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
sandy771
Posts: 194
Joined: Tue 22 May 2007 13:57

Cancel long sqlite query via UniDac

Post by sandy771 » Tue 30 Sep 2014 10:14

I have an application where users can create their own queries using complex joins. Occasionally someone will create a query that is too complex (a Cartesian join) so I would like an option to allow them to cancel the current query if it is taking too long to process.

I am using UniDac but (at the moment) only using SQLite and only perform queries that return datasets, I do not update or change any data.

I see that sqlite provide an sqlite3_interrupt() routine that would seem to do exactly what I need.

so can I cancel a UniQuery “select * from “ via UniDac ?

Thanks

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: Cancel long sqlite query via UniDac

Post by AlexP » Tue 30 Sep 2014 11:32

Hello,


sqlite3_interrupt stops any operation, not only query execution. Currently, UniDAC doesn't support such functionality. You can add feature suggestions at our UserVoice page: https://devart.uservoice.com/forums/104 ... components
If your idea gets enough votes, we will implement it.

Post Reply