Bug #47937 | Appending to fields using CONCAT gets very slow | ||
---|---|---|---|
Submitted: | 9 Oct 2009 9:11 | Modified: | 9 Oct 2009 11:41 |
Reporter: | Marcus Bointon | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: General | Severity: | S5 (Performance) |
Version: | OS: | Any | |
Assigned to: | CPU Architecture: | Any |
[9 Oct 2009 9:11]
Marcus Bointon
[9 Oct 2009 9:21]
Valeriy Kravchuk
Please, send the results of: EXPLAIN select * from users WHERE account_id = 123; I'd say this is a nice feature request anyway...
[9 Oct 2009 10:58]
Marcus Bointon
I don't think my indexes are anything to do with this as updates of other types on the same set of records don't suffer the slowdown. Here's an example explain anyway: explain select * from users where customer_id = 123\G id: 1 select_type: SIMPLE table: users type: ref possible_keys: customer_id key: customer_id key_len: 5 ref: const rows: 1320058 Extra: Using where Glad to hear you think it's a feasible feature!
[9 Oct 2009 11:41]
Valeriy Kravchuk
It would be nice to have: update t set blob = concat(blob, 'something') where ... statements executed without reading entire blob value and writing it back. Maybe new data types (Smart/new BLOBs in terms of Informix/Oracle) are needed for this.