Re: [SQL] OR clause causing strange index performance

2004-05-28 Thread Atesz
Hi! I read your JOIN - Index Scaning - OR problem. I don't understand why you decomposed JOINs two brach (ul1 and ul2). If I understand your problem well I can suggest the next idea for your QUERY (you don't need two branch): SELECT * FROM permissions p INNER JOIN users u ON u.id = p.i

Re: [SQL] Join issue on a maximum value

2004-04-26 Thread Atesz
On Wed, Apr 21, 2004 at 14:29:34 -0400, Heflin wrote: > > SELECT auction.auction_id, image.image_id, image.image_descr FROM > auction JOIN image ON auction.auction_id = image.auction_id WHERE > auction.auction_owner = 'Mabel'; > In my opinion there are 2 problem: how can you make the query

[SQL] Own opclass and LIKE problem again!

2004-04-26 Thread Atesz
Hi! Thank you very much the answers for my previous 'Multi ordered select and indexing' question! I tried your suggestions, and those are working well. We found a problem when used '(-col2)' instead of 'col2 DESC'. This solution working as a functional index and in our experience when the planner