473,395 Members | 2,795 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Vb.Net/SQL slowdown

Hi!

I have a massive SQL 2000 database that needs records extracted into
another database. so I write a VB.Net (2005) program that simply
queries the records I need, populates a new record in the new database
and so on. There's no data transformation, it's a direct record to
record copy.

So I run this thing and numbers are flying by at a rate of about 30
records per second. Within an hour, it gradually slows down to one
record every 30 seconds and there's hundreds of thousands of records
left.

Why is it doing this? It starts off great and slows down more and
more as time goes on. There's nothing complicated about it. I had
this problem under VB6 as well.

Any ideas because this is completely non-functional.

Thanks!

Nov 27 '07 #1
7 1521
Is it not possible to simply do a SQL INSERT INTO/SELECT FROM query?
That would be the fastest way.
"Tom wilson" <ye*******@nospam.comwrote in message
news:8k********************************@4ax.com...
Hi!

I have a massive SQL 2000 database that needs records extracted into
another database. so I write a VB.Net (2005) program that simply
queries the records I need, populates a new record in the new database
and so on. There's no data transformation, it's a direct record to
record copy.

So I run this thing and numbers are flying by at a rate of about 30
records per second. Within an hour, it gradually slows down to one
record every 30 seconds and there's hundreds of thousands of records
left.

Why is it doing this? It starts off great and slows down more and
more as time goes on. There's nothing complicated about it. I had
this problem under VB6 as well.

Any ideas because this is completely non-functional.

Thanks!
Nov 27 '07 #2
On Nov 27, 2:17 pm, Tom wilson wrote:
Hi!

I have a massive SQL 2000 database that needs records extracted into
another database. so I write a VB.Net (2005) program that simply
queries the records I need, populates a new record in the new database
and so on. There's no data transformation, it's a direct record to
record copy.

So I run this thing and numbers are flying by at a rate of about 30
records per second. Within an hour, it gradually slows down to one
record every 30 seconds and there's hundreds of thousands of records
left.

Why is it doing this? It starts off great and slows down more and
more as time goes on. There's nothing complicated about it. I had
this problem under VB6 as well.

Any ideas because this is completely non-functional.

Thanks!
You could always just write a SQL DTS service. Much faster.
Nov 27 '07 #3
Perhaps but this application needs to do this on its own. The
database gets so large that certain data needs to be extracted by the
user via an automated selection process. But the thing is, VB.Net
seems entirely incapable of reading and writing a large amount of
records. The language is a dead end it seems. I don't understand why
it won't read/write database records without dragging into a complete
stall.

Thanks for the reply.
On Tue, 27 Nov 2007 15:58:29 -0500, "Arthur Dent"
<hi*********************@yahoo.comwrote:
>Is it not possible to simply do a SQL INSERT INTO/SELECT FROM query?
That would be the fastest way.
"Tom wilson" <ye*******@nospam.comwrote in message
news:8k********************************@4ax.com.. .
>Hi!

I have a massive SQL 2000 database that needs records extracted into
another database. so I write a VB.Net (2005) program that simply
queries the records I need, populates a new record in the new database
and so on. There's no data transformation, it's a direct record to
record copy.

So I run this thing and numbers are flying by at a rate of about 30
records per second. Within an hour, it gradually slows down to one
record every 30 seconds and there's hundreds of thousands of records
left.

Why is it doing this? It starts off great and slows down more and
more as time goes on. There's nothing complicated about it. I had
this problem under VB6 as well.

Any ideas because this is completely non-functional.

Thanks!
Nov 27 '07 #4
Tom,

Does the table being written to have a bunch of indexes that need to be
constantly updated by the DBMS as you add rows?

Or a bunch of constraints that must be checked as rows are added?

Kerry Moorman
"Tom wilson" wrote:
Hi!

I have a massive SQL 2000 database that needs records extracted into
another database. so I write a VB.Net (2005) program that simply
queries the records I need, populates a new record in the new database
and so on. There's no data transformation, it's a direct record to
record copy.

So I run this thing and numbers are flying by at a rate of about 30
records per second. Within an hour, it gradually slows down to one
record every 30 seconds and there's hundreds of thousands of records
left.

Why is it doing this? It starts off great and slows down more and
more as time goes on. There's nothing complicated about it. I had
this problem under VB6 as well.

Any ideas because this is completely non-functional.

Thanks!

Nov 27 '07 #5
Tom wilson <ye*******@nospam.comwrote in
news:4i********************************@4ax.com:
Perhaps but this application needs to do this on its own. The
database gets so large that certain data needs to be extracted by the
user via an automated selection process. But the thing is, VB.Net
seems entirely incapable of reading and writing a large amount of
records. The language is a dead end it seems. I don't understand why
it won't read/write database records without dragging into a complete
stall.
What about SSIS or DTS?

Do you have samples of the queries your running? Maybe your transaction log
is blowing up... or you're leaking memory?
Nov 27 '07 #6
Are u using a Transaction?

Have you thought about using a linked server and executing the insert via
the backend instead of having to pulling the data to the client and then
sending it back to another server. Typically servers are placed closer to
each other w/ a faster network. Moving the load to the server would be the
best option. If you would be interested in trying the linked server
approach, reply to the group.

30 records/second is poor performance.

Regards,

Trevor Benedict
MCSD

"Tom wilson" <ye*******@nospam.comwrote in message
news:8k********************************@4ax.com...
Hi!

I have a massive SQL 2000 database that needs records extracted into
another database. so I write a VB.Net (2005) program that simply
queries the records I need, populates a new record in the new database
and so on. There's no data transformation, it's a direct record to
record copy.

So I run this thing and numbers are flying by at a rate of about 30
records per second. Within an hour, it gradually slows down to one
record every 30 seconds and there's hundreds of thousands of records
left.

Why is it doing this? It starts off great and slows down more and
more as time goes on. There's nothing complicated about it. I had
this problem under VB6 as well.

Any ideas because this is completely non-functional.

Thanks!

Nov 28 '07 #7
Hi Tom,

Do you let the user type them in or do you have any kind of code to do this
in an automatic way. In the first case maybe do the users become tired.

Just kidding, however your question is like this answer in my opinion.

While everybody gives you good advices, are the giving solutions where there
are probably hundred other ones and is it just gambling.

I guess that you use some code to do this (should be less than 20 lines)
therefore show that part to us, then we can maybe real help you.

Cor

Nov 28 '07 #8

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

Similar topics

5
by: Trevor Perrin | last post by:
After running a simple loop around 100-200 million times, there's a speed drop of about a factor of 7. This happens within several minutes (on a 1.7 Ghz machine), so it's not that hard to see. ...
4
by: Hallvard B Furuseth | last post by:
I have a program which starts by reading a lot of data into various dicts. When I moved a function to create one such dict from near the beginning of the program to a later time, that function...
3
by: Nicke | last post by:
Hi, I've used vb.net for 3 hours(!) now and have probably a very easy question. In my VB6 programs I use For Each Cell in Range... very often which not seems to work in vb.net. Ex. Dim Cell...
8
by: Sebastian Werner | last post by:
Howdy, I currently develop the javascript toolkit qooxdoo (http://qooxdoo.sourceforge.net), some of you heard it already. We have discovered a slowdown on Internet Explorers performance when...
0
by: vojtech | last post by:
Hi, I would like to remark on a problem described by Stephen Livesey almost 3 years ago, about the slowdown he had experienced with an upload of several millions of rows. ...
22
by: Bradley | last post by:
Has anyone else noticed this problem? I converted the back-end to A2000 and the performance problem was fixed. We supply a 97 and 2000 version of our software so we kept the backend in A97 to make...
3
by: tac-tics | last post by:
I have an application written in jython which has to process a number of records. It runs fine until it gets to about 666 records (and maybe that's a sign), and then, it's performance and...
0
by: guillaume weymeskirch | last post by:
Hello everybody, To test the python 2.5 garbage collector, I wrote a trivial script allocating dummy objects of various sizes, then forgetting them in a loop. The garbage collector seems...
0
by: skip | last post by:
guillaumeBut I've noticed a near linear slowdown of the execution : guillaumeafter a few minutes - and several millions of allocated and guillaumefreed objects, each iteration take more and more...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
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,...

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.