Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

LoadFromDataSet - how it works?

46 views
Skip to first unread message

T Mel

unread,
Jun 3, 2008, 6:29:58 AM6/3/08
to
Hey all.
I have two datasets (of TMemTableEh type). I fill them using code
like:
for (int j = 0; j < 60000; ++j)
{
mdtTestEh->Append();
mdtTestEhId->Value = j;
mdtTestEhName->Value = "Everybody lies";
mdtTestEhValue->Value = random(100);
mdtTestEhComment->Value = "Ehlib 4.0";
mdtTestEhTime->Value = Now();
mdtTestEh->Post();
}

With the records count == 60000 this procedure lasts about 42 seconds.
But when I'm copying the content of one dataset to another using
LoadFromDataSet, it lasts about 900 ms.
I just can't figure out the big difference, because in LoadFromDataSet
there is a function fetchRecord which is
callin for every record of source dataset.
Thanks in advance for your explanations.

0 new messages