SV: write to file with quick

Peter Bateman ppfb@hotmail.com
Thu, 16 Sep 2004 16:01:38 -0300


<html><div style='background-color:'><DIV class=RTE>
<P>I would try 'file asc600 designer open append' It may be a machine specific option.</P>
<P>But I didn't see it in the manual though.</P>
<P>Regards,</P>
<P>Peter<BR><BR></P></DIV>
<DIV></DIV>&gt;From: &lt;Jari.Kaljunen@teliasonera.com&gt; 
<DIV></DIV>&gt;To: &lt;powerh-l@lists.sowder.com&gt; 
<DIV></DIV>&gt;Subject: SV: write to file with quick 
<DIV></DIV>&gt;Date: Thu, 16 Sep 2004 12:22:20 +0200 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;Hello again, 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;a little test without reading database still very slow (actually no difference...). It takes 49 s to run this with 100 records on subfile. The result file is 20100 lines. 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;I even wrote a test quiz reading the same subfile and having 200 defines, each including systime and some more, each defined item written on an own line. It takes quiz 3 s to write these 20000 lines. 
<DIV></DIV>&gt; 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;/Jari 
<DIV></DIV>&gt; 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;screen test_writing_file menu stopscreen 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;file *ik006002 designer 
<DIV></DIV>&gt;file asc600 designer 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;temp t_count 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;procedure internal write 
<DIV></DIV>&gt;&nbsp;&nbsp; begin 
<DIV></DIV>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for 200 
<DIV></DIV>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; begin 
<DIV></DIV>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;let t_count = t_count + 1 
<DIV></DIV>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;let rec600 = asc(t_count) &amp; 
<DIV></DIV>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; + " " + asc(systime) + " procedure internal write " 
<DIV></DIV>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;put asc600 reset 
<DIV></DIV>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; end 
<DIV></DIV>&gt;&nbsp;&nbsp; end 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;procedure initialize 
<DIV></DIV>&gt;&nbsp;&nbsp; begin 
<DIV></DIV>&gt;&nbsp;&nbsp;&nbsp;&nbsp;let t_count = 0 
<DIV></DIV>&gt;&nbsp;&nbsp;&nbsp;&nbsp;while retr ik006002 seq 
<DIV></DIV>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;begin 
<DIV></DIV>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;let rec600 = asc(t_count) &amp; 
<DIV></DIV>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; + " " + asc(systime) + " procedure initialize " 
<DIV></DIV>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;put asc600 reset 
<DIV></DIV>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;do internal write 
<DIV></DIV>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;end 
<DIV></DIV>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return 
<DIV></DIV>&gt;&nbsp;&nbsp; end 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;build 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;-----Ursprungligt meddelande----- 
<DIV></DIV>&gt;Från: Johnson, Harold A EDUC:EX 
<DIV></DIV>&gt;[mailto:Harold.A.Johnson@gems1.gov.bc.ca] 
<DIV></DIV>&gt;Skickat: den 15 september 2004 17:50 
<DIV></DIV>&gt;Till: Kaljunen, Jari S. /TSS - Sergel Kredittjänster /+46-8-4526435; 
<DIV></DIV>&gt;powerh-l@lists.sowder.com 
<DIV></DIV>&gt;Ämne: RE: write to file with quick 
<DIV></DIV>&gt; 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;Are you sure the performance problem is with the writing and not with the 
<DIV></DIV>&gt;reading of the original data?&nbsp;&nbsp; I would suspect a problem there instead. 
<DIV></DIV>&gt; 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;-----Original Message----- 
<DIV></DIV>&gt;From: powerh-l-admin@lists.sowder.com 
<DIV></DIV>&gt;[mailto:powerh-l-admin@lists.sowder.com]On Behalf Of 
<DIV></DIV>&gt;Jari.Kaljunen@teliasonera.com 
<DIV></DIV>&gt;Sent: 2004 September 15 8:41 AM 
<DIV></DIV>&gt;To: powerh-l@lists.sowder.com 
<DIV></DIV>&gt;Subject: write to file with quick 
<DIV></DIV>&gt; 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;Hello, 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;I am writing to 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;File: ASC600 
<DIV></DIV>&gt;Organization: SEQUENTIAL 
<DIV></DIV>&gt;Type: RMS 
<DIV></DIV>&gt;Open: ASC600 
<DIV></DIV>&gt;Record Format: Variable 
<DIV></DIV>&gt;Supersede: No 
<DIV></DIV>&gt;Records &amp; Sizes: ASC600 600 bytes 
<DIV></DIV>&gt;Item Type Size Occ Offset 
<DIV></DIV>&gt;REC600 CHARACTER 600 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;in quick using let and put as follows 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;let rec600 = "&lt;HeaderRef2&gt;" + asc(arnr of arenden,8) + asc(parmblnr,2) &amp; 
<DIV></DIV>&gt;+ atgkod of atgkoder + "&lt;/HeaderRef2&gt;" 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;put asc600 reset 
<DIV></DIV>&gt; 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;The performance is very poor. The administrator believs that quick closes 
<DIV></DIV>&gt;and opens the file all the time. 
<DIV></DIV>&gt;Can that be true? 
<DIV></DIV>&gt;What should I do? 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;We are creating an xml-file (it will be about 5 GB) with data from several 
<DIV></DIV>&gt;tables and our solution with qtp needed too many subfiles and sortings using 
<DIV></DIV>&gt;lots of space. 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;/Jari 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;= = = = = = = = = = = = = = = = = = = = = = = = = = = = 
<DIV></DIV>&gt;Mailing list: powerh-l@lists.sowder.com 
<DIV></DIV>&gt;Subscribe: "subscribe" in message body to powerh-l-request@lists.sowder.com 
<DIV></DIV>&gt;Unsubscribe: "unsubscribe &lt;password&gt;" in message body to 
<DIV></DIV>&gt;powerh-l-request@lists.sowder.com 
<DIV></DIV>&gt;http://lists.sowder.com/mailman/listinfo/powerh-l 
<DIV></DIV>&gt;This list is closed, thus to post to the list you must be a subscriber. 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;= = = = = = = = = = = = = = = = = = = = = = = = = = = = 
<DIV></DIV>&gt;Mailing list: powerh-l@lists.sowder.com 
<DIV></DIV>&gt;Subscribe: "subscribe" in message body to powerh-l-request@lists.sowder.com 
<DIV></DIV>&gt;Unsubscribe: "unsubscribe &lt;password&gt;" in message body to powerh-l-request@lists.sowder.com 
<DIV></DIV>&gt;http://lists.sowder.com/mailman/listinfo/powerh-l 
<DIV></DIV>&gt;This list is closed, thus to post to the list you must be a subscriber. 
<DIV></DIV></div><br clear=all><hr>Don't just Search. Find! <a href="http://g.msn.com/8HMBENCA/2749??PS=47575">The new MSN Search: </a> Fast. Clear. Easy.</html>