[sqlite] Severe performance degradation between 3.8.4.3 and 3.8.6

2014-08-20 Thread Mario M. Westphal
Hello, After re-compiling my Windows application (compiled with Visual C++ 2012, 32 Bit application) with the latest SQLite version (3.8.6) I noticed a severely degraded performance with certain queries. The new version is 10 or more times slower than the previous build I used (3.8.4.3). 1.

Re: [sqlite] How to control cpu usage while transaction in progress

2014-08-20 Thread Keith Medcalf
On Wednesday, 20 August, 2014, at 02:40, dd asked: > Executing like query in a transaction. Query works with multiple tables >and table has 1 million records on desktop clients. CPU goes high when >transaction in progress. > Is there any way to control the CPU without

Re: [sqlite] Problem with Update Statement

2014-08-20 Thread Hick Gunter
Obviously the problem was caused by incorrectly cobbling together theSQLite statement. AFAICT the original code produces UPDATE RecordGrid SET LineNumber='',self_empty_info_gender_PRect=',,,' WHERE RecordGridID=' Which is clearly invalid (the RHS of the WHERE condition is not

Re: [sqlite] Problem with Update Statement

2014-08-20 Thread Wycliff Mabwai
Solved the problem with parameterized queries as below, without parameterized queries the update statement doesn't work on SQLite. Private Sub ReplaceRGrid() ''On Error Resume Next Dim SQLITEcons As New SQLite.SQLiteConnection Dim SQLITEcmd As New SQLite.SQLiteCommand

Re: [sqlite] Question about coalesce and data types

2014-08-20 Thread Clemens Ladisch
Martin Engelschalk wrote: > create table TestTable (col_a numeric); > insert into TestTable (col_a) values (1); > > retrieve the row, as expected: > > select * from TestTable where col_a = '1'; > > do not retrieve the row: > > select * from TestTable where coalesce(col_a, 5) = '1' > > Can someone

[sqlite] Question about coalesce and data types

2014-08-20 Thread Martin Engelschalk
Hello list, I checked the coalesce function and observed the follwoing results: I create a simple table with one column and one row: create table TestTable (col_a numeric); insert into TestTable (col_a) values (1); commit; The following statements retrieve the row, as expected: select *

Re: [sqlite] How to control cpu usage while transaction in progress

2014-08-20 Thread Hick Gunter
SQLite is supposed to process queries as fast as possible. Run your heavyweight queries in a dedicated thread and use your OS' way of prioritizing threads to lessen the "felt impact" on "interactive" threads (at the cost of increasing elapsed time). -Ursprüngliche Nachricht- Von: dd

[sqlite] How to control cpu usage while transaction in progress

2014-08-20 Thread dd
Hi all, Executing like query in a transaction. Query works with multiple tables and table has 1 million records on desktop clients. CPU goes high when transaction in progress. Is there any way to control the CPU without adding sleep statements? Is there any alternative solution for like