R
Ryan K
Hi,
I have a DataSet that contains a Master and a Child DataTable.
If I need to repeatedly get child DataRows from the child DataTable, what is
quickest?
Option A:
Use DataTable.Select.
Option B:
Use GetChildRows on a DataRow in the Master DataTable.
(And have the relationship defined of course)
First assuming both tables less than a few hundred rows. Would it effect it
if there were more? (Is it time consuming for the DS to maintain the
relationship with big tables?)
What if the tables are repeatedly cleared and populated thousands on times?
(I am worried the internal maintenance that a DataSet does to maintain the
indexes for a DataRelation would be time consuming.) With really small
rowcount I assume a For..Next loop works fastest?
Thanks in advance for any help,
Ryan
I have a DataSet that contains a Master and a Child DataTable.
If I need to repeatedly get child DataRows from the child DataTable, what is
quickest?
Option A:
Use DataTable.Select.
Option B:
Use GetChildRows on a DataRow in the Master DataTable.
(And have the relationship defined of course)
First assuming both tables less than a few hundred rows. Would it effect it
if there were more? (Is it time consuming for the DS to maintain the
relationship with big tables?)
What if the tables are repeatedly cleared and populated thousands on times?
(I am worried the internal maintenance that a DataSet does to maintain the
indexes for a DataRelation would be time consuming.) With really small
rowcount I assume a For..Next loop works fastest?
Thanks in advance for any help,
Ryan