<?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: Dual(Field,recno()) to improve search in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Dual-Field-recno-to-improve-search/m-p/23487#M1583</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used 10M rows and the text field was 16 bytes.&amp;nbsp; Very simple data model created with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Hash128(RecNo()) as Key,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'A' &amp;amp; chr(65+mod(RecNo(),20)) as Company,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ceil(rand() * 1000) as Value,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RecNo() as RecId&lt;/P&gt;&lt;P&gt;AutoGenerate 1e7;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;June2018 release.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com" rel="nofollow" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://qlikviewcookbook.com" rel="nofollow" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Jul 2018 16:04:22 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2018-07-23T16:04:22Z</dc:date>
    <item>
      <title>Dual(Field,recno()) to improve search</title>
      <link>https://community.qlik.com/t5/App-Development/Dual-Field-recno-to-improve-search/m-p/23479#M1575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Search performance. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have been having trouble with a 56m distinct value text field (14 characters) on 8 core server with 128gb ram .&amp;nbsp; I decided to try using the dual function on the field&amp;nbsp; dual(field,recno()) and it seemed to have significantly improved the search time for a single value . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE:&amp;nbsp; This is not a Key field.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone used this method before and are there any drawbacks?&amp;nbsp; The field shows now in the preview in data modeler as an integer/number but we can still search based on the alpha numeric value which is required .&amp;nbsp; I am pleasantly surprised it worked but want to make sure there is no reason we should be concerned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And, yes , this is not a typical use of Qlik but its what we have to do.&amp;nbsp; Users need to search for an individual item to return only 1 to 4 rows of data and there are 56m and growing distinct values in this field.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any information would be greatly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2018 20:21:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dual-Field-recno-to-improve-search/m-p/23479#M1575</guid>
      <dc:creator>dyy</dc:creator>
      <dc:date>2018-06-13T20:21:28Z</dc:date>
    </item>
    <item>
      <title>Re: Dual(Field,recno()) to improve search</title>
      <link>https://community.qlik.com/t5/App-Development/Dual-Field-recno-to-improve-search/m-p/23480#M1576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Dual() function will turn off any indexing on the text field and only index the field on the numeric part. You will see that the text will be shown unsorted in a filter pane. So that might be a disadvantage.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My theory on why it is faster to have dual is that the Qlik engine when it doesn't have a text index it will have to turn to a raw full text search and I think that is pretty optimized since it needs to have that to do a complete wildcard search anyway. So an indexed text field that has no numeric part will use the text index that is obviously much slower than the non-indexed text search of a dual field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need to get a dual field with sorted text you can make sure that when you get the field from an external database you make sure that it is sorted in the first place as it is loaded in the load script and associated with a RecNo(). Then it will be sorted correctly alphabetically as well as being a Dual-field when used in the Qlik application. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2018 10:03:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dual-Field-recno-to-improve-search/m-p/23480#M1576</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2018-06-14T10:03:04Z</dc:date>
    </item>
    <item>
      <title>Re: Dual(Field,recno()) to improve search</title>
      <link>https://community.qlik.com/t5/App-Development/Dual-Field-recno-to-improve-search/m-p/23481#M1577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Peter.  This is very helpful and good news.&lt;/P&gt;&lt;P&gt;I will work on the sort order .   I am thinking we can use the sort order in the filter pane object in sense to sort by choosing alphabetically if that doesn’t slow down the search&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2018 11:42:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dual-Field-recno-to-improve-search/m-p/23481#M1577</guid>
      <dc:creator>dyy</dc:creator>
      <dc:date>2018-06-14T11:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: Dual(Field,recno()) to improve search</title>
      <link>https://community.qlik.com/t5/App-Development/Dual-Field-recno-to-improve-search/m-p/23482#M1578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where are you searching?&amp;nbsp; In a list object or smart search?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2018 23:16:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dual-Field-recno-to-improve-search/m-p/23482#M1578</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2018-07-19T23:16:38Z</dc:date>
    </item>
    <item>
      <title>Re: Dual(Field,recno()) to improve search</title>
      <link>https://community.qlik.com/t5/App-Development/Dual-Field-recno-to-improve-search/m-p/23483#M1579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rob&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We were using a list box.&amp;nbsp; We escalated this to R&amp;amp;D and they know the issue and have come up with a resolution.&amp;nbsp; I do not have the details but once I do I will share if possible. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My colleague tested this same search in Qlikview and it works great.&amp;nbsp; It is a Sense issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jul 2018 14:16:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dual-Field-recno-to-improve-search/m-p/23483#M1579</guid>
      <dc:creator>dyy</dc:creator>
      <dc:date>2018-07-23T14:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: Dual(Field,recno()) to improve search</title>
      <link>https://community.qlik.com/t5/App-Development/Dual-Field-recno-to-improve-search/m-p/23484#M1580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Petter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jul 2018 14:16:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dual-Field-recno-to-improve-search/m-p/23484#M1580</guid>
      <dc:creator>dyy</dc:creator>
      <dc:date>2018-07-23T14:16:51Z</dc:date>
    </item>
    <item>
      <title>Re: Dual(Field,recno()) to improve search</title>
      <link>https://community.qlik.com/t5/App-Development/Dual-Field-recno-to-improve-search/m-p/23485#M1581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tested on Qlik Sense and could not reproduce the problem, so it does sound like a bug/design issue. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jul 2018 15:47:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dual-Field-recno-to-improve-search/m-p/23485#M1581</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2018-07-23T15:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: Dual(Field,recno()) to improve search</title>
      <link>https://community.qlik.com/t5/App-Development/Dual-Field-recno-to-improve-search/m-p/23486#M1582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you tell me how many rows you used and how long was the alphanum text field?&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jul 2018 15:59:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dual-Field-recno-to-improve-search/m-p/23486#M1582</guid>
      <dc:creator>dyy</dc:creator>
      <dc:date>2018-07-23T15:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: Dual(Field,recno()) to improve search</title>
      <link>https://community.qlik.com/t5/App-Development/Dual-Field-recno-to-improve-search/m-p/23487#M1583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used 10M rows and the text field was 16 bytes.&amp;nbsp; Very simple data model created with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Hash128(RecNo()) as Key,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'A' &amp;amp; chr(65+mod(RecNo(),20)) as Company,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ceil(rand() * 1000) as Value,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RecNo() as RecId&lt;/P&gt;&lt;P&gt;AutoGenerate 1e7;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;June2018 release.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com" rel="nofollow" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://qlikviewcookbook.com" rel="nofollow" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jul 2018 16:04:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dual-Field-recno-to-improve-search/m-p/23487#M1583</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2018-07-23T16:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: Dual(Field,recno()) to improve search</title>
      <link>https://community.qlik.com/t5/App-Development/Dual-Field-recno-to-improve-search/m-p/23488#M1584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;we had no trouble with that few records as well.  But with 62 million UNIQUE values and only one column in the data model we did.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We even used a simulation to create 62 million UNIQUE values with 14 character alpha numeric on our qlik hub and had same issue as on the clients hub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Values must be unique&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Debbie Pyykkonen&lt;/P&gt;&lt;P&gt;Senior Implementation Consultant&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Email:  Debbie.Pyykkonen@qlik.com&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Qlik&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;qlik.com&amp;lt;http://www.qlik.com/&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jul 2018 16:10:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dual-Field-recno-to-improve-search/m-p/23488#M1584</guid>
      <dc:creator>dyy</dc:creator>
      <dc:date>2018-07-23T16:10:25Z</dc:date>
    </item>
    <item>
      <title>Re: Dual(Field,recno()) to improve search</title>
      <link>https://community.qlik.com/t5/App-Development/Dual-Field-recno-to-improve-search/m-p/23489#M1585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Debbie,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My example was 10 million unique 16 byte strings.&amp;nbsp; Hardly a "few values".&amp;nbsp; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/laugh.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jul 2018 16:23:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dual-Field-recno-to-improve-search/m-p/23489#M1585</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2018-07-23T16:23:07Z</dc:date>
    </item>
    <item>
      <title>Re: Dual(Field,recno()) to improve search</title>
      <link>https://community.qlik.com/t5/App-Development/Dual-Field-recno-to-improve-search/m-p/23490#M1586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also, it was determined NOT to be a bug but working as designed.&amp;nbsp; However, they have a fix for clients like mine who are using qlik from bottom up, not top down to work around this issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jul 2018 16:24:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dual-Field-recno-to-improve-search/m-p/23490#M1586</guid>
      <dc:creator>dyy</dc:creator>
      <dc:date>2018-07-23T16:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: Dual(Field,recno()) to improve search</title>
      <link>https://community.qlik.com/t5/App-Development/Dual-Field-recno-to-improve-search/m-p/23491#M1587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Most definitely not a few records :-).&amp;nbsp; But 62 million unique values did cause this issue .&amp;nbsp; The biggest problem was not the time to search but the fact that the "spinning wheel" was not present while it was searching.&amp;nbsp; So the user did not know it was actually working behind the scenes.&amp;nbsp; R&amp;amp;D did create a fix for this as well.&amp;nbsp; I am waiting to get the full details on the fix from my team.&amp;nbsp; I am on a new project now so not involved anymore&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jul 2018 16:26:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dual-Field-recno-to-improve-search/m-p/23491#M1587</guid>
      <dc:creator>dyy</dc:creator>
      <dc:date>2018-07-23T16:26:33Z</dc:date>
    </item>
  </channel>
</rss>

