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.

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.047 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.