
- Learn MySQL
- MySQL - Home
- MySQL - Introduction
- MySQL - Installation
- MySQL - Administration
- MySQL - PHP Syntax
- MySQL - Connection
- MySQL - Create Database
- MySQL - Drop Database
- MySQL - Select Database
- MySQL - Data Types
- MySQL - Create Tables
- MySQL - Drop Tables
- MySQL - Insert Query
- MySQL - Select Query
- MySQL - Where Clause
- MySQL - Update Query
- MySQL - Delete Query
- MySQL - Like Clause
- MySQL - Sorting Results
- MySQL - Using Join
- MySQL - NULL Values
- MySQL - Regexps
- MySQL - Transactions
- MySQL - Alter Command
- MySQL - Indexes
- MySQL - Temporary Tables
- MySQL - Clone Tables
- MySQL - Database Info
- MySQL - Using Sequences
- MySQL - Handling Duplicates
- MySQL - SQL Injection
- MySQL - Database Export
- MySQL - Database Import
When should I use MySQL compressed protocol?
Let us understand when MySQL compressed protocol should be used −
The compression operation is used only if both client and server support ‘zlib’ compression, and the client requests compression.
The advantage of using compression is that it reduces the size of the payload.
On the other hand, the disadvantage of using compression is that it increases the computation time.
Performance benefits will depend largely on the size of the result set which is being sent.
In addition to this, the network bandwidth and latency between the database server and its clients also matters.
The larger the result set, the larger will be the latency.
In other words, the lesser the bandwidth, the more likely the user would see the benefit of compression.
The maximum level of service is limited to the smallest bottleneck. Hence, it is required to analyse the position regarding network and CPU resources in the current time.
The most optimized database server would utilize 100% of its CPU 100% of the time, otherwise the computing resources get wasted if it has a processor that is sitting idle.
- Related Articles
- When should I use a composite index in MySQL?
- When Should I use Selenium Grid?
- When should I use an Inline script and when to use external JavaScript file?
- Which datatype should I use for flag in MySQL?
- When should I use the keyword ‘this’ in a Java class?
- When should I use a semicolon after curly braces in JavaScript?
- How should I display MySQL database that is currently in use?
- Should I use COUNT(*) to get all the records in MySQL?
- Why should I use Hubspot?
- What is a smart pointer and when should I use it in C++?
- Which one should I use? The datetime or timestamp data type in MySQL?
- When should you use sets in Javascript?
- Should I use MySQL enum or tinyint for fields having values 1 and 0?
- How MySQL evaluates when I use a conditional expression within SUM() function?
- Should I use , , or for SVG files?
