On Mon, 2005-07-11 at 14:20 +0100, Steve O'Hara wrote:
> Is that statement correct Richard?
> I assumed that something clever was going on with OR's such that under the
> bonnet they got translated into UNION statements or similar.
>
SQLite does not currently optimizer ORs in any way. If you
put
[EMAIL PROTECTED] wrote:
Ben Clewett <[EMAIL PROTECTED]> writes:
D. Richard Hipp wrote:
MySQL and PostgreSQL will use the indexes here, and therefore return the
result considerably faster.
Really? I would be very interested to know what
query plan MySQL and PostgreSQL use in this example
Ben Clewett <[EMAIL PROTECTED]> writes:
> D. Richard Hipp wrote:
>>> MySQL and PostgreSQL will use the indexes here, and therefore return the
>>> result considerably faster.
>>>
>> Really? I would be very interested to know what
>> query plan MySQL and PostgreSQL use in this example.
>
> It looks
D. Richard Hipp wrote:
MySQL and PostgreSQL will use the indexes here, and
therefore return the result considerably faster.
Really? I would be very interested to know what
query plan MySQL and PostgreSQL use in this example.
It looks like I didn't look before leaping. MySQL does do a seq
July 2005 11:49
To: sqlite-users@sqlite.org
Subject: Re: [sqlite] Possible enhancement to SQL logic
Won't work unfortunately. Currently indices are never used if
the WHERE clause has an OR expression in it.
--- Aaron Burghardt <[EMAIL PROTECTED]> wrote:
> Try adding another inde
Won't work unfortunately. Currently indices are never used if
the WHERE clause has an OR expression in it.
--- Aaron Burghardt <[EMAIL PROTECTED]> wrote:
> Try adding another index:
>
> CREATE INDEX a_f1_f2 ON a (f1, f2);
>
> Does that help?
>
> Aaron Burghardt
>
> On Jul 11, 2005, at 6:07 A
On Mon, 2005-07-11 at 11:07 +0100, Ben Clewett wrote:
> If you create a table with two indexes:
>
> CREATE TABLE a (
> f0 INTEGER PRIMARY KEY,
> f1 INTEGER,
> f2 INTEGER
> );
> CREATE INDEX a_f1 ON a (f1);
> CREATE INDEX a_f2 ON a (f2);
>
> Now execute a query using both the ind
Try adding another index:
CREATE INDEX a_f1_f2 ON a (f1, f2);
Does that help?
Aaron Burghardt
On Jul 11, 2005, at 6:07 AM, Ben Clewett wrote:
Dear SQLite,
I have found a possible area where the SQL logic of SQLite is not
as good as other DBMS. Like MySQL or PostgreSQL. It's a simple
8 matches
Mail list logo