Quantcast
Channel: MySQL Forums - Connector/NET and C#, Mono, .Net
Viewing all articles
Browse latest Browse all 1451

Performance issue (no replies)

$
0
0
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

Viewing all articles
Browse latest Browse all 1451

Trending Articles