473,394 Members | 1,944 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,394 software developers and data experts.

Slow Performance on myTable.Rows.Add(newRow)

I am using a strongly typed dataset with a design time schema. I load
data into the dataset tables from xml. The problem I am having is
after the XML load. The first time I Add a row to a table I get very
slow performance (20-30 second delay). The add to table works but I
get slow performance. Any record adds or deletes after this first add
are fast. It does not seem to matter which table the record add
occurs. I get slow performance on the first add. I have no idea what
is causing this slow performance. In debugging, the time is spent on
the myTable.Rows.Add(newRow) line but I cannot figure out what is
delaying the add. Any thoughts on where I might be going wrong?
Any guidance would be welcomed!
Jerry

Nov 17 '05 #1
3 4579
How much data is in the dataset ?

rawCoder
Nov 17 '05 #2
Very small....from 0 to about 5 records.

Nov 17 '05 #3
I did some more playing around and noticed that in my code I accidently
switched from strong typed dataset references to untyped references.
When I changed the code to use only strongly typed references the
performance is no longer slow. Any thoughts on why this might be the
case?

Nov 17 '05 #4

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

Similar topics

1
by: Tomas R | last post by:
I have a datagrid with a dataview(created from a DataTable) bind to it. It displayes coordinates and I have a toolbarbutton that will create a set of new coordinates just like the existing ones,...
3
by: Diego TERCERO | last post by:
Hi... I'm working on a tool for editing text resources for a family of software product my company produces. These text resources are found in a SQL Server database, in a table called...
2
by: shankar | last post by:
Hi all, This is the way to append the rows from one datatable into another with the same schema. Here Temp and Temp1 are the datatables For Each rows As DataRow In tempTable.Rows Temp1...
0
by: jdipalmajr | last post by:
I am using a strongly typed dataset with a design time schema. I load data into the dataset tables from xml. The problem I am having is after the XML load. The first time I Add a row to a table...
2
by: Steve Amey | last post by:
Hi All I have a DataTable that has the AutoIncrement properties set, but when I add a new row it doesn't use the values I'd expect and is causing an error. For example: ...
1
by: Peter Newman | last post by:
running vb.net 2003 & SQL 2005 I have the following function that is meant to add a row to a table... but i keep getting an error and i dont understand why. Ive spent a couple of days on this...
2
by: mrajanikrishna | last post by:
Hi, I hv a datagrid and WinForm to enter new records. da = new OleDbDataAdapter("select idno,ename,dob from emp",conn); da.fill(ds,"emp"); BindGrid(); In the button click(AddNew),
1
by: Pitmaster | last post by:
Hi there, hoping somebody can help out here. Searched half earth to find a solution but no success yet. The following code doesn't gave any fault or warning but doesn't what it is suppose to do....
0
by: DotNetFAQ | last post by:
I need to insert rows to a database table after processing a piece of an XML file. The XML file would look something like: <Book> <Chapter> <Page> <Paragraph> <Paragraph> </Page> </Chapter>...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...

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.