Bug #117165 | load data local infile replace have poor performance | ||
---|---|---|---|
Submitted: | 9 Jan 6:53 | Modified: | 7 Apr 9:57 |
Reporter: | Wang Zhengmao (OCA) | Email Updates: | |
Status: | Analyzing | Impact on me: | |
Category: | MySQL Server: DML | Severity: | S5 (Performance) |
Version: | 8.0.36 | OS: | Any |
Assigned to: | MySQL Verification Team | CPU Architecture: | Any |
[9 Jan 6:53]
Wang Zhengmao
[27 Feb 15:09]
MySQL Verification Team
Hello Wang Zhengmao, Thank you for the report and feedback. My apologies for taking time on this, even with the multiple attempts(tried with current GA version instead of reported version i.e. 8.0.36) I'm unable to see difference with default and patched instance. Am I missing something here? Please let me know along with exact make options used for the build and configuration details if not on default. Thank you. I'm joining the steps which I tried at my end for your reference. Thank you. regards, Umesh
[27 Feb 15:10]
MySQL Verification Team
8.0.41 test results
Attachment: 117165.results (application/octet-stream, text), 9.91 KiB.
[28 Mar 1:00]
Bugs System
No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open".
[7 Apr 9:33]
Wang Zhengmao
ut_lock_free_hash_t is a lock free hash array, which is a fixed length array with elements of (key, val). The hash value is calculated based on the Key and take the remainder with the array size to find the corresponding slot. If the slot is occupied, search for an available slot to the right. For example, if there are many collisions in the hash array, searching the corresponding slot through the key would traversing slots one by one and require more time. If that happened, more indices more time cost. Although it not very easy to repeat, it has a chance to happen and I have encountered. Additionally, when HA_STATUS_ERRKEY error happened, it's just necessary to call ha_innobase::info_low to fetch the duplicate index number. Update key's m_in_memory_estimate is not very necessary.
[7 Apr 9:57]
MySQL Verification Team
Thank you for the feedback. Let me retry few more times to see if I can reproduce this. regards, Umesh