Bug #65177 | perromance issue of "order by rand()" | ||
---|---|---|---|
Submitted: | 2 May 2012 9:43 | Modified: | 7 May 2012 3:22 |
Reporter: | xiaobin lin (OCA) | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: Optimizer | Severity: | S5 (Performance) |
Version: | 5.1,5.5 | OS: | Any |
Assigned to: | Assigned Account | CPU Architecture: | Any |
Tags: | Contribution, order by rand, Using temporary |
If the data you need to attach is more than 50MB, you should create a compressed archive of the data, split it to 50MB chunks, and upload each of them as a separate attachment.
To split a large file:
- On *nix platforms use the split command e.g.
split -b 50MB <my_large_archive> <my_split_archive_prefix>
- On windows use WinZip or a similar utility to split the large file
[2 May 2012 9:44]
xiaobin lin
[7 May 2012 3:24]
xiaobin lin
based on 5.5.22
Attachment: order_by_rand.patch (application/octet-stream, text), 494 bytes.
[9 May 2012 1:26]
xiaobin lin
Last patch file are generated in error order of patched version and raw version. Modify it
Attachment: order_by_rand.patch (application/octet-stream, text), 494 bytes.