473,765 Members | 2,024 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

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" <ni************ ****@hotmail.co mwrote in message news:Fw******** ********@news1. bredband.com...
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_realtimedat a(ntagid); // This comes from a realtime
database, not Oracle
update tags set nscurrent = currval where ntagid = recordset(ntagi d);
recordsetMoveNe xt;
loop;

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

/nick

Jun 27 '08 #1
0 1117

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
3314
by: Markku Uttula | last post by:
I think I'm doing something wrong. I'm able to connect to Oracle just fine, execute queries and all, but I'm having serious problems with the speed :( For example, the following PHP-script on my machine executes about 6 seconds: <? $db_conn = ocilogon("my_username", "my_password", "my_database"); $loop_count = 1000;
4
563
by: Kevin | last post by:
Hello All, I wondering if anyone has encountered the same issue with using PySQL. This is my first time using this DB so this preformance may be typical. I'm reading an ASCII file through PyParse that contains about 1.3Meg of Float data. 8000 Triangles (3 Vertexes and 1 Normal). This file reads fine the PC has a utilization of 50% for Python. Then when it starts to write the Database, the PC Util drops to 1-2% and it
0
6720
by: Anbazhagan | last post by:
Hi, I'm using Oracle 9i with Spatial to store geographical data. It has only hundreds of features with very minimal veritices. I use OO4O (Oracle InProc) as component to access the oracle server from Visual Basic. It seems that it takes more time to retrieve the information stored. Some time back I, used same kind of data in Oracle 8 (without spatial). It worked fine with OLE DB provider.
2
8027
by: and | last post by:
hi everyone, i am using oracle 9.2.0 and i have written a simple jdbc java program to insert a record within a for loop to a table using jdbc thin driver(refer to the bottom of this email for the sql statement). Using the same program, when i insert 20000 records from 1 process, time is about 100 seconds. However, when i insert 1000 records from 20 process, time is about 1000 seconds, which is 10 times. Since i am developing a OLTP system...
29
2028
by: noid droid | last post by:
Hi. I've not used C# yet but just ran across a premonition from 2 years ago saying that C# would render C++ obsolete by this time. Has it? Have most corporate developers migrated to C#? Is C++ used for new development or just legacy apps? What about non corporate developers? Microsoft really likes to hype the hell out of their stuff and often they let it fall by the wayside. Like MFC.
2
1698
by: db55 | last post by:
I am trying to import 6M records in a table from an Oracle 10g database into a SQL Server 2000 database. After importing 1.5M+ records I get the following error: Ora-01555: snapshot too old: rollback segment number 129 with name "_SYSSMU129$" too small How can I speed up the import process between Oracle and SQL Server? The database box I'm using has 12GB of memory and 1.5 TB of space. It
56
4958
by: Ashish Patankar | last post by:
I want to migrate my Oracle 10g database to Db2. I want some documentation for the comparision between these to databases. I also want to know which features of Oracle 10g are supported by Db2 and which are not supported.
2
1194
by: SUBRATA1967 | last post by:
My computer is Intel 945GL with 2.66Ghz processor and 256 MB RAM. But my systems becomes very slow when load Oracle 9i. How can I increase the processing speed after loading Oracle 9i. ?
3
19344
by: | last post by:
I am looking to purchase a laptop and wonder what I should be looking for to increase the speed of Visual Studio 2008, it seems very slow on the pc I have now (Pentium 4 CPU 3 ghz, 1gig ram). For the cpu, I'm looking atthe Intel Core 2 Duos, and am wondering what difference would I see between the following choices (for a $75 difference in price, is it worth it) 2.0 ghz/800mhz fsb, 2mb cache 2.2 ghz/800mhz fsb, 4mb cache
0
9568
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9399
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10007
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9835
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8832
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5276
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3924
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3532
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2806
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.