<?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: Straight table dimension + text color + timestamp = memory bloat? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Straight-table-dimension-text-color-timestamp-memory-bloat/m-p/542380#M202709</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The color expression can be costly because of the if statement. Perhaps a pick-match combination works better, but no guarantees, it could perform even worse. pick(match(client_id,'xyz')+1,black(),red())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should probably split request_time in a date and a time field, e.g. request_date: floor(reuest_time) and request_time: frac(request_time). Because the separate fields will have a much lower cardinality they should take up far less space (meaning less ram usage).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another thing that might help is making sure request_duration is stored in the qvd file as a numeric value instead of a dual value. Perhaps request_time (without the date part now) should get the same treatment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;f you're using a straight table you can use client_id as an expression and drag the column to where you'd like it to show, e.g. as the first column in the table.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Aug 2013 18:02:02 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2013-08-28T18:02:02Z</dc:date>
    <item>
      <title>Straight table dimension + text color + timestamp = memory bloat?</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-table-dimension-text-color-timestamp-memory-bloat/m-p/542379#M202708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've run into an issue trying to display the fields of a table, similar to the following, in a straight table (using V11.0.11440.0 SR2):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MyTable:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;1 as count,&lt;/P&gt;&lt;P&gt;client_id,&lt;/P&gt;&lt;P&gt;request,&lt;/P&gt;&lt;P&gt;status,&lt;/P&gt;&lt;P&gt;request_time, // timestamp&lt;/P&gt;&lt;P&gt;request_duration // interval&lt;/P&gt;&lt;P&gt;FROM $(vQVDFile) (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have &lt;STRONG&gt;client_id&lt;/STRONG&gt;, &lt;STRONG&gt;request&lt;/STRONG&gt;, &lt;STRONG&gt;status&lt;/STRONG&gt;, &lt;STRONG&gt;request_time&lt;/STRONG&gt; and &lt;STRONG&gt;request_duration&lt;/STRONG&gt; as the Dimensions, and &lt;STRONG&gt;sum($(vSetAnalysis)count)&lt;/STRONG&gt; as the Expression.&lt;/P&gt;&lt;P&gt;I want to highlight a certain &lt;STRONG&gt;client_id&lt;/STRONG&gt;, so I've added a Text Color expression (=if(client_id='xyz',red(),black())) to the &lt;STRONG&gt;client_id&lt;/STRONG&gt; Dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;But when I add the Text Color expression, the normal 7GB memory footprint of the app (as viewed thru Windows Task Manager) jumps up to 54GB!&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thru trial and error I've determined that the problem is related to the fact that I have Text Color on a Dimension and at least one field that has dual internal representations (request_time and request_duration).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Observations:&lt;/P&gt;&lt;P&gt;- Without the Text Color expression, there's no memory problem but then there's obviously no highlighted client_id either.&lt;/P&gt;&lt;P&gt;- If I convert the client_id from being a chart dimension to being an expression, the problem also goes away but then the ordering of the output isn't desirable. Additionally the resulting table doesn't look good..we really need client_id to be the leading dimension.&lt;/P&gt;&lt;P&gt;- If I disable both the request_time AND request_duration fields, the problem goes away. If EITHER is enabled the problem returns. It doesn't matter if they're enabled as Dimensions or Expressions, it's all problematic.&lt;/P&gt;&lt;P&gt;- Just for fun&amp;nbsp; I've tried disabling request_time and then replacing request_duration with a pure numeric Expression value that I format as an Interval in the chart properties... the problem also appears in this scenario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this a bug or "expected behavior" of QlikView and is there a way to accomplish what I'm trying to do (highlighted client_id dimension, inclusion of request_time and request_duration) without the memory issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Aug 2013 14:22:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-table-dimension-text-color-timestamp-memory-bloat/m-p/542379#M202708</guid>
      <dc:creator />
      <dc:date>2013-08-28T14:22:14Z</dc:date>
    </item>
    <item>
      <title>Re: Straight table dimension + text color + timestamp = memory bloat?</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-table-dimension-text-color-timestamp-memory-bloat/m-p/542380#M202709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The color expression can be costly because of the if statement. Perhaps a pick-match combination works better, but no guarantees, it could perform even worse. pick(match(client_id,'xyz')+1,black(),red())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should probably split request_time in a date and a time field, e.g. request_date: floor(reuest_time) and request_time: frac(request_time). Because the separate fields will have a much lower cardinality they should take up far less space (meaning less ram usage).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another thing that might help is making sure request_duration is stored in the qvd file as a numeric value instead of a dual value. Perhaps request_time (without the date part now) should get the same treatment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;f you're using a straight table you can use client_id as an expression and drag the column to where you'd like it to show, e.g. as the first column in the table.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Aug 2013 18:02:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-table-dimension-text-color-timestamp-memory-bloat/m-p/542380#M202709</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-08-28T18:02:02Z</dc:date>
    </item>
  </channel>
</rss>

