![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I want to append a word to a TEXT field. so I use: UPDATE my_table SET my_text=concat(my_text,"a word") WHERE ... this statement will be repeated for millions of times, and my_text has contained maybe 50K characters. It works too slowly. How can I impove it? thanks. |
#3
| |||
| |||
|
|
lionchao (AT) gmail (DOT) com> wrote in message news:1154595888.813742.217060 (AT) i42g2000cwa (DOT) googlegroups.com... I want to append a word to a TEXT field. so I use: UPDATE my_table SET my_text=concat(my_text,"a word") WHERE ... this statement will be repeated for millions of times, and my_text has contained maybe 50K characters. It works too slowly. How can I impove it? thanks. Is the text a constant? Is it easy to specify what rows as a set? For example if you update row by row it will be very slow. If you can update many rows at the same time it will be much faster. eg update my_table set my_text=my_text||"a word"; Jim |
#4
| |||
| |||
|
|
Thank you for reply. The additional word is different for each row. |
#5
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |