<?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 to optimize when loading large amount of data from txt file in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-optimize-when-loading-large-amount-of-data-from-txt-file/m-p/790580#M1258821</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the answer Marcus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, in one step, its a little faster, but I need that, because the mid-tier changes sometimes, so I process only the mid-tier, that is fast, and I don't need to read all the txt file again.&lt;/P&gt;&lt;P&gt;Yes I need all the fields (25), this file was created only for Qlikview to read it.&lt;/P&gt;&lt;P&gt;Some fields are dimensions, but time-dimension, so they cannot be linked later.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I didn't test it with different number of rows. I will do it and share the results within a few days.&lt;/P&gt;&lt;P&gt;I dont know how I could split the files using a dimension, lets say: Category, without taking more time than today. could you get in details? Would be something like this??:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;allrows: load * from c:\MyBigFile.txt (...);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;cat1: load * Resident allrows where Category=1; store cat1 into cat1.qvd(qvd) ; drop table cat1;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;cat2: load * Resident allrows where Category=2; store cat2 into cat2.qvd(qvd) ; drop table cat2;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;cat3: load * Resident allrows where Category=3; store cat3 into cat3.qvd(qvd) ; drop table cat3;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;drop table allrows;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And all files used, for load or store, are local.&lt;/P&gt;&lt;P&gt;Thanks again... &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Mar 2015 18:20:56 GMT</pubDate>
    <dc:creator>rogeriogyn</dc:creator>
    <dc:date>2015-03-25T18:20:56Z</dc:date>
    <item>
      <title>How to optimize when loading large amount of data from txt file</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-optimize-when-loading-large-amount-of-data-from-txt-file/m-p/790578#M1258818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif';"&gt;Hi all,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif';"&gt;I need to load a big text file, generate qvd, then a grouped qvd.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif';"&gt;It will be like this:&amp;nbsp; TXT --&amp;gt; QVD --&amp;gt; GroupedQVD&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif';"&gt;The txt is very big, more than 40Gb. (This is mandatory, can't connect to Database)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif';"&gt;So I decided to split the file, and load only 1 mi rows at a time, this way many files will be genarated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif';"&gt;1 TXT --&amp;gt; Many QVD files --&amp;gt; Many Grouped QVD files&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif';"&gt;This is ok.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif';"&gt;The problem is the time to process. &lt;STRONG&gt;It get slower as it create more files&lt;/STRONG&gt;. It takes about 10 hours:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif';"&gt;&amp;nbsp; - First Hour, 16 files generated&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif';"&gt;&amp;nbsp; - Second Hour, 9 files&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif';"&gt;&amp;nbsp; - Third Hour, 7 files&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif';"&gt;&amp;nbsp; - Fourth Hour, 5 files&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif';"&gt;&amp;nbsp; - Fifth Hour, 5 files&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif';"&gt;&amp;nbsp; - and so on....&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;I know this happens because of the parameter &lt;SPAN lang="pt" style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;"header&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt; &lt;/SPAN&gt;&lt;SPAN lang="pt" style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;is&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt; &lt;/SPAN&gt;&lt;STRONG style="font-size: 13.3333330154419px;"&gt;&lt;EM&gt;&lt;SPAN lang="pt" style="font-size: 9pt; font-family: 'Courier New'; color: gray;"&gt;$(cont)&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt; &lt;/SPAN&gt;&lt;SPAN lang="pt" style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;lines"&lt;/SPAN&gt;&lt;SPAN lang="pt"&gt; on load script. &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif';"&gt;Well, is there anything I can do, or any tip, that could optimize this process.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif';"&gt;My code is bellow:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG&gt;&lt;SPAN lang="pt" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt; let&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;EM&gt;&lt;SPAN lang="pt" style="font-size: 9.0pt; font-family: 'Courier New'; color: gray;"&gt;seq&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN lang="pt" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; = 1;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="pt" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;let&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;EM&gt;&lt;SPAN lang="pt" style="font-size: 9.0pt; font-family: 'Courier New'; color: gray;"&gt;step&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN lang="pt" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; = 1000000;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="pt" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;let&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;EM&gt;&lt;SPAN lang="pt" style="font-size: 9.0pt; font-family: 'Courier New'; color: gray;"&gt;cont&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN lang="pt" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; = 0; &lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="pt" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;let&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;EM&gt;&lt;SPAN lang="pt" style="font-size: 9.0pt; font-family: 'Courier New'; color: gray;"&gt;leave&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN lang="pt" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN lang="pt" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;false&lt;/SPAN&gt;&lt;SPAN lang="pt" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;();&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="pt" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;do&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="pt" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;while&lt;/SPAN&gt; &lt;SPAN lang="pt" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;leave&lt;/SPAN&gt;&lt;SPAN lang="pt" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN lang="pt" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;false&lt;/SPAN&gt;&lt;SPAN lang="pt" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;()&lt;BR /&gt; &lt;BR /&gt; tab:&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN lang="pt" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;First&lt;/SPAN&gt; &lt;STRONG&gt;&lt;EM&gt;&lt;SPAN lang="pt" style="font-size: 9.0pt; font-family: 'Courier New'; color: gray;"&gt;$(step)&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN lang="pt" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="pt" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;LOAD&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="pt" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt; * &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN lang="pt" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN lang="pt" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;c:\MyBigFile.&lt;/SPAN&gt;&lt;SPAN lang="pt" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;txt (&lt;/SPAN&gt;&lt;SPAN lang="pt" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;txt&lt;/SPAN&gt;&lt;SPAN lang="pt" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;, &lt;/SPAN&gt;&lt;SPAN lang="pt" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;codepage&lt;/SPAN&gt; &lt;SPAN lang="pt" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;is&lt;/SPAN&gt;&lt;SPAN lang="pt" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; 1252, &lt;/SPAN&gt;&lt;SPAN lang="pt" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;no&lt;/SPAN&gt; &lt;SPAN lang="pt" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;labels&lt;/SPAN&gt;&lt;SPAN lang="pt" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;, &lt;/SPAN&gt;&lt;SPAN lang="pt" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;delimiter&lt;/SPAN&gt; &lt;SPAN lang="pt" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;is&lt;/SPAN&gt;&lt;SPAN lang="pt" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; ';', &lt;/SPAN&gt;&lt;SPAN lang="pt" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;header&lt;/SPAN&gt; &lt;SPAN lang="pt" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;is&lt;/SPAN&gt; &lt;STRONG&gt;&lt;EM&gt;&lt;SPAN lang="pt" style="font-size: 9.0pt; font-family: 'Courier New'; color: gray;"&gt;$(cont)&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt; &lt;SPAN lang="pt" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;lines&lt;/SPAN&gt;&lt;SPAN lang="pt" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;);&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="pt" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;store&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="pt" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; tab &lt;/SPAN&gt;&lt;SPAN lang="pt" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;into&lt;/SPAN&gt;&lt;SPAN lang="pt" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; tab_&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;SPAN lang="pt" style="font-size: 9.0pt; font-family: 'Courier New'; color: gray;"&gt;$(seq)&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN lang="pt" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;.qvd(&lt;/SPAN&gt;&lt;SPAN lang="pt" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;qvd&lt;/SPAN&gt;&lt;SPAN lang="pt" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;);&lt;/SPAN&gt;&lt;SPAN lang="pt" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;STRONG style="font-size: 13.3333330154419px;"&gt;&lt;SPAN lang="pt" style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;LET&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;STRONG&gt;&lt;EM&gt;&lt;SPAN lang="pt" style="font-size: 9.0pt; font-family: 'Courier New'; color: gray;"&gt;seq&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN lang="pt" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; = &lt;/SPAN&gt;&lt;SPAN lang="pt" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;seq&lt;/SPAN&gt;&lt;SPAN lang="pt" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; +1;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="pt" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;LET&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;EM&gt;&lt;SPAN lang="pt" style="font-size: 9.0pt; font-family: 'Courier New'; color: gray;"&gt;cont&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN lang="pt" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; = &lt;/SPAN&gt;&lt;SPAN lang="pt" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;cont&lt;/SPAN&gt;&lt;SPAN lang="pt" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; + &lt;/SPAN&gt;&lt;SPAN lang="pt" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;step&lt;/SPAN&gt;&lt;SPAN lang="pt" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="pt" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;LET&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;EM&gt;&lt;SPAN lang="pt" style="font-size: 9.0pt; font-family: 'Courier New'; color: gray;"&gt;regs&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN lang="pt" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; = &lt;/SPAN&gt;&lt;SPAN lang="pt" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;NoOfRows&lt;/SPAN&gt;&lt;SPAN lang="pt" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;('tab');&lt;BR /&gt; &lt;STRONG style="font-size: 13.3333330154419px;"&gt;&lt;SPAN lang="pt" style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;drop&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt; &lt;/SPAN&gt;&lt;SPAN lang="pt" style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;table&lt;/SPAN&gt;&lt;SPAN lang="pt" style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt; tab;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="pt" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;SPAN lang="pt" style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&lt;/SPAN&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="pt" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="pt" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; (&lt;/SPAN&gt;&lt;SPAN lang="pt" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;regs&lt;/SPAN&gt;&lt;SPAN lang="pt" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN lang="pt" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;step&lt;/SPAN&gt;&lt;SPAN lang="pt" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;) &lt;/SPAN&gt;&lt;SPAN lang="pt" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;then&lt;/SPAN&gt;&lt;SPAN lang="pt" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG style="font-size: 13.3333330154419px;"&gt;&lt;SPAN lang="pt" style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;LET&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;STRONG&gt;&lt;EM&gt;&lt;SPAN lang="pt" style="font-size: 9.0pt; font-family: 'Courier New'; color: gray;"&gt;leave&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN lang="pt" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; = &lt;/SPAN&gt;&lt;SPAN lang="pt" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;true&lt;/SPAN&gt;&lt;SPAN lang="pt" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;();&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="pt" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;endif&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="pt" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="pt" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;loop &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif';"&gt;Rogério&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2026 18:19:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-optimize-when-loading-large-amount-of-data-from-txt-file/m-p/790578#M1258818</guid>
      <dc:creator>rogeriogyn</dc:creator>
      <dc:date>2026-01-26T18:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to optimize when loading large amount of data from txt file</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-optimize-when-loading-large-amount-of-data-from-txt-file/m-p/790579#M1258820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried to load these txt in one step? Against them is only the max. amount of RAM which couldn't be enough. Further do you need all fields from this file and are all these fields really fact-fields or are beside some id's any descriptions to them included - this could be linked later per dimension-tables?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another thought is to increase the number of rows to maybe 5M or 10M then 1M isn't really big. Also the splitting-logic could be changed from a record-level to a content-level with a where-clause to periods or some categories like products or countries and/or to split the data vertically, too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Further if you worked inside a network it will be speed up the loads and stores if you transferred it to a harddisc-drive.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Mar 2015 14:53:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-optimize-when-loading-large-amount-of-data-from-txt-file/m-p/790579#M1258820</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-03-25T14:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to optimize when loading large amount of data from txt file</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-optimize-when-loading-large-amount-of-data-from-txt-file/m-p/790580#M1258821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the answer Marcus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, in one step, its a little faster, but I need that, because the mid-tier changes sometimes, so I process only the mid-tier, that is fast, and I don't need to read all the txt file again.&lt;/P&gt;&lt;P&gt;Yes I need all the fields (25), this file was created only for Qlikview to read it.&lt;/P&gt;&lt;P&gt;Some fields are dimensions, but time-dimension, so they cannot be linked later.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I didn't test it with different number of rows. I will do it and share the results within a few days.&lt;/P&gt;&lt;P&gt;I dont know how I could split the files using a dimension, lets say: Category, without taking more time than today. could you get in details? Would be something like this??:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;allrows: load * from c:\MyBigFile.txt (...);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;cat1: load * Resident allrows where Category=1; store cat1 into cat1.qvd(qvd) ; drop table cat1;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;cat2: load * Resident allrows where Category=2; store cat2 into cat2.qvd(qvd) ; drop table cat2;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;cat3: load * Resident allrows where Category=3; store cat3 into cat3.qvd(qvd) ; drop table cat3;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;drop table allrows;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And all files used, for load or store, are local.&lt;/P&gt;&lt;P&gt;Thanks again... &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Mar 2015 18:20:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-optimize-when-loading-large-amount-of-data-from-txt-file/m-p/790580#M1258821</guid>
      <dc:creator>rogeriogyn</dc:creator>
      <dc:date>2015-03-25T18:20:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to optimize when loading large amount of data from txt file</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-optimize-when-loading-large-amount-of-data-from-txt-file/m-p/790581#M1258822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes I meant something like this - to load everything in one step and in a second loop-step stored it in slices maybe in years as qvd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also it could be helpful to think about some transforming-steps within this load(s). For example if are some from these time-dimensions timestamps the split into a date- and a time-field - per floor() and frac() and maybe throw away the milliseconds - would save a lot of RAM and file-sizes from the qvd and could be faster over all. Maybe such logic could be applied to other fields, too:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="loading" href="https://community.qlik.com/blogs/qlikviewdesignblog/2014/03/11/the-importance-of-being-distinct" title="http://community.qlik.com/blogs/qlikviewdesignblog/2014/03/11/the-importance-of-being-distinct"&gt;http://community.qlik.com/blogs/qlikviewdesignblog/2014/03/11/the-importance-of-being-distinct&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2015 09:26:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-optimize-when-loading-large-amount-of-data-from-txt-file/m-p/790581#M1258822</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-03-26T09:26:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to optimize when loading large amount of data from txt file</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-optimize-when-loading-large-amount-of-data-from-txt-file/m-p/790582#M1258823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rogerio,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are able to load that large txt file into ram in one step, the splitting part could be done faster by:&lt;/P&gt;&lt;P&gt;Loading MyBigFile.txt into QV table Allrows,&lt;/P&gt;&lt;P&gt;Perform any transformation/modelling here if possible&lt;/P&gt;&lt;P&gt;Store MyBigFile into a QVD, drop table Allrows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then loading the large QVD using a where exists with your Category filter field to get a smaller subset of the file.&lt;/P&gt;&lt;P&gt;This would be an optimised QVD load and you'll then be able to store the subset back into a smaller QVD cat1.qvd if needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The advantage of this over doing a resident load for each of your filter category’s is that an optimised QVD load will be faster than a resident load, and when you resident load it will need more RAM to store the copy of data. &lt;/P&gt;&lt;P&gt;Hope that helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2015 14:55:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-optimize-when-loading-large-amount-of-data-from-txt-file/m-p/790582#M1258823</guid>
      <dc:creator>peter_turner</dc:creator>
      <dc:date>2015-03-30T14:55:07Z</dc:date>
    </item>
  </channel>
</rss>

