Thread

  1. Re: [HACKERS] psql nested queries with 2000+ records

    Vadim B. Mikheev <vadim@sable.krasnoyarsk.su> — 1998-03-21T14:16:07Z

    Coronach wrote:
    > 
    > I have noted with 2000+ records in a table (using a btree unique index on
    > the primary key, btw) performance of a query takes 15+ minutes to respond.
    > 
    > The query is in the structure of this
    > 
    > select foo from bar where foo in (select foo from bar where bazzfoo like
    > 'Word%');
    
    EXPLAIN select foo from bar where bazzfoo like 'Word%';
    
    Is index used ?
    
    Vadim