Bug #97709 | MySQL 8 Select Count(*) is very slow | ||
---|---|---|---|
Submitted: | 20 Nov 2019 13:03 | Modified: | 7 Jan 2020 14:37 |
Reporter: | Vivek Texeira | Email Updates: | |
Status: | Can't repeat | Impact on me: | |
Category: | MySQL Server: InnoDB storage engine | Severity: | S5 (Performance) |
Version: | 8.0.17 | OS: | Ubuntu (Ubuntu 18.04.1 LTS) |
Assigned to: | CPU Architecture: | Any |
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
[23 Nov 2019 7:36]
Vivek Texeira
[22 May 2020 13:11]
Peter Frederiksen
photos.csv
Attachment: photos.csv (application/vnd.ms-excel, text), 626.47 KiB.
[16 Sep 2021 3:22]
Jesse Redl
Here is the optimizer trace of the above query.
Attachment: optimzer.txt (text/plain), 19.67 KiB.