<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1106" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff background="">
<DIV><FONT face=Arial size=2>Hi Ruslan,<BR><BR>----- Original Message ----- 
<BR>From: "Ruslan Zasukhin" &lt;sunshine@public.kherson.ua&gt;<BR>To: 
&lt;valentina-beta@lists.macserve.net&gt;<BR>Sent: Tuesday, June 21, 2005 2:34 
PM<BR>Subject: Re: V4MD request<BR><BR><BR>&gt; On 6/21/05 3:19 PM, 
"info@vallemediatime.com" &lt;info@vallemediatime.com&gt;<BR>&gt; wrote:<BR>&gt; 
<BR>&gt; &gt; Right,<BR>&gt; &gt; now, after this new explanation I have better 
understand some others<BR>&gt; &gt; differences about API-SQL<BR>&gt; &gt; I'm 
still tried my project with more API calls; at beginning (V2.0.1) it<BR>&gt; 
&gt; seems to me that API was more slowly... now is better but not how SQL 
query.<BR>&gt; <BR>&gt; Hmm. You say that for you API way works slower of SQL 
???<BR>&gt; This is not true. <BR>I say that: "for get data from db and show it 
in a grid is more slowly... or more probably I use a non optimizing 
script...<BR>N.B. sprite(n) contains cXtraStringGrid</FONT></DIV>
<DIV><BR><FONT face=Arial size=2>on ProduceTableData (n, rs, table)<BR>myData = 
[]<BR>fieldCount = table.fieldCount<BR>-- GRID COL HEADERS</FONT></DIV>
<DIV><FONT face=Arial size=2>sprite(n).colCount = 
gHeaderList.count<BR>sprite(n).SetRow(0, string(gHeaderList))<BR>-- TABLE 
ROWS<BR>recCount = rs.itemCount<BR>if recCount &gt; 0 then<BR>iter = 
rs.makeNewIterator()<BR>if iter.firstItem() then<BR>repeat with i = 1 to 
recCount<BR>row = []<BR>table.RecId = iter.value<BR>repeat with j = 0 to 
gHeaderList.count<BR>f = table.field(j)<BR>row[symbol(f.name)] = 
f.value<BR>sprite(n).SetCellText(j, i, string(f.value))<BR>end 
repeat<BR>myData[i + 1] = row<BR>iter.nextItem()<BR>-- GRID 
ROWS<BR>sprite(n).rowCount = myData.count<BR>end repeat<BR>end if<BR>end if 
<BR>sprite(n).ColAutoSize()<BR>end<BR><BR>&gt; Aha, may be you repeat mistake 
and try to work with API way thinking about<BR>&gt; features of SQL way as joing 
?<BR>&gt; <BR>&gt; Remember 2 months ago on beta list was discussion about 
this.<BR>yes, you have good memory&nbsp; :-)</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;<BR>&gt; If to use API way correctly it can 
be MANY TIMES faster of SQL way.<BR>&nbsp;<BR>&gt; <BR>&gt; &gt; At last,&nbsp; 
for my project I hope that API is better way, (I have seen some<BR>&gt; &gt; SQL 
problems about the case_insensitive and apostrophe... that you know)<BR>&gt; 
<BR>&gt; I think there is no real problems. Just you need do steps as 
using<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Valentina.EscapeString()<BR>I&nbsp;think 
that if the string change every time&nbsp;is necessary&nbsp;to detect every time 
where insert Escape...</FONT></DIV>
<DIV><BR><FONT face=Arial size=2>&gt; <BR>&gt; &gt; If you have time in the next 
days, months? I ask you:<BR>&gt; &gt; "It would appeal to me to have a doc-table 
that clears just in which<BR>&gt; &gt; circumstances is preferibile to use API 
or SQL"<BR>&gt; <BR>&gt; I have told this several times.<BR>I know,</FONT></DIV>
<DIV><FONT face=Arial size=2>but every a lot is necessary a good ones 
reassumed&nbsp; :-)</FONT></DIV>
<DIV><FONT face=Arial size=2><BR>&gt; Please search beta list for 
April-May.</FONT></DIV>
<DIV><FONT face=Arial size=2>done</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Thank Paolo</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;</DIV>
<DIV><BR>&gt; <BR>&gt; -- <BR>&gt; Best regards,<BR>&gt; <BR>&gt; Ruslan 
Zasukhin<BR>&gt; VP Engineering and New Technology<BR>&gt; Paradigma Software, 
Inc<BR>&gt; <BR>&gt; Valentina - Joining Worlds of Information<BR>&gt; 
http://www.paradigmasoft.com<BR>&gt; <BR>&gt; [I feel the need: the need for 
speed]<BR>&gt; <BR>&gt; <BR>&gt; 
_______________________________________________<BR>&gt; Valentina-beta mailing 
list<BR>&gt; Valentina-beta@lists.macserve.net<BR>&gt; 
http://lists.macserve.net/mailman/listinfo/valentina-beta<BR>&gt; <BR>&gt; 
<BR>&gt; <BR>&gt; -- <BR>&gt; No virus found in this incoming message.<BR>&gt; 
Checked by AVG Anti-Virus.<BR>&gt; Version: 7.0.323 / Virus Database: 267.7.8/22 
- Release Date: 17/06/2005<BR>&gt; <BR>&gt; </FONT></DIV></BODY></HTML>