|
как вставить 10 миллионов строк в таблицу.
|
|||
---|---|---|---|
#18+
Всем привет как лучше вставить 10 миллионов строк в таблицу. на текущий момент при вставке ошибка Adaptive Server Enterprise/15.5/EBF 17795 SMP ESD#1/P/x86_64/Enterprise Linux/asear155/2495/64-bit/FBO/Thu May 27 06:07:23 2010 Space available in the log segment has fallen critically low in database 'ХХХ'. All future modifications to this database will be suspended until the log is successfully dumped and space becomes available. The transaction log in database ra_dev is almost full. Your transaction is being suspended until space is made available in the log. Описание процесса. Клиент кидает файл, данные в нем проходят обработку, проверку на корректность, формируется результирующий набор (data_table ), который вставляется в результирующую таблицу(rezalt_table). текущий вариант insert into rezalt_table select * from data_table мое видение - вставлять циклом while @i <= (select max(oid ) from data_table ) begin insert into rezalt_table select t1.* from data_table as t1 where oid between @i and @i+10000 select @i = @i+10001 end ... |
|||
:
Нравится:
Не нравится:
|
|||
21.03.2017, 13:57 |
|
как вставить 10 миллионов строк в таблицу.
|
|||
---|---|---|---|
#18+
bai84Space available in the log segment has fallen critically low in database 'ХХХ'. All future modifications to this database will be suspended until the log is successfully dumped and space becomes available. The transaction log in database ra_dev is almost full. Your transaction is being suspended until space is made available in the log. Тебе текст ошибки перевести? ... |
|||
:
Нравится:
Не нравится:
|
|||
21.03.2017, 17:15 |
|
|
start [/forum/topic.php?fid=55&fpage=4&tid=2009666]: |
0ms |
get settings: |
11ms |
get forum list: |
15ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
182ms |
get topic data: |
13ms |
get forum data: |
3ms |
get page messages: |
44ms |
get tp. blocked users: |
2ms |
others: | 239ms |
total: | 517ms |
0 / 0 |