[MDEV-30196] different character set than expected makes stored procedure run 100 times slower Created: 2022-12-11 Updated: 2023-04-03 Resolved: 2023-04-03 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Optimizer |
| Affects Version/s: | 10.10.2 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Philip orleans | Assignee: | Unassigned |
| Resolution: | Incomplete | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Linux |
||
| Description |
|
In Debian 11, when I create a table using SQL="DELIMITER \$\$ CREATE DEFINER = 'root'@'%' DELIMITER ;" mysql database -e "${SQL}" and that is a tragedy, since in this scenario, this store procedure runs 100 times slower than the same exact stored procedure, bit by bit, if the character_set_client and the collation_connection were= utf8mb4_general_ci This should not happen. If I can do a " create table" from bash script and get This is two bugs for the price of one. The first is to make sure that a Stored Procedure gets the right character set, and the second is: even if the character set is different than the table or the database collation, that stored procedure should not run 100 times slower, and I am not exaggerating. I can provide root access to Helena to my development box so she can verify the facts. |
| Comments |
| Comment by Sergei Golubchik [ 2023-01-04 ] | ||||||||||
|
What stored procedure is running 100 times slower? Literally, this one?
But it doesn't do anything.Do you have a realistic example of a stored procedure that's 100 times slower? | ||||||||||
| Comment by Sergei Golubchik [ 2023-01-04 ] | ||||||||||
|
if you read data in a loop, them you might also be affected by | ||||||||||
| Comment by Elena Stepanova [ 2023-02-05 ] | ||||||||||
Please do. | ||||||||||
| Comment by Philip orleans [ 2023-02-05 ] | ||||||||||
|
Will be sending you credentials for a blank machine where you may see the issue Yours | ||||||||||
| Comment by Elena Stepanova [ 2023-02-05 ] | ||||||||||
|
philip_38 | ||||||||||
| Comment by Sergei Golubchik [ 2023-03-06 ] | ||||||||||
|
philip_38, normally we close the issue as "incomplete" if it stays in the "needs feedback" state for a month. | ||||||||||
| Comment by Philip orleans [ 2023-04-03 ] | ||||||||||
|
Please close it. |