Performance issue
Posted by: Сергей Волков
Date: November 20, 2020 03:35AM

Hello
Reading database is very slow.
I'm using Connector 8.0.22.0
After profiling it I found that 90% of all time is lost on regex ctor.
Class:
MySql.Data.MySqlCLient.NativeDriver
Method:
public IMySqlValue ReadColumnValue(int index, MySqlField field, IMySqlValue valObject)
Line:
Regex regex = new Regex("(?i)^[0-9A-F]{8}[-](?:[0-9A-F]{4}[-]){3}[0-9A-F]{12}$");

It is huge time loss on each value read. And if I understood correctly this regex is used only with guid column types which I don't have.

Please check it out

Options: ReplyQuote


Subject
Written By
Posted
Performance issue
November 20, 2020 03:35AM
November 20, 2020 10:58AM
November 21, 2020 10:35AM
November 21, 2020 12:55PM


Sorry, only registered users may post in this forum.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.