2 Replies Latest reply on Aug 4, 2014 3:03 PM by shawkins

    Teiid execution query

    madhurika_sharma

      I have a table in View Model which is created from three different databases.For example: select * from d1.table1,d2.table1,d3.table1 where d1.col1=d2.col1 .

      This is taking too much time to execute .Is it a way to check the query which Teiid is executing ?How many queries will be running on Teiid ?

        • 1. Re: Teiid execution query
          markaddleman

          Teiid supplies a very detailed query plan.  The easiest way to obtain it is through the Eclipse Database Explorer from the Teiid Designer plugin.  You can execute the query and obtain a graphical or textual plan.  Alternatively, the docs describe a way here https://docs.jboss.org/author/display/teiid88final/Query+Plans

           

          My observation is that you're doing a cross join with d3 and that normally is a pretty expensive operation.  Of course, the queries that are pushed to your sources may also be inefficient.

          1 of 1 people found this helpful
          • 2. Re: Teiid execution query
            shawkins

            Yes, as Mark is saying you can expect this query to be quite expensive just from having a cross join.  You'll also want to look at adding cardinality and other costing information or hints that will enable Teiid to use federated join optimizations.