Uploaded image for project: 'Teiid'
  1. Teiid
  2. TEIID-5680

Improve performance of odata expand operations



    • Type: Enhancement
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: OData
    • Labels:


      Hello Ramesh and Steven,
      this is a follow up regarding an observation in the discussion from TEIID-5643. I thought I open an extra issue for the topic as this seems not to be related to TEIID-5500.
      As you already know, I am using SAPUI5 as frontend for ODATA requests. SAPUI5 supports binding of a user interface control group (like a list with its list items) to a single ODATA path at a time only. If the control group items require additional information which is stored in a different table in the database, I have to expand those parameters in the odata query.
      When doing so, I am running in a serious performance issue with TEIID, which would render the approach of using sapui5 with Teiid infeasible if we cannot find a way to speedup the issue. At the moment I have a small table with entries (table Diary with about 20 records) for which the query extracts several items (just a single one in the example given below). Now the filtered item is expanded with data from a larger table in the database (FDBProducts with about 680.000 records). The whole query takes about 15s to be processed. The query is given as:


      I checked the output when using
      <logger category="org.teiid.CONNECTOR"><level name="TRACE"/></logger>

      This shows the problem. It seems the join operation is not pushed down to the database but the data are rather joined within Teiid. Teiid therefore downloads the entire dataset of the large FDBProducts table, which makes the expand approach infeasible for real world datasets with a certain size. So my question is, if you can modify Teiid to push down the entire join operation to the underlaying database (I assume this would be the most efficient approach), or alternatively query just the items from the table to be joined which where filtered from the first table if the first option is not possible?

      Thanks for your help.


        1. logfile.txt
          151 kB
        2. svc-vdb.xml
          11 kB
        3. test2.txt
          300 kB

          Issue Links



              shawkins Steven Hawkins
              cjohn001 Christoph John (Inactive)
              0 Vote for this issue
              2 Start watching this issue