on 08-09-2013 10:09 AM
As far as i know that hana can automatically create a "reverted index" in column table. i also notice in SQL reference guide, that there also "create index" and also we can chage "revert index type (hash/value) " in unique constrains.
so my quesiton is:
1. what is the use case of sentence "create index", whether this index is hana's inverted index or classical DB's index
2. in which case, we should mannually create or build index to replace the one hana automatically create for us.
any hint is very appreciate
Hi William,
Genarally, you do not need to create index or rebuild index for column store table or view, you need to create text index by manually for colume store for text search.
You need to create index for row store table or view by manually, hana does not auto-create index for row store.
Hope this can help you.
Regards,
Jerry
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jerry,
Thanks for your response. does Hana create reverted index for each column in one table.
because from one document i catch these words
"
HANA automatically creates an index for all key columns. Columns with index are marked with ‚Index Type = FULL‛ in the table definition window:
Having an index for all key columns is usually sufficient as queries will typically put filter conditions on key columns. In use cases where filter conditions are on non-key fields and tables have many records, creating an index on this non-key field might improve the performance.
The syntax to create an index is
CREATE INDEX <name> ON <table> (<column>)
"
i guess it maybe a bit out-of-date, but i am also has 2 questions: (1) what is the key column; (2) how can i found these automatically index generated by Hana
very appreciate your kindly help
Regards,
William
Hi William,
Yes, you understanding is right. This is memory store characteristic.
for Q1, different value of every column has own memory location, it is also stored as index, you can check hana structure guide.
for Q2, I am not sure, late I confirmed that I will answered you Q2,sorry. I do not think that we can check or find in indexs table.
Regards,
Jerry
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.