Bug #44709 Allow executing queries without metadata returned
Submitted: 7 May 2009 9:03
Reporter: Domas Mituzas Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Server: General Severity:S4 (Feature request)
Version:5.1, ... OS:Any
Assigned to: CPU Architecture:Any

[7 May 2009 9:03] Domas Mituzas
Description:
Currently column names, aliases and other extended metadata is returned for every resultset selected.
In high-throughput cases that causes huge network overhead (responses can contain 10-20x more metadata information, compared to payload). 

As there is no way to workaround that (prepared statements return lots of metadata at execute stage too), there should be SQL mode, that would:

a) Not send column aliases
b) Not send column names (assume client already knows that)
c) Send only the basic metadata needed (only field types)
d) Not send table names and other metadata that is not needed for simplified query processing

How to repeat:
SELECT a AS b FROM table;
(inspect the packet)

Suggested fix:
Provide SQL mode that strips metadata from response packets.