Re: [sqlite] [EXTERNAL] slow join, fast subselect

2019-04-18 Thread Poor Yorick
On Wed, Apr 17, 2019 at 11:43:13AM -0600, Keith Medcalf wrote: > > Your made up plans are intriguing. The plan you show for the latter query > omit to join a and b. Are you just making things up? The query plans were cut and pasted from the terminal. It's easy enough to deduce where these

Re: [sqlite] [EXTERNAL] slow join, fast subselect

2019-04-17 Thread Keith Medcalf
..@mailinglists.sqlite.org] On Behalf Of Poor Yorick >Sent: Wednesday, 17 April, 2019 08:48 >To: SQLite mailing list >Subject: Re: [sqlite] [EXTERNAL] slow join, fast subselect > >On Wed, Apr 17, 2019 at 01:24:11PM +, David Raymond wrote: >> Would you post what those explai

Re: [sqlite] [EXTERNAL] slow join, fast subselect

2019-04-17 Thread Poor Yorick
On Wed, Apr 17, 2019 at 01:24:11PM +, David Raymond wrote: > Would you post what those explain query plans results are? All the other > replies not withstanding I'm still curious as to why #2 would be faster > (assuming "rowid" is indeed the actual rowid anyway) > > Also, is that a typo in

Re: [sqlite] [EXTERNAL] slow join, fast subselect

2019-04-17 Thread David Raymond
nd a.rowid in (select rowid from b) -Original Message- From: sqlite-users [mailto:sqlite-users-boun...@mailinglists.sqlite.org] On Behalf Of Poor Yorick Sent: Wednesday, April 17, 2019 6:32 AM To: SQLite mailing list Subject: Re: [sqlite] [EXTERNAL] slow join, fast subselect On Wed, Ap

Re: [sqlite] [EXTERNAL] slow join, fast subselect

2019-04-17 Thread Poor Yorick
On Wed, Apr 17, 2019 at 10:15:31AM +, Hick Gunter wrote: > Try EXPLAIN QUERY PLAN or even EXPLAIN to see what is going on > in each case. I already have, of course. The question is, how much effort would it be to get sqlite choose the better query plan in the "join" case as well? --

Re: [sqlite] [EXTERNAL] slow join, fast subselect

2019-04-17 Thread Hick Gunter
Try EXPLAIN QUERY PLAN or even EXPLAIN to see what is going on in each case. -Ursprüngliche Nachricht- Von: sqlite-users [mailto:sqlite-users-boun...@mailinglists.sqlite.org] Im Auftrag von Poor Yorick Gesendet: Mittwoch, 17. April 2019 10:56 An: sqlite-users@mailinglists.sqlite.org