|
|
|
Delete from table (долго for all records )
|
|||
|---|---|---|---|
|
#18+
При удалении всех записей таблицы порядка 5 млн (например в DTS) ожидание завершения составляет 10 минут и более. Это происходит видимо из-за выполнения транзакций. Создавать пустую структуру таблицы и индексов не хочется. Есть ли способ как-то обойти транзакцию, отменить. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 21.05.2002, 16:13:55 |
|
||
|
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:06 |
|
||
|
|

start [/forum/topic.php?desktop=1&fid=46&tid=1822659]: |
0ms |
get settings: |
10ms |
get forum list: |
16ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
300ms |
get topic data: |
8ms |
get forum data: |
2ms |
get page messages: |
29ms |
get tp. blocked users: |
1ms |
| others: | 224ms |
| total: | 596ms |

| 0 / 0 |
