dbTalk Databases Forums  

Re: Visual C++ and Oracle - increase speed and preformance?

comp.databases.oracle comp.databases.oracle


Discuss Re: Visual C++ and Oracle - increase speed and preformance? in the comp.databases.oracle forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
ajk
 
Posts: n/a

Default Re: Visual C++ and Oracle - increase speed and preformance? - 11-02-2007 , 08:29 AM






On Mon, 7 Jul 2003 15:39:51 -0400, "Charles" <u96_cwang (AT) hotmail (DOT) com>
wrote:

Quote:
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 (AT) hotmail (DOT) com> wrote

Hi,

I want to transfer data between a realtime-database and an Oracle database.

I will use Visual C++ but how should I do to get high preformance.

I must update 3000 rows in an Oracle table:

TAGS - TABLE
------------------------
NTAGID(PK) NUMBER:
SNAME NUMBER
NSMAX NUMBER
NSMIN NUMBER
NSCURRENT NUMBER
NSALARM NUMBER
UPD_DATE DATE

Now, I use ODBC from my Visual C++ service:

I loop through a recordset:

recordset (select ntagid from tags); // about 3000 rows.
currval = get_realtimedata(ntagid); // This comes from a realtime
database, not Oracle
update tags set nscurrent = currval where ntagid = recordset(ntagid);
recordsetMoveNext;
loop;

How should I increase preformance?? Should I use ODBC??

/nick




My experience is that using ODBC is quite slow, I would recommend
using the OCCI library instead.

http://www.oracle.com/technology/tec...cci/index.html

BR/Anders.


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.