in reply to Re: Implementing a buffered read-and-insert algorithm
in thread Implementing a buffered read-and-insert algorithm

DBI does not support Bulk Insert
True, though DBD::Sybase (in it's development version, and in 1.05 once it is released) supports an experimental access to Sybase's BLK API, and this can speed up inserts by a tremendous amount.

Michael

  • Comment on Re^2: Implementing a buffered read-and-insert algorithm

Replies are listed 'Best First'.
Re^3: Implementing a buffered read-and-insert algorithm
by mkirank (Chaplain) on Dec 14, 2004 at 11:24 UTC
    Yes I remember reading in the DBI list that you were working on Implementing this. Any Idea if the bulk insert option will be done for the other Databases as well ?
      The problem is that Bulk Load APIs are very database-specific. For DBD::Sybase I managed to squeeze it so that it looks to the DBI user almost as a normal INSERT prepare()/execute() loop, but it might not be so easy for other drivers to make this conform to the normal DBI API.

      And of course if you happen to need it for a particular database nothing's stopping you from coding the appropriate behavior into the driver :-)

      (yes, yes, I know - it can be tricky to understand how the DBI internals work, and how that particular driver implements things...)

      Michael