<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: source_lookup not working as expected for IBM DB2 for LUW in Qlik Replicate</title>
    <link>https://community.qlik.com/t5/Qlik-Replicate/source-lookup-not-working-as-expected-for-IBM-DB2-for-LUW/m-p/2515760#M14221</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/335827"&gt;@Sudharma&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;gt; Does Qlik perform a separate database call for&amp;nbsp;&lt;STRONG&gt;each individual row&lt;/STRONG&gt;&amp;nbsp;that requires a lookup?&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Yes, the call is for &lt;STRONG&gt;each individual row&lt;/STRONG&gt;. However Qlik Replicate &lt;A href="http://TTL%20(Time to Live) is the amount of time the 'COND' return value will be cached. Caching the 'COND' return value improves performance by reducing the frequency that Qlik Replicate needs to access the source/target endpoint. As there is no default, you must specify a TTL value, which can be one of the following:  &amp;lt;SECONDS&amp;gt; - The time to cache the 'COND' return value in seconds. Specify a short caching time (e.g. 3) for data that is frequently updated or a long caching time for data that rarely changes.  'NO_CACHING'- Specify 'NO_CACHING' if you do not want to cache the 'COND' return value. This is recommended for data that is constantly updated (e.g. share prices).  'NO_EXPIRATION'- For data that is never updated (e.g. a street name), specify 'NO_EXPIRATION' to store the Functions return value permanently in the cache." target="_blank" rel="noopener" aria-describedby="audioeye_new_window_message"&gt;cache the return values to improve performance&lt;/A&gt;. The TTL can be configured.&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;gt; When multiple columns use source lookups, referencing either the same or different source tables, how does Qlik manage these lookups for performance? Does it optimize or batch them?&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Qlik Replicate try to optimize them. You may enable the logging to see the source lookup queries.&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;gt; For instance, if we have 5 derived columns using lookups, and 2 of them pull from the same source table, would Qlik fetch the entire necessary data from that source table into memory/cache once and use that for both lookups, or how does that process typically work?&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Personally I do not think Qlik Replicate fetch the entire data, but row by row.&lt;/P&gt;
&lt;P&gt;BTW, the source lookup and target lookup functionalities impact the replication performance as Replicate has to deviery queries to source/target database to fetch specific rows again.&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;
&lt;P&gt;John.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV id="ae_app" data-nosnippet=""&gt;&lt;!--
        Layout, Style or Voice Helpers
    --&gt;
&lt;DIV id="ae_helpers" class="ae-module" style="display: none;"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;!--
        Compliance
    --&gt;
&lt;DIV id="ae_compliance" class="ae-module" style="display: none;"&gt;&lt;!-- For autoSmartRem addNewWindowWarnings div is referenced in an aria-describedby --&gt;
&lt;DIV id="audioeye_new_window_message" style="display: none;"&gt;Opens in new window&lt;/DIV&gt;
&lt;DIV id="audioeye_pdf_message" style="display: none;"&gt;PDF Download&lt;/DIV&gt;
&lt;DIV id="audioeye_word_message" style="display: none;"&gt;Word Download&lt;/DIV&gt;
&lt;DIV id="audioeye_excel_message" style="display: none;"&gt;Excel Download&lt;/DIV&gt;
&lt;DIV id="audioeye_powerpoint_message" style="display: none;"&gt;PowerPoint Download&lt;/DIV&gt;
&lt;DIV id="audioeye_document_message" style="display: none;"&gt;Document Download&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;!--
        Versioning Control Panel if versioning = true !
    --&gt; &lt;!--
        Launcher
    --&gt;  &lt;!-- Toolbar --&gt;  &lt;!--
        Site Menu
    --&gt;  &lt;!--
        Generic Aria Live message container
    --&gt;
&lt;DIV id="ae_enabled_messages" class="ae-blurb-noaudio" aria-relevant="additions" aria-live="assertive"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV data-nosnippet=""&gt;&lt;!-- Symbol definitions --&gt;    &lt;/DIV&gt;
&lt;!-- end #ae_app --&gt;</description>
    <pubDate>Fri, 25 Apr 2025 13:01:30 GMT</pubDate>
    <dc:creator>john_wang</dc:creator>
    <dc:date>2025-04-25T13:01:30Z</dc:date>
    <item>
      <title>source_lookup not working as expected for IBM DB2 for LUW</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/source-lookup-not-working-as-expected-for-IBM-DB2-for-LUW/m-p/2514963#M14165</link>
      <description>&lt;P&gt;Hi I am facing issue while using the source_lookup functionality, after configuring the follwing syntax(plus the syntax of specifing columns using :1 and :2) it is not getting replaced at the runtime.&lt;/P&gt;
&lt;P&gt;Source : IBM DB2 for LUW &lt;BR /&gt;Target : Google AlloyDB for Postgres&lt;/P&gt;
&lt;P&gt;Tried options&lt;/P&gt;
&lt;P&gt;Option -1&lt;/P&gt;
&lt;P&gt;source_lookup(10000,'SCHEMANAME','TABLENAME','COLUMN1','COLUMN_X=? and COLUMN_Y=?','$COLUMN_X, $COLUMN_Y')&lt;/P&gt;
&lt;P&gt;Output-1&lt;/P&gt;
&lt;P&gt;SELECT COLUMN1 FROM "SCHEMANAME"."TABLENAME" WHERE COLUMN_X=? and COLUMN_Y=?&lt;/P&gt;
&lt;P&gt;Option -2&lt;/P&gt;
&lt;P&gt;source_lookup(10000,'SCHEMANAME','TABLENAME','COLUMN1','COLUMN_X=:1 and COLUMN_Y=:2','$COLUMN_X, $COLUMN_Y')&lt;/P&gt;
&lt;P&gt;Output-2&lt;/P&gt;
&lt;P&gt;SELECT COLUMN1 FROM "SCHEMANAME"."TABLENAME" WHERE COLUMN_X=:1 and COLUMN_Y=:2&lt;/P&gt;</description>
      <pubDate>Mon, 21 Apr 2025 11:31:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/source-lookup-not-working-as-expected-for-IBM-DB2-for-LUW/m-p/2514963#M14165</guid>
      <dc:creator>Sudharma</dc:creator>
      <dc:date>2025-04-21T11:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: source_lookup not working as expected for IBM DB2 for LUW</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/source-lookup-not-working-as-expected-for-IBM-DB2-for-LUW/m-p/2514981#M14168</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/335827"&gt;@Sudharma&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P class="" data-start="77" data-end="241"&gt;I'm not sure what issue you're encountering, but multiple input parameters in &lt;CODE data-start="155" data-end="170"&gt;source_lookup()&lt;/CODE&gt; are working fine in my DB2 LUW lab environment. Here's a sample for reference:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="john_wang_0-1745251450056.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/179756i8B65442F470D03E2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="john_wang_0-1745251450056.png" alt="john_wang_0-1745251450056.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The expression is:&amp;nbsp;&lt;FONT face="courier new,courier"&gt;source_lookup(100000,'JOHNW','TESTLOOKUP2','NOTES','ID1=? and ID2=?', $ID1, $ID2)&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="" data-start="243" data-end="341"&gt;Could you please share the error message you're seeing? We'd be happy to help investigate further.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;John.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Apr 2025 16:05:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/source-lookup-not-working-as-expected-for-IBM-DB2-for-LUW/m-p/2514981#M14168</guid>
      <dc:creator>john_wang</dc:creator>
      <dc:date>2025-04-21T16:05:59Z</dc:date>
    </item>
    <item>
      <title>Re: source_lookup not working as expected for IBM DB2 for LUW</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/source-lookup-not-working-as-expected-for-IBM-DB2-for-LUW/m-p/2515033#M14170</link>
      <description>&lt;P&gt;Table 'SCHEMA'.'TABLE' (subtask 1 thread 1) is suspended. Failed to init column calculation expression&lt;/P&gt;
&lt;P&gt;This is the error which I am currently facing&lt;/P&gt;</description>
      <pubDate>Tue, 22 Apr 2025 06:08:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/source-lookup-not-working-as-expected-for-IBM-DB2-for-LUW/m-p/2515033#M14170</guid>
      <dc:creator>Sudharma</dc:creator>
      <dc:date>2025-04-22T06:08:50Z</dc:date>
    </item>
    <item>
      <title>Re: source_lookup not working as expected for IBM DB2 for LUW</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/source-lookup-not-working-as-expected-for-IBM-DB2-for-LUW/m-p/2515221#M14182</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/335827"&gt;@Sudharma&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thanks for the update.&lt;/P&gt;
&lt;P&gt;Please set &lt;STRONG&gt;SOURCE_CAPTURE&lt;/STRONG&gt;/&lt;STRONG&gt;SOURCE_UNLOAD&lt;/STRONG&gt; to &lt;STRONG&gt;Verbose&lt;/STRONG&gt;, re-run the task, then check the task log file to see what's the expression delivered to DB2 LUW Server to understand what's the issue.&lt;/P&gt;
&lt;P&gt;If you require assistance, please open a support ticket and attach the diagnostic packages. Our support team will be more than happy to assist you.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;John.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Apr 2025 16:12:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/source-lookup-not-working-as-expected-for-IBM-DB2-for-LUW/m-p/2515221#M14182</guid>
      <dc:creator>john_wang</dc:creator>
      <dc:date>2025-04-22T16:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: source_lookup not working as expected for IBM DB2 for LUW</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/source-lookup-not-working-as-expected-for-IBM-DB2-for-LUW/m-p/2515753#M14220</link>
      <description>&lt;P&gt;Thank you for the previous assistance. I have a follow-up question regarding Qlik's 'source lookup' functionality and its performance implications during data loading.&lt;/P&gt;
&lt;P&gt;Could you please explain how Qlik handles these lookups? Specifically:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Does Qlik perform a separate database call for &lt;STRONG&gt;each individual row&lt;/STRONG&gt; that requires a lookup?&lt;/LI&gt;
&lt;LI&gt;When multiple columns use source lookups, referencing either the same or different source tables, how does Qlik manage these lookups for performance? Does it optimize or batch them?&lt;/LI&gt;
&lt;LI&gt;For instance, if we have 5 derived columns using lookups, and 2 of them pull from the same source table, would Qlik fetch the entire necessary data from that source table into memory/cache once and use that for both lookups, or how does that process typically work?&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Understanding this from a performance standpoint is crucial for us to plan our data loading activities effectively.&lt;/P&gt;
&lt;P&gt;If you have any relevant documentation on Qlik's lookup, mapping, or join performance behavior, could you please share it. That would be really helpful.&lt;BR /&gt;&lt;BR /&gt;Thanks in Advance&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;DIV id="ae_app" data-nosnippet=""&gt;&lt;!-- Symbol definitions --&gt;    &lt;/DIV&gt;
&lt;!-- end #ae_app --&gt;</description>
      <pubDate>Fri, 25 Apr 2025 11:53:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/source-lookup-not-working-as-expected-for-IBM-DB2-for-LUW/m-p/2515753#M14220</guid>
      <dc:creator>Sudharma</dc:creator>
      <dc:date>2025-04-25T11:53:23Z</dc:date>
    </item>
    <item>
      <title>Re: source_lookup not working as expected for IBM DB2 for LUW</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/source-lookup-not-working-as-expected-for-IBM-DB2-for-LUW/m-p/2515760#M14221</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/335827"&gt;@Sudharma&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;gt; Does Qlik perform a separate database call for&amp;nbsp;&lt;STRONG&gt;each individual row&lt;/STRONG&gt;&amp;nbsp;that requires a lookup?&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Yes, the call is for &lt;STRONG&gt;each individual row&lt;/STRONG&gt;. However Qlik Replicate &lt;A href="http://TTL%20(Time to Live) is the amount of time the 'COND' return value will be cached. Caching the 'COND' return value improves performance by reducing the frequency that Qlik Replicate needs to access the source/target endpoint. As there is no default, you must specify a TTL value, which can be one of the following:  &amp;lt;SECONDS&amp;gt; - The time to cache the 'COND' return value in seconds. Specify a short caching time (e.g. 3) for data that is frequently updated or a long caching time for data that rarely changes.  'NO_CACHING'- Specify 'NO_CACHING' if you do not want to cache the 'COND' return value. This is recommended for data that is constantly updated (e.g. share prices).  'NO_EXPIRATION'- For data that is never updated (e.g. a street name), specify 'NO_EXPIRATION' to store the Functions return value permanently in the cache." target="_blank" rel="noopener" aria-describedby="audioeye_new_window_message"&gt;cache the return values to improve performance&lt;/A&gt;. The TTL can be configured.&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;gt; When multiple columns use source lookups, referencing either the same or different source tables, how does Qlik manage these lookups for performance? Does it optimize or batch them?&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Qlik Replicate try to optimize them. You may enable the logging to see the source lookup queries.&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;gt; For instance, if we have 5 derived columns using lookups, and 2 of them pull from the same source table, would Qlik fetch the entire necessary data from that source table into memory/cache once and use that for both lookups, or how does that process typically work?&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Personally I do not think Qlik Replicate fetch the entire data, but row by row.&lt;/P&gt;
&lt;P&gt;BTW, the source lookup and target lookup functionalities impact the replication performance as Replicate has to deviery queries to source/target database to fetch specific rows again.&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;
&lt;P&gt;John.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV id="ae_app" data-nosnippet=""&gt;&lt;!--
        Layout, Style or Voice Helpers
    --&gt;
&lt;DIV id="ae_helpers" class="ae-module" style="display: none;"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;!--
        Compliance
    --&gt;
&lt;DIV id="ae_compliance" class="ae-module" style="display: none;"&gt;&lt;!-- For autoSmartRem addNewWindowWarnings div is referenced in an aria-describedby --&gt;
&lt;DIV id="audioeye_new_window_message" style="display: none;"&gt;Opens in new window&lt;/DIV&gt;
&lt;DIV id="audioeye_pdf_message" style="display: none;"&gt;PDF Download&lt;/DIV&gt;
&lt;DIV id="audioeye_word_message" style="display: none;"&gt;Word Download&lt;/DIV&gt;
&lt;DIV id="audioeye_excel_message" style="display: none;"&gt;Excel Download&lt;/DIV&gt;
&lt;DIV id="audioeye_powerpoint_message" style="display: none;"&gt;PowerPoint Download&lt;/DIV&gt;
&lt;DIV id="audioeye_document_message" style="display: none;"&gt;Document Download&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;!--
        Versioning Control Panel if versioning = true !
    --&gt; &lt;!--
        Launcher
    --&gt;  &lt;!-- Toolbar --&gt;  &lt;!--
        Site Menu
    --&gt;  &lt;!--
        Generic Aria Live message container
    --&gt;
&lt;DIV id="ae_enabled_messages" class="ae-blurb-noaudio" aria-relevant="additions" aria-live="assertive"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV data-nosnippet=""&gt;&lt;!-- Symbol definitions --&gt;    &lt;/DIV&gt;
&lt;!-- end #ae_app --&gt;</description>
      <pubDate>Fri, 25 Apr 2025 13:01:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/source-lookup-not-working-as-expected-for-IBM-DB2-for-LUW/m-p/2515760#M14221</guid>
      <dc:creator>john_wang</dc:creator>
      <dc:date>2025-04-25T13:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: source_lookup not working as expected for IBM DB2 for LUW</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/source-lookup-not-working-as-expected-for-IBM-DB2-for-LUW/m-p/2515778#M14222</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/335827"&gt;@Sudharma&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The logging to increase to see the lookup queries is Source_Capture. This component is involved with reading from the source endpoint transaction log during the change processing phase of the task.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Dana&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV id="ae_app" data-nosnippet=""&gt;&lt;!--
        Layout, Style or Voice Helpers
    --&gt;
&lt;DIV id="ae_helpers" class="ae-module" style="display: none;"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;!--
        Compliance
    --&gt;
&lt;DIV id="ae_compliance" class="ae-module" style="display: none;"&gt;&lt;!-- For autoSmartRem addNewWindowWarnings div is referenced in an aria-describedby --&gt;
&lt;DIV id="audioeye_new_window_message" style="display: none;"&gt;Opens in new window&lt;/DIV&gt;
&lt;DIV id="audioeye_pdf_message" style="display: none;"&gt;PDF Download&lt;/DIV&gt;
&lt;DIV id="audioeye_word_message" style="display: none;"&gt;Word Download&lt;/DIV&gt;
&lt;DIV id="audioeye_excel_message" style="display: none;"&gt;Excel Download&lt;/DIV&gt;
&lt;DIV id="audioeye_powerpoint_message" style="display: none;"&gt;PowerPoint Download&lt;/DIV&gt;
&lt;DIV id="audioeye_document_message" style="display: none;"&gt;Document Download&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;!--
        Versioning Control Panel if versioning = true !
    --&gt; &lt;!--
        Launcher
    --&gt;  &lt;!-- Toolbar --&gt;  &lt;!--
        Site Menu
    --&gt;  &lt;!--
        Generic Aria Live message container
    --&gt;
&lt;DIV id="ae_enabled_messages" class="ae-blurb-noaudio" aria-relevant="additions" aria-live="assertive"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;!-- Symbol definitions --&gt;    &lt;/DIV&gt;
&lt;!-- end #ae_app --&gt;</description>
      <pubDate>Fri, 25 Apr 2025 16:25:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/source-lookup-not-working-as-expected-for-IBM-DB2-for-LUW/m-p/2515778#M14222</guid>
      <dc:creator>Dana_Baldwin</dc:creator>
      <dc:date>2025-04-25T16:25:06Z</dc:date>
    </item>
  </channel>
</rss>

