1 Reply Latest reply on Dec 15, 2014 12:07 PM by shawkins

    Materialized view performance question

    kchen007

      We have a user to use the Materialized view to improve performance. for individual query of those tables, it is pretty fast. But he built a view that will join/union of 17 tables(all from the materialized view) and it is not so fast.

      It took him 35 seconds to finish the query, while if he bypass the Materialized view and send the same query to use tables directly from data base, it only took 16 seconds.

       

      Is this because the database implementation of join/union is more efficient? Is there any way to improve this with Materialized view tables from Teiid?

       

      thanks

      Kevin

        • 1. Re: Materialized view performance question
          shawkins

          > Is this because the database implementation of join/union is more efficient? Is there any way to improve this with Materialized view tables from Teiid?

           

          Are their appropriate keys/indexes on the view definitions? If not then most accesses will be full scans.