on 09-09-2021 5:50 PM
Dear expert,
I created a CDS View using Eclipse. I attach the source code in the file cds-view.txt.
Is there the possibility(for performance issue) to create a secondary index(non-unique) on that?
For example now there is a primary key on TravelUuid. I like to create a secondary index on field AgencyId.
I check at the following link that it talks about the @catalog.index annotation but I'm not able to find it in eclipse to put inside to my code. Anybody can provide some example?
Thanks and regards,
Davide Grosso
As with any type of view, there is no option to create an index on the view object. Indexes are defined on entity/table objects only.
So, if there is indeed the need for a single column index (which is a rare case for HANA column store tables), then it needs to be defined on the base table that provides this column to the view.
Before doing this, though, I recommend to make sure it will actually improve performance. In many cases, a secondary index does not lead to better query performance but will definitively double the memory requirements for the indexed column.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.