<?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 Size issues with MS uniqueidentifier? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Size-issues-with-MS-uniqueidentifier/m-p/223304#M75838</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you don't need to display the actual OID value, but only use them for keys, you can turn them into compact keys using the QV autonumber() function.&lt;/P&gt;&lt;P&gt;If you have many &lt;I&gt;different&lt;/I&gt; values for OID, autonumber may save significant space. If you have a lot of rows that have OID, but a small set of distinct OID values, autonumber won't save much space and is probably not worth the trouble.&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Dec 2010 00:12:03 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2010-12-15T00:12:03Z</dc:date>
    <item>
      <title>Size issues with MS uniqueidentifier?</title>
      <link>https://community.qlik.com/t5/QlikView/Size-issues-with-MS-uniqueidentifier/m-p/223303#M75837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;Wondering - my data contains many fields that contain the Microsoft 38 byte OID (generated by newID() function) values.&lt;/P&gt;&lt;P&gt;Does it make sense to try to replace them with shorter QV hash values or will I run into problems when tying to link such fields?&lt;/P&gt;&lt;P&gt;Or is QV anyway using smaller values to optimize on space?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Juerg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Dec 2010 19:06:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Size-issues-with-MS-uniqueidentifier/m-p/223303#M75837</guid>
      <dc:creator />
      <dc:date>2010-12-14T19:06:55Z</dc:date>
    </item>
    <item>
      <title>Size issues with MS uniqueidentifier?</title>
      <link>https://community.qlik.com/t5/QlikView/Size-issues-with-MS-uniqueidentifier/m-p/223304#M75838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you don't need to display the actual OID value, but only use them for keys, you can turn them into compact keys using the QV autonumber() function.&lt;/P&gt;&lt;P&gt;If you have many &lt;I&gt;different&lt;/I&gt; values for OID, autonumber may save significant space. If you have a lot of rows that have OID, but a small set of distinct OID values, autonumber won't save much space and is probably not worth the trouble.&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Dec 2010 00:12:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Size-issues-with-MS-uniqueidentifier/m-p/223304#M75838</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2010-12-15T00:12:03Z</dc:date>
    </item>
    <item>
      <title>Size issues with MS uniqueidentifier?</title>
      <link>https://community.qlik.com/t5/QlikView/Size-issues-with-MS-uniqueidentifier/m-p/223305#M75839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob&lt;/P&gt;&lt;P&gt;Thanks for you jumping in, but I still have my doubts about the autonumber function(s).&lt;/P&gt;&lt;P&gt;Assume I have a 100'000 article table and a selling table averaging about 1000 sales per article in my database.&lt;/P&gt;&lt;P&gt;The article table has a uniqueidentifyer as PK (34 bytes), the sales table points to the article by this FK.&lt;/P&gt;&lt;P&gt;Is it save now to say in QV&lt;/P&gt;&lt;P&gt;load autonumber(articleOID) as ArticleID ... from articles&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;load autonumber(articleOID) as ArticleID ... from sales&lt;/P&gt;&lt;P&gt;to get the equivalent of the SQLServer FK constraint and the QV autojoin on the ArticleID? Any possible mismatch will cancel my project.&lt;/P&gt;&lt;P&gt;I can't really see how this is done. Do I really get the same autonumber value back for the same uniqueidentifier?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Juerg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Dec 2010 21:15:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Size-issues-with-MS-uniqueidentifier/m-p/223305#M75839</guid>
      <dc:creator />
      <dc:date>2010-12-15T21:15:46Z</dc:date>
    </item>
    <item>
      <title>Size issues with MS uniqueidentifier?</title>
      <link>https://community.qlik.com/t5/QlikView/Size-issues-with-MS-uniqueidentifier/m-p/223306#M75840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;maier_con wrote: Do I really get the same autonumber value back for the same uniqueidentifier?&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Yes, you do. As long as all the calls to autonumber() are in the same script run. Consider the following sequence of calls to autonumber()&lt;/P&gt;&lt;P&gt;Param Return&lt;BR /&gt;ZZRT 0&lt;BR /&gt;ABEDF 1&lt;BR /&gt;RESTG 2&lt;BR /&gt;ZZRT 0&lt;BR /&gt;JKLM 3&lt;/P&gt;&lt;P&gt;The first value passed to autonumber() gets assigned 0, 1 to the next and so on. When a previously "seen" value (ZZRT) is passed, it gets the same value (0) as the first time it was passed. This is a lookup function, not a hash function. Different param values will &lt;STRONG&gt;always&lt;/STRONG&gt; give different return values, and the same param value will &lt;STRONG&gt;always&lt;/STRONG&gt; give the same return value.&lt;/P&gt;&lt;P&gt;Each unique 34 byte PK will require about 40 bytes of storage. So 100k keys will require about 4MB of symbol space in RAM. That's not much. The autonumbered version would require no symbol space saving you the 4MB. Using autonumber() will make the script run slower, but potentially make the UI run slightly faster.&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Dec 2010 23:40:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Size-issues-with-MS-uniqueidentifier/m-p/223306#M75840</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2010-12-15T23:40:56Z</dc:date>
    </item>
    <item>
      <title>Size issues with MS uniqueidentifier?</title>
      <link>https://community.qlik.com/t5/QlikView/Size-issues-with-MS-uniqueidentifier/m-p/223307#M75841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob&lt;/P&gt;&lt;P&gt;As it will use only 4 MB for the key in the article table the sales table will use 4 GB just for the reference?&lt;/P&gt;&lt;P&gt;Juerg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Dec 2010 11:05:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Size-issues-with-MS-uniqueidentifier/m-p/223307#M75841</guid>
      <dc:creator />
      <dc:date>2010-12-17T11:05:27Z</dc:date>
    </item>
    <item>
      <title>Size issues with MS uniqueidentifier?</title>
      <link>https://community.qlik.com/t5/QlikView/Size-issues-with-MS-uniqueidentifier/m-p/223308#M75842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Juerg,&lt;/P&gt;&lt;P&gt;My understanding is that both tables will use a reference -- to the 4MB of values, which are stored in a separate symbol table.&lt;/P&gt;&lt;P&gt;Autonumber values are sequential integers. Sequential integers take advantage of a special optimization where the state array (selected on/off) can also represent the values, so no symbol space is required.&lt;/P&gt;&lt;P&gt;If I got this wrong I hope someone with more internals knowledge (like Håkan or Jay) will correct me.&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jan 2011 20:00:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Size-issues-with-MS-uniqueidentifier/m-p/223308#M75842</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2011-01-03T20:00:45Z</dc:date>
    </item>
  </channel>
</rss>

