On Mon, 29 Jul 2013 13:23:07 +0100
Simon Slavin wrote:
> INSERT OR IGNORE a new row with the correct 'word' and a confidence
> of 0
> UPDATE the row with that word to increment the confidence.
...
> If that solution doesn't work for you you might like to try first
> doing
On 2 Aug 2013, at 2:09pm, Igor Tandetnik wrote:
> On 8/2/2013 8:14 AM, Simon Slavin wrote:
>>
>> On 2 Aug 2013, at 10:13am, Jan Slodicka wrote:
>>
>>> Hi Simon,
>>>
>>> the solution might look elegant, but it is probably a lot slower. I did not
>>> check
On 8/2/2013 8:14 AM, Simon Slavin wrote:
On 2 Aug 2013, at 10:13am, Jan Slodicka wrote:
Hi Simon,
the solution might look elegant, but it is probably a lot slower. I did not
check this particular case, but in the past I found triggers to perform
rather badly.
I am puzzled.
On 2 Aug 2013, at 10:13am, Jan Slodicka wrote:
> Hi Simon,
>
> the solution might look elegant, but it is probably a lot slower. I did not
> check this particular case, but in the past I found triggers to perform
> rather badly.
I am puzzled. My solution does not involve any
Hi Simon,
the solution might look elegant, but it is probably a lot slower. I did not
check this particular case, but in the past I found triggers to perform
rather badly.
Regards,
Jan
--
View this message in context:
te-users-
> boun...@sqlite.org] On Behalf Of Navaneeth.K.N
> Sent: Monday, 29 July, 2013 05:58
> To: General Discussion of SQLite Database
> Subject: [sqlite] Query optimization: Checking for existence before
> performing action
>
> Hello,
>
> I am trying to optimize the SQ
On 29 July 2013 12:57, Navaneeth.K.N wrote:
> Hello,
>
> I am trying to optimize the SQL calls that my application makes. I
> have a scenario where words are inserted into a table. Now each word
> will have a column called "confidence". There is a unique primary key
> on
On 29 Jul 2013, at 12:57pm, Navaneeth.K.N wrote:
> When inserting a word, first I check if the words exists by performing
> a "select" query. If it exists, I fire an update query to increment
> the confidence for that word. If word is not available, I fire an
> insert
Hello,
I am trying to optimize the SQL calls that my application makes. I
have a scenario where words are inserted into a table. Now each word
will have a column called "confidence". There is a unique primary key
on "word".
When inserting a word, first I check if the words exists by performing
a
9 matches
Mail list logo