<?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: How generate new sequence id while creating new row? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-generate-new-sequence-id-while-creating-new-row/m-p/2242542#M29328</link>
    <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;You can get the last value of id by having as a lookup table and in the input component in the limit column have 1 as the value and use sort by desc by this way u can get the maxvalue and in the numericsequence("s1",id_column+1,1) will get you the sequence which you want&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 04 Dec 2017 14:28:28 GMT</pubDate>
    <dc:creator>krengan21</dc:creator>
    <dc:date>2017-12-04T14:28:28Z</dc:date>
    <item>
      <title>How generate new sequence id while creating new row?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-generate-new-sequence-id-while-creating-new-row/m-p/2242539#M29325</link>
      <description>Hi All, I'm using Talend Big Data for pulling data from ALM to mongoDB. Before that, i store the domain, project &amp;amp; release in one table with unique levelID incremented by 1 using this Numeric.sequence("s1",1000,1) . First time it is working fine like below, Domain | Project | Release | LevelID D1 | P1 | R1 | 1000 D1 | P1 | R2 | 1001 D2 | P1 | R1 | 1002 D3 | P1 | Default | 1003 D3 | P1 | R1 | 1004 D3 | P1 | R2 | 1005 D4 | P1 | R1 | 1006 Then, before executing the job second time i have added one more release in ALM (D2,P1,R2). Now i executed the job &amp;amp; one more record insert into the DB. but the problem is new record not yet inserted at the end of table. It is inserted after this record (D2 | P1 | R1 | 1002) with levelID - 1003. Like below table. Domain | Project | Release | LevelID D1 | P1 | R1 | 1000 D1 | P1 | R2 | 1001 D2 | P1 | R1 | 1002 D2 | P1 | R2 | 1003 D3 | P1 | Default | 1004 D3 | P1 | R1 | 1005 D3 | P1 | R2 | 1006 D4 | P1 | R1 | 1007 New record replace the levelID with existing &amp;amp; after the new record row, all row levelID's are incremented by 1. I want to insert the new release with levelID at the end of table, if existing table have 6 record means new record should insert as a 7th one. How to generate the sequence levelID at the end of table?</description>
      <pubDate>Sat, 16 Nov 2024 09:42:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-generate-new-sequence-id-while-creating-new-row/m-p/2242539#M29325</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T09:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: How generate new sequence id while creating new row?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-generate-new-sequence-id-while-creating-new-row/m-p/2242540#M29326</link>
      <description>&lt;P&gt;As you've no doubt deduced, sequences do not persist across jobs. &amp;nbsp;At the start of the job, you would need to query the table for the last ID, increment by 1, and put that value into a variable. &amp;nbsp;Use the variable as the start value for your sequence instead of 1000.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2017 00:29:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-generate-new-sequence-id-while-creating-new-row/m-p/2242540#M29326</guid>
      <dc:creator>cterenzi</dc:creator>
      <dc:date>2017-06-02T00:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: How generate new sequence id while creating new row?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-generate-new-sequence-id-while-creating-new-row/m-p/2242541#M29327</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LLooAAG"&gt;@cterenzi&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;Your answer is informative.&lt;/P&gt;
&lt;P&gt;But don't we have any component which stores the last sequence value generated and increment by 1. Similar to Sequence Generator transformation in Informatica.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Keerthi&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2017 13:37:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-generate-new-sequence-id-while-creating-new-row/m-p/2242541#M29327</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-04T13:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: How generate new sequence id while creating new row?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-generate-new-sequence-id-while-creating-new-row/m-p/2242542#M29328</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;You can get the last value of id by having as a lookup table and in the input component in the limit column have 1 as the value and use sort by desc by this way u can get the maxvalue and in the numericsequence("s1",id_column+1,1) will get you the sequence which you want&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2017 14:28:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-generate-new-sequence-id-while-creating-new-row/m-p/2242542#M29328</guid>
      <dc:creator>krengan21</dc:creator>
      <dc:date>2017-12-04T14:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: How generate new sequence id while creating new row?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-generate-new-sequence-id-while-creating-new-row/m-p/2242543#M29329</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKjAAAW"&gt;@krengan21&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Thanks for your response.&lt;/P&gt;
&lt;P&gt;But it degrades the performance if I do&amp;nbsp;lookup on the table to fetch max value.&lt;/P&gt;
&lt;P&gt;Also I want to generate the sequence id for same target table from multiple jobs which might also run in parallel.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Eg:&lt;/STRONG&gt; In informatica, we can have reusable SequenceGenerator which can be called from different mappings at a time to generate SEQID for same target and still generates unique values.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Keerthi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2017 15:49:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-generate-new-sequence-id-while-creating-new-row/m-p/2242543#M29329</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-04T15:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: How generate new sequence id while creating new row?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-generate-new-sequence-id-while-creating-new-row/m-p/2242544#M29330</link>
      <description>&lt;P&gt;Can anyone from Talend Team suggest an alternative for the issue please&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Keerthi&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2017 09:47:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-generate-new-sequence-id-while-creating-new-row/m-p/2242544#M29330</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-08T09:47:09Z</dc:date>
    </item>
  </channel>
</rss>

