phoenix-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "xuxc1120" <>
Subject Re: RE: how to use index for this query situation?
Date Thu, 30 Oct 2014 08:22:55 GMT
the where conditions are all have index,e.g (col2=1 and col3=1 .  col1 to coln all have local
when :
select col2 from table where col2=1 and col3=1, it will full scan the table;‍
 only if one condition after "where" clause, it will scan the index_table;

------------------ Original ------------------
From:  "rajeshbabu chintaguntla";<>;
Date:  Thu, Oct 30, 2014 04:12 PM
To:  ""<>; 

Subject:  RE: how to use index for this query situation?

 If you have where condition on non indexed column then we go for full table scan. 
 Can you confirm this?
This e-mail and its attachments contain confidential information from HUAWEI, which 
 is intended only for the person or entity whose address is listed above. Any use of the 
 information contained herein in any way (including, but not limited to, total or partial

 disclosure, reproduction, or dissemination) by persons other than the intended 
 recipient(s) is prohibited. If you receive this e-mail in error, please notify the sender
 phone or email immediately and delete it!
 From: xuxc1120 []
 Sent: Thursday, October 30, 2014 1:20 PM
 To: user
 Subject: how to use index for this query situation?
 each col with local index(col1......coln), 
 when i select data such as :
 select col1,col2 from table where col1="test", the index works,
 but if there are 2 or more conditions after "where" clause,the query will full scan the table;
 is there any way to use index for such query?
View raw message