Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
DB Interface Module User's Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

8.1 The Bulk Classes

In Section 4.4.2, "Reading Tables: Class RWDBReader," and Section 5.4, "Inserting Data," we saw how data can be read using RWDBReader and inserted using RWDBInserter. The DB Interface Module also provides the alternative classes RWDBBulkReader and RWDBBulkInserter, which implement reading and writing directly from arrays supplied by an application. If your underlying database supports array processing and your application reads and writes large amounts of data at a time, these classes can increase your application performance relative to RWDBReader and RWDBInserter.

RWDBReaders and RWDBInserters convert the data passing through them to scalar RWDBValues, which manipulate data by value. In contrast, classes RWDBBulkInserter and RWDBBulkReader bind the arrays of values passed through them by reference directly to the underlying vendor API. You must take care that the arrays shifted into RWDBBulkInserters and RWDBBulkReaders remain in scope for the duration of the RWDBBulkInserter or RWDBBulkReader.

The DB Interface Module includes special template class RWDBTBuffer<T> that encapsulates arrays of data for use with RWDBBulkInserters and RWDBBulkReaders.



Previous fileTop of DocumentContentsNo linkNext file

Copyright © Rogue Wave Software, Inc. All Rights Reserved.

The Rogue Wave name and logo, and SourcePro, are registered trademarks of Rogue Wave Software. All other trademarks are the property of their respective owners.
Provide feedback to Rogue Wave about its documentation.