Path: newssvr20.news.prodigy.com!newsmst01.news.prodigy.com!prodigy.com!logbridge.uoregon.edu!newshub.sdsu.edu!elnk-pas-nf2!elnk-pas-nf1!newsfeed.earthlink.net!border3.nntp.aus1.giganews.com!intern1.nntp.aus1.giganews.com!nntp.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail
NNTP-Posting-Date: Mon, 07 Jul 2003 14:39:52 -0500
Reply-To: "Charles" <u96_cwang@hotmail.com>
From: "Charles" <u96_cwang@hotmail.com>
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>
Subject: Re: Visual C++ and Oracle - increase speed and preformance?
Date: Mon, 7 Jul 2003 15:39:51 -0400
MIME-Version: 1.0
Content-Type: multipart/alternative;
 boundary="----=_NextPart_000_002D_01C3449E.012C5530"
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
Message-ID: <09mdnc96ktQVUZSiXTWJjg@comcast.com>
Lines: 119
NNTP-Posting-Host: 68.39.32.125
X-Trace: sv3-cjTcSXxxa6rYoK1v8vQmPIT+ELrQEXMIODdYlHUe6BbpRqDJGo/Wx5ucRX7gKL3DEIKFGn4HZA0oufI!xF4tw0K1tCMcxEVeM+madTqMDYW0XU5Q4UF+h/BfwZJzy+DyYYvvXLAapdgm
X-Complaints-To: abuse@comcast.net
X-DMCA-Complaints-To: dmca@comcast.net
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.1
Xref: newssvr20.news.prodigy.com comp.databases.oracle:22922 comp.databases.oracle.misc:129106 comp.databases.oracle.server:237085 comp.databases.oracle.tools:82022
------=_NextPart_000_002D_01C3449E.012C5530
Content-Type: text/plain;
 charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

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_002D_01C3449E.012C5530
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.1141" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<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 be=20
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=20
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 want=20
to transfer data between a realtime-database and an Oracle =
database.<BR>&gt;=20
<BR>&gt; I will use Visual C++ but how should I do to get high=20
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; =
NUMBER<BR>&gt;=20
NSMAX&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
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 set=20
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></BODY></HTML>

------=_NextPart_000_002D_01C3449E.012C5530--

