|
|
|
оптимизировать update
|
|||
|---|---|---|---|
|
#18+
Всем привет Как лучше сделать обновление таблицы? table top hit host name table id1 hi host ............ table idn hi host Народ как лучше сделать процедуру обновления таблицы top из id n? желательно за один раз ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 06.07.2004, 23:58 |
|
||
|
оптимизировать update
|
|||
|---|---|---|---|
|
#18+
mojno tak, esli mado order po hits ) no toka dlya mysql4 drop table if exists tmp_top; create table tmp_top select * from a union select * from b union select * from c order by hit DESC limit 3; drop table if exists top; rename table tmp_top to top; ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 12.07.2004, 19:15 |
|
||
|
|

start [/forum/topic.php?fid=47&fpage=682&tid=1854994]: |
0ms |
get settings: |
8ms |
get forum list: |
11ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
31ms |
get topic data: |
7ms |
get forum data: |
2ms |
get page messages: |
33ms |
get tp. blocked users: |
1ms |
| others: | 203ms |
| total: | 302ms |

| 0 / 0 |
