Re: [sqlite] "Stored procedures" performance issue

2009-10-05 Thread Igor Tandetnik
Darren Duncan wrote: > Igor Tandetnik wrote: >> Kristoffer Danielsson >> wrote: >>> When I create my own "stored procedures" using >>> sqlite3_create_function, I get horrible performance (which I >>> expected) even though the column of interest is INDEXED. >>> >>>

Re: [sqlite] "Stored procedures" performance issue

2009-10-05 Thread Darren Duncan
Igor Tandetnik wrote: > Kristoffer Danielsson wrote: >> When I create my own "stored procedures" using >> sqlite3_create_function, I get horrible performance (which I >> expected) even though the column of interest is INDEXED. >> >> Consider this sample (it's

Re: [sqlite] "Stored procedures" performance issue

2009-10-05 Thread Kees Nuyt
On Mon, 5 Oct 2009 18:01:46 +0200, Kristoffer Danielsson wrote: > This makes sense. Though, I think the > documentation should cover this. Much of this is implicitly or explicitly covered in http://www.sqlite.org/optoverview.html . And what Scott Hess said. --

Re: [sqlite] "Stored procedures" performance issue

2009-10-05 Thread Scott Hess
mail.com >> Date: Mon, 5 Oct 2009 09:31:10 -0400 >> To: sqlite-users@sqlite.org >> Subject: Re: [sqlite] "Stored procedures" performance issue >> >> > IS_MY_BIRTHDAY returns 1 when the date is my birthday. Now, inside this >> > function, if

Re: [sqlite] "Stored procedures" performance issue

2009-10-05 Thread Kristoffer Danielsson
This makes sense. Though, I think the documentation should cover this. Thanks for your response. > From: paiva...@gmail.com > Date: Mon, 5 Oct 2009 09:31:10 -0400 > To: sqlite-users@sqlite.org > Subject: Re: [sqlite] "Stored procedures" performance issue > > >

Re: [sqlite] "Stored procedures" performance issue

2009-10-05 Thread Pavel Ivanov
> IS_MY_BIRTHDAY returns 1 when the date is my birthday. Now, inside this > function, if I encounter a date greater than my birthday, then I want to tell > SQLite to stop searching, since the date is indexed. > > Is this possible? If so, how? Even if this was possible it would be useless

[sqlite] "Stored procedures" performance issue

2009-10-05 Thread Kristoffer Danielsson
When I create my own "stored procedures" using sqlite3_create_function, I get horrible performance (which I expected) even though the column of interest is INDEXED. Consider this sample (it's stupid, but it shows my problem): SELECT * FROM MyTable WHERE IS_MY_BIRTHDAY(IndexedDate);