-
1. Re: Creating Index for Internal Materialized Table
rareddy Jan 24, 2012 10:49 AM (in response to j3hntan)John,
If you create the primary key on the view that is used as index on the mat view table. Teiid keeps a separate copy of indexes so that it can do fast searches. Also, think about turning the materialization on the joined view table rather than the source view table for this to be more effective. When you are creating the source view materialized table, you are creating replicated source table, however you will go through the join logic every time, where as when you materialize the joined view table you only incur that very first time and any queries over it will be faster.
HTH
Ramesh..
-
2. Re: Creating Index for Internal Materialized Table
shawkins Jan 24, 2012 11:11 AM (in response to rareddy)Putting an index (either unique or non-unique) on the view in Designer will also create an index for the materialized view. Only simple ordered indexes are supported. You cannot for instance create hash, bit, or function based indexes at this time. The internal logic will select the appropriate index to use based upon the query criteria and order by.
Steve