<?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: Max number for autonumber in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Max-number-for-autonumber/m-p/1866756#M71561</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thank you both for answers.&lt;/P&gt;
&lt;P&gt;To be more precise, I created HASH_SHIFT_RECEIPT_ID like this&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;SHIFT_ID &amp;amp;'-'&amp;amp; RECEIPT_ID AS&amp;nbsp;HASH_SHIFT_RECEIPT_ID&amp;nbsp;&lt;/P&gt;
&lt;P&gt;RESIDENT table;&lt;/P&gt;
&lt;P&gt;After that I did all needed calculations and at the end of script, I have added this:&lt;/P&gt;
&lt;P&gt;AUTONUMBER&amp;nbsp;HASH_SHIFT_RECEIPT_ID;&lt;/P&gt;
&lt;P&gt;I wanted to make sure that I do autonumber after all calculations were done.&lt;/P&gt;
&lt;P&gt;Do you really think that it is a problem if a number of distinct values is greater than max possible number for autonumber function?&lt;/P&gt;
&lt;P&gt;I really have a lot of data and I think that it is possible. Also, I wanted to add autonumber because of perfomances in frontend.&lt;/P&gt;
&lt;P&gt;Thank you really for all help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Br,&lt;/P&gt;
&lt;P&gt;Nera&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 04 Dec 2021 13:12:57 GMT</pubDate>
    <dc:creator>nerakeglevic</dc:creator>
    <dc:date>2021-12-04T13:12:57Z</dc:date>
    <item>
      <title>Max number for autonumber</title>
      <link>https://community.qlik.com/t5/App-Development/Max-number-for-autonumber/m-p/1866731#M71556</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a problem with autonumber function.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, the problem is that for 2 different original keys we have one autonumber value so the keys in our app are all messed up.&lt;/P&gt;
&lt;P&gt;Important to say is that app has 350 mil rows.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the example:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nerakeglevic_0-1638605529177.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/67918i8FC33F590A41F7BA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nerakeglevic_0-1638605529177.png" alt="nerakeglevic_0-1638605529177.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, field HASH_SHIFT_RECEIPT_ID is autonumber field, originaly was made as SHIFT_ID&amp;amp;'-'&amp;amp; RECAIPT_ID.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help is appreciated.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also tried with autonumberhash128 and 256, same thing happens.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Br,&lt;/P&gt;
&lt;P&gt;Nera&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:26:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Max-number-for-autonumber/m-p/1866731#M71556</guid>
      <dc:creator>nerakeglevic</dc:creator>
      <dc:date>2024-11-15T23:26:46Z</dc:date>
    </item>
    <item>
      <title>Re: Max number for autonumber</title>
      <link>https://community.qlik.com/t5/App-Development/Max-number-for-autonumber/m-p/1866742#M71558</link>
      <description>&lt;P&gt;Hi, if the sentence is "Autonumber(&lt;SPAN&gt;SHIFT_ID&amp;amp;'-'&amp;amp; RECAIPT_ID) as&amp;nbsp;HASH_SHIFT_RECEIPT_ID"&amp;nbsp;it should give different autonuber to each different SHIFT_ID, maybe some steps later in script is relating data in an unexpected way.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can try to test only this portion of code to check values assigned, just add an "exit script;" after creating the autonumber to check it's values.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Dec 2021 11:22:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Max-number-for-autonumber/m-p/1866742#M71558</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2021-12-04T11:22:35Z</dc:date>
    </item>
    <item>
      <title>Re: Max number for autonumber</title>
      <link>https://community.qlik.com/t5/App-Development/Max-number-for-autonumber/m-p/1866745#M71559</link>
      <description>&lt;P&gt;Within the most cases has an autonumberhash() no benefits - so you should consider to change it to a normal autonumber.&lt;/P&gt;
&lt;P&gt;Autonumber() has a second parameter to differentiate multiple autonumber-fields. By applying autonumber as a script-statement it differentiate them automatically. The last measure is further more performant and won't touch any optimized load-approaches.&lt;/P&gt;
&lt;P&gt;Beside this the number of rows has often only a inferior meaning. More important is the distinct number of field-values. In this regard you may rethink if an autonumber - probably as a key between fact-tables and/or even link-tables - is sensible at all. By using a star-scheme it's mostly not needed.&lt;/P&gt;
&lt;P&gt;- Marcus&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Dec 2021 11:35:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Max-number-for-autonumber/m-p/1866745#M71559</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2021-12-04T11:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: Max number for autonumber</title>
      <link>https://community.qlik.com/t5/App-Development/Max-number-for-autonumber/m-p/1866756#M71561</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thank you both for answers.&lt;/P&gt;
&lt;P&gt;To be more precise, I created HASH_SHIFT_RECEIPT_ID like this&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;SHIFT_ID &amp;amp;'-'&amp;amp; RECEIPT_ID AS&amp;nbsp;HASH_SHIFT_RECEIPT_ID&amp;nbsp;&lt;/P&gt;
&lt;P&gt;RESIDENT table;&lt;/P&gt;
&lt;P&gt;After that I did all needed calculations and at the end of script, I have added this:&lt;/P&gt;
&lt;P&gt;AUTONUMBER&amp;nbsp;HASH_SHIFT_RECEIPT_ID;&lt;/P&gt;
&lt;P&gt;I wanted to make sure that I do autonumber after all calculations were done.&lt;/P&gt;
&lt;P&gt;Do you really think that it is a problem if a number of distinct values is greater than max possible number for autonumber function?&lt;/P&gt;
&lt;P&gt;I really have a lot of data and I think that it is possible. Also, I wanted to add autonumber because of perfomances in frontend.&lt;/P&gt;
&lt;P&gt;Thank you really for all help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Br,&lt;/P&gt;
&lt;P&gt;Nera&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Dec 2021 13:12:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Max-number-for-autonumber/m-p/1866756#M71561</guid>
      <dc:creator>nerakeglevic</dc:creator>
      <dc:date>2021-12-04T13:12:57Z</dc:date>
    </item>
    <item>
      <title>Re: Max number for autonumber</title>
      <link>https://community.qlik.com/t5/App-Development/Max-number-for-autonumber/m-p/1866808#M71573</link>
      <description>&lt;P&gt;Hi, I tested with LOAD RecNo() as Field Autogenerate 5e8; AUTONUMBER Field; and it creates 500.000.000 different values. My PC doesn't supports more rows, maybe in a server or PC with more RAM you can do an higher test to check if autonumber starts again.&lt;/P&gt;
&lt;P&gt;Or maybe with:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;InitData:
LOAD RecNo() as Field1 Autogenerate 1e5;
Outer Join
LOAD RecNo() as Field2 Autogenerate 1e5;

FinalTable:
LOAD Field1 &amp;amp;'_'&amp;amp; Field2 as Key;

DROP Table InitData;
AUTONUMBER Key;&lt;/LI-CODE&gt;
&lt;P&gt;And check if Key ends with 1e10 different values, check RAM available and consumed before/while doing this test or use lower values, the ones you need to simulate your different values in real data.&lt;/P&gt;</description>
      <pubDate>Sun, 05 Dec 2021 08:50:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Max-number-for-autonumber/m-p/1866808#M71573</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2021-12-05T08:50:34Z</dc:date>
    </item>
    <item>
      <title>Re: Max number for autonumber</title>
      <link>https://community.qlik.com/t5/App-Development/Max-number-for-autonumber/m-p/1866809#M71574</link>
      <description>&lt;P&gt;Like above mentioned the importance of distinct values relates to fields - to single fields and not any addition of them and in this regard there is no&amp;nbsp;discrepancy between the max. number of distinct field-values and the max. value of an autonumber which is:&amp;nbsp;2,147,483,648 - both is the same (it's the only restriction in Qlik everything else depends on the available resources).&lt;/P&gt;
&lt;P&gt;Applying autonumber to key-fields may have a positive impact on the UI performance for a certain datamodel but using it as a general measure goes in the wrong direction and you may gain the opposite effect. This means it will be always depending on the data-model and data-models which are benefiting from an autonumber might be not the most effective one for the required views and performances.&lt;/P&gt;
&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Sun, 05 Dec 2021 10:12:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Max-number-for-autonumber/m-p/1866809#M71574</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2021-12-05T10:12:10Z</dc:date>
    </item>
  </channel>
</rss>

