|
|
|
Delete from table (долго for all records )
|
|||
|---|---|---|---|
|
#18+
При удалении всех записей таблицы порядка 5 млн (например в DTS) ожидание завершения составляет 10 минут и более. Это происходит видимо из-за выполнения транзакций. Создавать пустую структуру таблицы и индексов не хочется. Есть ли способ как-то обойти транзакцию, отменить. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 21.05.2002, 16:13 |
|
||
|
Delete from table (долго for all records )
|
|||
|---|---|---|---|
|
#18+
"TRUNCATE TABLE is functionally identical to DELETE statement with no WHERE clause: both remove all rows in the table. But TRUNCATE TABLE is faster and uses fewer system and transaction log resources than DELETE. ... TRUNCATE TABLE removes all rows from a table, but the table structure and its columns, constraints, indexes and so on remain. .... You cannot use TRUNCATE TABLE on a table referenced by a FOREIGN KEY constraint; " ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 21.05.2002, 16:19 |
|
||
|
|

start [/forum/topic.php?fid=46&msg=32030844&tid=1822659]: |
0ms |
get settings: |
8ms |
get forum list: |
11ms |
check forum access: |
2ms |
check topic access: |
2ms |
track hit: |
184ms |
get topic data: |
10ms |
get forum data: |
2ms |
get page messages: |
46ms |
get tp. blocked users: |
1ms |
| others: | 244ms |
| total: | 510ms |

| 0 / 0 |
