Subject | RE: [IBO] Q. Fastest way to insert ~6000 rows |
---|---|
Author | Jason Wharton |
Post date | 2004-05-22T13:19:35Z |
...
sqlAddX->>BeginBusy( true );
sqlAddX->>Prepare();
sqlAddY->>BeginBusy( true );
sqlAddY->>Prepare();
sqlAddZ->>BeginBusy( true );
sqlAddZ->>Prepare();
...
You only need one call to BeginBusy() and EndBusy. They hook in at the
session level, not for each individual dataset, etc. There's no harm in the
above code since it simply increments and decrements the busy indicator
flag, but I don't like seeing code that is not necessary. The methods are
part of the IB_Component class which all IBO data components descend from.
Jason Wharton
www.ibobjects.com
sqlAddX->>BeginBusy( true );
sqlAddX->>Prepare();
sqlAddY->>BeginBusy( true );
sqlAddY->>Prepare();
sqlAddZ->>BeginBusy( true );
sqlAddZ->>Prepare();
...
You only need one call to BeginBusy() and EndBusy. They hook in at the
session level, not for each individual dataset, etc. There's no harm in the
above code since it simply increments and decrements the busy indicator
flag, but I don't like seeing code that is not necessary. The methods are
part of the IB_Component class which all IBO data components descend from.
Jason Wharton
www.ibobjects.com