Customer Portal

Lookup Join on Persistent Table missing records that should be joined

Comments 4

  • Avatar
    Pedro Vazquez Rosario
    0
    Comment actions Permalink
    Hi,

    The reason it’s not working is because, lookup tables are initialized at the start of the graphs’ run. Since the Subgraph is a separate process that data will not be able to be available for the LookUpJoin to compare. I would recommend that you utilize Joblfows or a simple solution would be to eliminate the subgraph and place the LookupJoin in the same graph.
  • Avatar
    geoffrey.quinby
    0
    Comment actions Permalink
    Hi Mr. Rosario,

    Thanks very much for the response, but I'm not sure I understand.

    I thought the idea of the Persistent lookup table was that it could be made available to other graph processes, since the data was stored in a .db file. If the data were not available to any child processes, wouldn't that mean that none of the records would be joined? I'm still able to fetch most of the data from the Persistent Lookup table using the LookupJoin component, except for the seemingly random records that are lost.
  • Avatar
    Pedro Vazquez Rosario
    0
    Comment actions Permalink
    Hi,

    The reason you are able to fetch a certain amount of records is because of the commit value in your look up table. Let’s say you have 150 records and that commit value is 100 (the default value) the 100th record is added to the lookup table, but the other 50 records will be committed after the end of the graph process and will not be available for the subgraph. In other words, every time 100 records are added to the lookup table (CloverETL uses a temporary buffer that stores the records and then commits it all at once into the lookup table to improve performance) the process will be committed. You have two possible workarounds in this case:

    • Decrease the Commit Value = 1 (this may cause performance issues)

    • Use CTL code to get the first value of the lookup table (this will trigger the commit)

    I have taken the liberty of creating a ticket in our system to possibly improve this in future version, you can see more details here.
  • Avatar
    geoffrey.quinby
    0
    Comment actions Permalink
    That helps a lot, thank you very much for your input!

Please sign in to leave a comment.