| Bug #27865 | Use Compresssion 2x slower accros network | ||
|---|---|---|---|
| Submitted: | 17 Apr 2007 3:33 | Modified: | 10 Jan 2008 18:36 |
| Reporter: | Jared Sullivan (Silver Quality Contributor) | ||
| Status: | Closed | ||
| Category: | Connector/Net | Severity: | S3 (Non-critical) |
| Version: | 5.0.5, 5.0.7SVN, 5.1.2 | OS: | Microsoft Windows (WinXP/Vista) |
| Assigned to: | Target Version: | ||
| Tags: | tcp, network, use compression, performance, remote | ||
[17 Apr 2007 3:33]
Jared Sullivan
[17 Apr 2007 3:33]
Jared Sullivan
slow compression project
Attachment: RemotePerformance.zip (application/x-zip-compressed, text), 75.40 KiB.
[18 Apr 2007 7:50]
Tonci Grgin
This is a continuation of Bug#27746.
[18 Apr 2007 10:18]
Tonci Grgin
Jared, yes, it's clear now due to nice test case you attached. Against my local 4.1 it shows 3-5 times slower results... Will need some time to investigate.
[18 Apr 2007 10:28]
Tonci Grgin
Hmmm, 5.0.38 on localhost shows to be slower 1-2 times...
[20 Apr 2007 12:18]
Jared Sullivan
Bug is non-repo on localhost, therefore has to be performance issue relating to decompression of network packets. Can you verify and assign to Reggie as 250MS is too much overhead for 1 GIG LAN. I am curious why you would strip NET gzip stream for open source(5.0.1 beta), when the connector itself is written in Microsoft .NET 2.0.
[8 May 2007 14:21]
Tonci Grgin
I can't seem to find enough quality time to look into this deeper... Verified as described with test case provided by Jared.
[6 Jun 2007 12:45]
Tonci Grgin
Jared, can you try 5.0.8 and inform me of result? Two related (in my opinion) bug reports were closed recently.
[7 Jun 2007 1:09]
Jared Sullivan
Bug was fixed 1-June-07, but I only found snapshot for NET5.1 31-May-07. Anyway you can post link to 5.0.08 assembly(compiled).
[19 Jun 2007 9:51]
Tonci Grgin
Jared, you can easily compile it with VS (2005/2003) from SVN sources. I would be most interested to hear if new version fixes your problem.
[20 Jun 2007 1:06]
Jared Sullivan
I am 100% BASIC programmer, don't even have C#. Have download 5.1.2 released mid June with MD5 9f412e4ddcd3ff39fa0d0cdae4949236 and results for 'use compression' were 2x slower, so the current synopsis of this bug is still in effect. Will attached my traces so you can see MilliSecond delays when firing compressed reader accross network.
[20 Jun 2007 1:06]
Jared Sullivan
My results for use compression
Attachment: MyTestResults.txt (text/plain), 621 bytes.
[20 Jun 2007 9:34]
Tonci Grgin
Jared, thanks. I'll escalate this problem to c/NET team leader.
[8 Jan 2008 18:03]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/40702
[8 Jan 2008 18:04]
Reggie Burnett
Fixed in 1.0.11, 5.1.5, and 5.2+. This will not be fixed in 5.0 since 5.1 is currently GA.
[8 Jan 2008 18:11]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/40706
[8 Jan 2008 21:54]
Jared Sullivan
5.1.4 has multiple issues with System.Byte[] being returned for AES_DECRYPT & CONCAT functions. I will log a bug as soon as I have time.
[9 Jan 2008 2:21]
Reggie Burnett
These are not bugs. By default, 5.1 respects the binary flags returned by the server and the server sets the binary flags on many functions improperly. There are two options. You can use the connection string option to preserve 5.0 "incorrect" behavior of not respecting the binary flags or you can use the .GetString() method on MySqlDataReader to get a string.
[9 Jan 2008 2:30]
Jared Sullivan
- GetString() works as you said - Am I right to log bugs with MySQL : Server on mixed type CONCAT, AES_DECRYPT?
[9 Jan 2008 2:40]
Reggie Burnett
Jared You can use the --column-type-info option with the 5.1 command line client to see the actual column metadata returned for each query. If you see some metadata that you think is wrong then I encourage you to submit server bugs. I think you'll see that the connector will respect this data.
[10 Jan 2008 18:36]
MC Brown
A note has been added to the 1.0.11, 5.1.5 and 5.2.0 changelog: Using compression in the MySQL connection with Connector/NET would be slower than using native (uncompressed) communication.
