adding rows dataset slow 
Author Message
 adding rows dataset slow

Anyone know why this code would run slower and slower (lines per second) .
are there any limitations to dataset or adding new rows? any way to
optimize?

add field id to objDataTableFieldIdTrans

vtest = vtest & vFieldId

objDataRowTrans = objDataTableFieldIdTrans.NewRow()

objDataRowTrans("fieldid") = vFieldId

objDataTableFieldIdTrans.Rows.Add(objDataRowTrans)

objDataTableTrans.Rows.Add(objDataRowTrans)



Sat, 30 Oct 2004 22:45:39 GMT  
 adding rows dataset slow

Quote:

>Anyone know why this code would run slower and slower (lines per second) .
>are there any limitations to dataset or adding new rows? any way to
>optimize?

How to measure that the code is running slower and slower?

Quote:
> [code snip]

Let me know how you test the code to get a slower performance.

--
Peter Wu
Microsoft Corporation

This posting is provided "AS IS" with no warranties, and confers no rights.

Are you secure?  For information about the Strategic Technology Protection
Program and to order your FREE Security Tool Kit, please visit
http://www.microsoft.com/security.



Sun, 31 Oct 2004 13:40:08 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Adding new rows to related tables on a dataset

2. Adding a new row to a Dataset

3. HELP with adding new rows to a dataset

4. ADO.NET DataSet.TableName.AddTableNameRow() inserts an extra row

5. adding a table row, without setting same defaults as previous row

6. row heights of table rows added by vba

7. Add row to datatable from datagrid without leaving current row with cursor

8. Add Button to a row by row data display

9. Hot to copy a row inside a dataset

10. Deleting row from dataset

11. How do I get the current row from a dataset

12. Using a Dataset's GetChanges to Find Deleted Rows

 

 
Powered by phpBB® Forum Software