in reply to Re: Batch Loading of data through DBI
in thread Batch Loading of data through DBI

Another way to make an import go faster is - if your database allows it - to temporarily turn off logging.
  • Comment on Re^2: Batch Loading of data through DBI

Replies are listed 'Best First'.
Re^3: Batch Loading of data through DBI
by thor (Priest) on Jan 21, 2005 at 23:12 UTC
    Another (safer) way is to drop all but the clustered index. When you're done, re-create all the other indicies. In most situations though, it's not worth the extra overhead.

    thor

    Feel the white light, the light within
    Be your own disciple, fan the sparks of will
    For all of us waiting, your kingdom will come

Re^3: Batch Loading of data through DBI
by jfroebe (Parson) on Jan 21, 2005 at 21:06 UTC

    Turning off logging should only be done on initial loads of the database. Turning off logging runs the risk of corruption if something should go wrong during the bulk copy of the data. IMHO, the slight performance improvement of loading the data is not worth the risk.

    Jason L. Froebe

    Team Sybase member

    No one has seen what you have seen, and until that happens, we're all going to think that you're nuts. - Jack O'Neil, Stargate SG-1