Path: newssvr20.news.prodigy.com!newsmst01.news.prodigy.com!prodigy.com!in.100proofnews.com!in.100proofnews.com!cycny01.gnilink.net!cyclone1.gnilink.net!wn14feed!wn13feed!wn12feed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi_feed4!attbi.com!rwcrnsc51.ops.asp.att.net.POSTED!not-for-mail
Reply-To: "Jim Kennedy" <kennedy-down_with_spammers@comcast.net>
From: "Jim Kennedy" <kennedy-down_with_spammers@comcast.net>
Newsgroups: comp.database.oracle,comp.databases.oracle,comp.databases.oracle.misc,comp.databases.oracle.server,comp.databases.oracle.tools
References: <Fw8Ba.19250$_2.494@news1.bredband.com> <09mdnc96ktQVUZSiXTWJjg@comcast.com>
Subject: Re: Visual C++ and Oracle - increase speed and preformance?
Lines: 148
MIME-Version: 1.0
Content-Type: multipart/alternative;
 boundary="----=_NextPart_000_015C_01C344C1.77FC34A0"
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <goqOa.2299$sY2.2021@rwcrnsc51.ops.asp.att.net>
NNTP-Posting-Host: 12.224.116.189
X-Complaints-To: abuse@comcast.net
X-Trace: rwcrnsc51.ops.asp.att.net 1057632908 12.224.116.189 (Tue, 08 Jul 2003 02:55:08 GMT)
NNTP-Posting-Date: Tue, 08 Jul 2003 02:55:08 GMT
Organization: Comcast Online
Date: Tue, 08 Jul 2003 02:55:08 GMT
Xref: newssvr20.news.prodigy.com comp.databases.oracle:22925 comp.databases.oracle.misc:129120 comp.databases.oracle.server:237110 comp.databases.oracle.tools:82027
------=_NextPart_000_015C_01C344C1.77FC34A0
Content-Type: text/plain;
 charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

use oci interface and in it use the array interface or use OO4O and use =
the array interface.  Also use bind variables. Tt would make it much =
faster and more scalable. ODBC is going to be a dog.

--=20
Jim
"Charles" <u96_cwang@hotmail.com> wrote in message =
news:09mdnc96ktQVUZSiXTWJjg@comcast.com...
  3000 rows is not a big quantity. You can load it into VC program =
memory, a linked list for example, and "asynchronously" load into =
Oracle. The connection method can be embedded SQL or ODBC.

  Charles

  "Nicke Verenius" <nicholaus_verenius@hotmail.com> wrote in message =
news:Fw8Ba.19250$_2.494@news1.bredband.com...
  > Hi,
  >=20
  > I want to transfer data between a realtime-database and an Oracle =
database.
  >=20
  > I will use Visual C++ but how should I do to get high preformance.
  >=20
  > I must update 3000 rows in an Oracle table:
  >=20
  > TAGS - TABLE
  > ------------------------
  > NTAGID(PK)  NUMBER:
  > SNAME           NUMBER
  > NSMAX           NUMBER
  > NSMIN            NUMBER
  > NSCURRENT  NUMBER
  > NSALARM      NUMBER
  > UPD_DATE     DATE
  >=20
  > Now, I use ODBC from my Visual C++ service:
  >=20
  > I  loop through a recordset:
  >=20
  > recordset (select ntagid from tags); // about 3000 rows.
  >     currval =3D get_realtimedata(ntagid); // This comes from a =
realtime
  > database, not Oracle
  >     update tags set nscurrent =3D currval where ntagid =3D =
recordset(ntagid);
  >    recordsetMoveNext;
  > loop;
  >=20
  > How should I increase preformance?? Should I use ODBC??
  >=20
  > /nick
  >=20
  >=20
  >=20
  > 
------=_NextPart_000_015C_01C344C1.77FC34A0
Content-Type: text/html;
 charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1170" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT size=3D2>use oci interface and in it use the array interface =
or use=20
OO4O and use the array interface.&nbsp; Also use bind variables. Tt =
would make=20
it much faster and more scalable. ODBC is going to be a =
dog.</FONT></DIV><FONT=20
size=3D2></FONT>
<DIV><BR>-- </DIV>
<DIV>Jim<BR>"Charles" &lt;<A=20
href=3D"mailto:u96_cwang@hotmail.com">u96_cwang@hotmail.com</A>&gt; =
wrote in=20
message <A=20
href=3D"news:09mdnc96ktQVUZSiXTWJjg@comcast.com">news:09mdnc96ktQVUZSiXTW=
Jjg@comcast.com</A>...</DIV>
<BLOCKQUOTE=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV><FONT face=3DArial size=3D2>3000 rows is not a big quantity. You =
can load it=20
  into VC program memory, a linked list for example, and=20
  <STRONG>"asynchronously"</STRONG> load into Oracle. The connection =
method can=20
  be embedded SQL or ODBC.</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>Charles</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>"Nicke Verenius" &lt;</FONT><A=20
  href=3D"mailto:nicholaus_verenius@hotmail.com"><FONT face=3DArial=20
  size=3D2>nicholaus_verenius@hotmail.com</FONT></A><FONT face=3DArial =
size=3D2>&gt;=20
  wrote in message </FONT><A=20
  href=3D"news:Fw8Ba.19250$_2.494@news1.bredband.com"><FONT face=3DArial =

  size=3D2>news:Fw8Ba.19250$_2.494@news1.bredband.com</FONT></A><FONT =
face=3DArial=20
  size=3D2>...</FONT></DIV><FONT face=3DArial size=3D2>&gt; Hi,<BR>&gt; =
<BR>&gt; I=20
  want to transfer data between a realtime-database and an Oracle=20
  database.<BR>&gt; <BR>&gt; I will use Visual C++ but how should I do =
to get=20
  high preformance.<BR>&gt; <BR>&gt; I must update 3000 rows in an =
Oracle=20
  table:<BR>&gt; <BR>&gt; TAGS - TABLE<BR>&gt; =
------------------------<BR>&gt;=20
  NTAGID(PK)&nbsp; NUMBER:<BR>&gt;=20
  SNAME&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  NUMBER<BR>&gt;=20
  NSMAX&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  NUMBER<BR>&gt;=20
  =
NSMIN&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  NUMBER<BR>&gt; NSCURRENT&nbsp; NUMBER<BR>&gt;=20
  NSALARM&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NUMBER<BR>&gt;=20
  UPD_DATE&nbsp;&nbsp;&nbsp;&nbsp; DATE<BR>&gt; <BR>&gt; Now, I use ODBC =
from my=20
  Visual C++ service:<BR>&gt; <BR>&gt; I&nbsp; loop through a =
recordset:<BR>&gt;=20
  <BR>&gt; recordset (select ntagid from tags); // about 3000 =
rows.<BR>&gt;=20
  &nbsp;&nbsp;&nbsp; currval =3D get_realtimedata(ntagid); // This comes =
from a=20
  realtime<BR>&gt; database, not Oracle<BR>&gt; &nbsp;&nbsp;&nbsp; =
update tags=20
  set nscurrent =3D currval where ntagid =3D recordset(ntagid);<BR>&gt; =
&nbsp;&nbsp;=20
  recordsetMoveNext;<BR>&gt; loop;<BR>&gt; <BR>&gt; How should I =
increase=20
  preformance?? Should I use ODBC??<BR>&gt; <BR>&gt; /nick<BR>&gt; =
<BR>&gt;=20
  <BR>&gt; <BR>&gt; </FONT></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_015C_01C344C1.77FC34A0--

