forums › forums › SQLyog › SQLyog: Bugs / Feature Requests › Feature Request: Enable Compression Protocol
- This topic is empty.
-
AuthorPosts
-
-
April 28, 2007 at 1:51 am #10306GraycodeMember
I modified my copy of Community 5.29 to enable the communications compression that's built into MySQL. WOW, that really made a very big difference for us.
Exporting one of our databases to SQL file required 60MB of TCP data transmission with the unmodified SQLyog Community 5.29. That same database needed only 15MB of transmission using a modified program with the compression protocol enabled. Accordingly, it took much less elapsed time to retrieve that data. Other use of SQLyog also seem more responseive, perhaps because the request & response are being transmitted accross the TCP link faster.
The compression option may not be useful if the database is on the same PC as the user, or if the DB server is overly burdned by heavy usage. As I understand it, the compression option is negotiated by MySQL when a connection is initially being established, and remains transparent to the application thereafter.
This Feature Request is to add an option on the SQLyog connection dialog to provide a choice of whether or not to enable use of the compression protocol. It would be great if that option state is saved as an attribute of the configuration along with the server location and user authentication.
To enable SQLyog to use the MySQL compression protocol, I changed 2 lines in ClientMySQLWrapper.cpp within the function sja_mysql_real_connect().
Where the 2 lines of code currently contain:
, clientflag | CLIENT_MULTI_RESULTS,I changed to:
, clientflag | CLIENT_MULTI_RESULTS | CLIENT_COMPRESS,There is also a place within TunnelCommunity.cpp, the TunnelCommunity::mysql_real_connect() method to specify the CLIENT_COMPRESS connection option.
Thank you for providing such a very useful product!
-
April 28, 2007 at 8:33 am #23860peterlaursenParticipant
unoubtedly compression is useful with big exports and imports to/from remote servers (as your own example shows). For the common use of the GUI functionality I do not think it make any notable difference.
We will discuss this next week.
-
May 4, 2007 at 6:51 pm #23861GraycodeMember
Any more thoughts on enabling the built-in MySQL compression?
It makes a big difference for exports, queries, etc. on non-local databases.
-
-
AuthorPosts
- You must be logged in to reply to this topic.