由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Database版 - Import 50GB data from multiple .txt file into MS SQL database
相关主题
sql server 怎么关掉logwhy this Trigger hang the Process *** thanks thanks
How to make import (>200M) faster?求助一个MSSQL 数据update问题
a simple question about T-SQLImport data from excel into sql server 2000
请问MySQL 可以快速处理table有1亿条数据么?Bulk merge? (转载)
外行请教SQL Server 2005 Exec( )
SSIS import and export wizard 搞不定了从SQL Server 2000升级到SQL Server 2005
请问 sql server Script 执行的问题SQL Server 2008 Exp 怎么export DBF file?
SSIS package import excel, 只能load 255 rows要面试SQL Server工作,请教高手
相关话题的讨论汇总
话题: sql话题: data话题: import话题: files话题: file
进入Database版参与讨论
1 (共1页)
l****u
发帖数: 84
1
I am going to import very large stock market data from multiple .txt files (
over 3000 files) into sql database. I was wondering which is the most
efficient way to do that?
I used bulk insert and it takes me forever time (estimated 7 days)
B*****g
发帖数: 34098
2
SSIS

(

【在 l****u 的大作中提到】
: I am going to import very large stock market data from multiple .txt files (
: over 3000 files) into sql database. I was wondering which is the most
: efficient way to do that?
: I used bulk insert and it takes me forever time (estimated 7 days)

j*****n
发帖数: 1781
3
No dude, SSIS is slower than bcp...
if I am doing this, i'd like to have dba to extend the db size to at least
100GB more with multiple data files on different disks; also i'd like to set
up db to simple recovery model, and set bcp commitment to every 500,000
rows; oh remember remove all indexes from the table first.
anything else?

【在 B*****g 的大作中提到】
: SSIS
:
: (

p********l
发帖数: 279
4
Pretty much these things. Specifying batchsize is important.

set

【在 j*****n 的大作中提到】
: No dude, SSIS is slower than bcp...
: if I am doing this, i'd like to have dba to extend the db size to at least
: 100GB more with multiple data files on different disks; also i'd like to set
: up db to simple recovery model, and set bcp commitment to every 500,000
: rows; oh remember remove all indexes from the table first.
: anything else?

c*******t
发帖数: 55
5
1. Bulk Insert is faster than SSIS if you turn on the table lock.
2. If you can make the data in all files are sorted, you can save the time
on index rebuild.
3. No matter Simple Recovery or Bulk Mode, SQL Server will start writing
huge data to log file after the first file, the size usually be 2~3 times
the data you are importing, so I suggest you shrink the log file after each
bulk-insert each file. (MSSQL will not write too much data to the log file
if the table is empty)
i***c
发帖数: 301
6
write a class,do sql insert only
j*******7
发帖数: 6300
7
I think the most important is to load the files in parallel, other
considerations include:
set DB recovery mode to be Simple
pre-allocate database files and optimize the disk system
are you going to load to a single table? can consider a partitioned design
perhaps.
G********d
发帖数: 593
8
maybe because of tons of reason
RAID?
recovery model?
even with SSIS, it should not take such long time...
check your log/locks and if you have profiler running you can monitor it.
c*******o
发帖数: 8869
9
SAS is a way to go

(

【在 l****u 的大作中提到】
: I am going to import very large stock market data from multiple .txt files (
: over 3000 files) into sql database. I was wondering which is the most
: efficient way to do that?
: I used bulk insert and it takes me forever time (estimated 7 days)

c*****y
发帖数: 75
10
删除index,用BCP
W******9
发帖数: 191
11
DTS, easy and fast
w*******e
发帖数: 1622
12
Now, it is SSIS....

【在 W******9 的大作中提到】
: DTS, easy and fast
1 (共1页)
进入Database版参与讨论
相关主题
要面试SQL Server工作,请教高手外行请教
问题求教:怎样从MS SQL 转送数据到oracleSSIS import and export wizard 搞不定了
面试的工作要求在关系数据库上有处理大规模数据的经验,这都包括哪些SQL技能呀?请问 sql server Script 执行的问题
求解,把一table 倒入SQL Server 出错SSIS package import excel, 只能load 255 rows
sql server 怎么关掉logwhy this Trigger hang the Process *** thanks thanks
How to make import (>200M) faster?求助一个MSSQL 数据update问题
a simple question about T-SQLImport data from excel into sql server 2000
请问MySQL 可以快速处理table有1亿条数据么?Bulk merge? (转载)
相关话题的讨论汇总
话题: sql话题: data话题: import话题: files话题: file