Re: Explain plan over primary key column

2015-09-30 Thread Sumit Nigam
: James Heather To: user@phoenix.apache.org Sent: Wednesday, September 30, 2015 8:08 PM Subject: Re: Explain plan over primary key column I don't see why it wouldn't be able to use the index for that. In any case, if that's what "explain" is telling you, I think you

Re: Explain plan over primary key column

2015-09-30 Thread James Heather
olumns in the query are a part of it. Sorry again. Sumit *From:* James Heather *To:* user@phoenix.apache.org *Sent:* Wednesday, September 30, 2015 7:58 PM *Subject:* Re: Explain plan over primary key column Yup On 30

Re: Explain plan over primary key column

2015-09-30 Thread Sumit Nigam
index is still used. I thought that global indexes are only used when all columns in the query are a part of it. Sorry again.Sumit From: James Heather To: user@phoenix.apache.org Sent: Wednesday, September 30, 2015 7:58 PM Subject: Re: Explain plan over primary key column Yup

Re: Explain plan over primary key column

2015-09-30 Thread James Heather
s used? *From:* James Heather *To:* user@phoenix.apache.org *Sent:* Wednesday, September 30, 2015 7:49 PM *Subject:* Re: Explain plan over primary key column You're asking for every single row of the table, so nothing's going to avoid a full scan. The index would

Re: Explain plan over primary key column

2015-09-30 Thread Sumit Nigam
2015 7:49 PM Subject: Re: Explain plan over primary key column You're asking for every single row of the table, so nothing's going to avoid a full scan. The index wouldn't help. On 30/09/15 15:18, Sumit Nigam wrote: Hi, I have a table as: CREATE TABLE EXP (ID BI

Re: Explain plan over primary key column

2015-09-30 Thread James Heather
You're asking for every single row of the table, so nothing's going to avoid a full scan. The index wouldn't help. On 30/09/15 15:18, Sumit Nigam wrote: Hi, I have a table as: CREATE TABLE EXP (ID BIGINT NOT NULL PRIMARY KEY, TEXT VARCHAR); If I explain the select: EXPLAIN SELECT ID FROM EX