How do i speed up inserting a large amount of data into a very large table

How do i speed up inserting a large amount of data into a very large table

Post by J » Fri, 06 Dec 2002 03:37:19



Sometimes it is quicker to drop the indexes, do the inserts, and then create
the indexes again.

This of course depends on what else may be happening on your server at the
same time.



> Fastest is to use DTS, BCP or BULK INSERT commands. It depends on the
source
> of your data.Try loading the data after dropping the indexes. The above
tool
> support a table lock option. Use that, as it further improves performance.
> --
> HTH,
> Vyas, MVP (SQL Server)

> http://vyaskn.tripod.com/



> > We have a performance problem when inserting many rows into a table that
> > already keeps a very large amount of data on an SQL Server 2000 system.
> The
> > table has four indexes (but no CLUSTERED).

> > Currently i am using an ADO Recordset Batchupdate but this has not been
an
> > improvement compared with the previously used precompiled INSERT
statement
> > using an ADO Command object.

> > A few day ago i tied to improve performance using the Index Tuning
Wizard
> > but as a result our application was much slower than before. Tuning
> indexes
> > does not seem to be a solution.

> > Does anyone have an idea what can be done to improve the server
> performance?
> > Which is the fastest way to get a large amount of data into a table?

> > Thanks in advance
> > Robert Knabe

 
 
 

1. How do i speed up inserting a large amount of data into a very large table

We have a performance problem when inserting many rows into a table that
already keeps a very large amount of data on an SQL Server 2000 system. The
table has four indexes (but no CLUSTERED).

Currently i am using an ADO Recordset Batchupdate but this has not been an
improvement compared with the previously used precompiled INSERT statement
using an ADO Command object.

A few day ago i tied to improve performance using the Index Tuning Wizard
but as a result our application was much slower than before. Tuning indexes
does not seem to be a solution.

Does anyone have an idea what can be done to improve the server performance?
Which is the fastest way to get a large amount of data into a table?

Thanks in advance
Robert Knabe

2. PL/SQL vs Generic Dynamic SQL packages

3. Virtual Listview for SPEED when populating large amount of data

4. About Quadbase

5. Inserting large amounts of data into SQL

6. syscomments corrupt

7. Inserts of large amounts of data.

8. SQL Server Licensing Question

9. Moving large amount of data: ( INSERT INTO ? )

10. How do i improve performance when inserting large amount of data

11. INSERT Large amount of Data (image) problem ...

12. Constantly deleting and inserting large amount of data

13. Insert large amount of data