[MDEV-25333] Debug server is extremely slow in some JSON functions Created: 2021-04-02 Updated: 2023-04-27 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Debug, JSON |
| Affects Version/s: | 10.2, 10.3, 10.4, 10.5, 10.6 |
| Fix Version/s: | 10.4, 10.5 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Elena Stepanova | Assignee: | Rucha Deodhar |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | slow-debug | ||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Description |
|
JSON_MERGE_... and probably some other JSON functions take a lot of time on a debug server, while on a release server of the same version they run almost instantly. In the example below, the difference is 30 sec vs 0.5 sec. I fully realize that debug server is bound to be slower, but I think it's worth checking, when/if priorities permit, whether it should be that much slower. MySQL 8.0 doesn't have the same effect, there the difference is reasonable, something like 2 sec vs 0.5 sec. To make things worse, as reported in The attached file helps to reproduce the problem. Download, unpack and modify LOAD_FILE below to point at its location. The file is 20M unpacked, a real-life JSON document from an official public resource. Important: To run the example, the server needs to be run with
, and the command-line client should be started with
. It can also be run via MTR, in which case it's
CONVERT is not important for the scenario, it's there just to make the statement universal, usable for MySQL too. |
| Comments |
| Comment by Daniel Black [ 2022-03-01 ] |
|
Does https://github.com/MariaDB/server/commit/bae9fb5904a2c5a6e1deb84d8fe315a11845ac29 improve it? |