[CONPY-17] optimize metadata read Created: 2018-07-25  Updated: 2018-07-26  Resolved: 2018-07-26

Status: Closed
Project: MariaDB Connector/Python
Component/s: DBAPI 2.0
Affects Version/s: None
Fix Version/s: 0.9.1

Type: Task Priority: Minor
Reporter: Diego Dupin Assignee: Georg Richter
Resolution: Fixed Votes: 0
Labels: None


 Description   

python need the "string" part of metadata only when cursor method .description() is called.

It seems to me that those string are always read by c/c : https://github.com/MariaDB/mariadb-connector-c/blob/master/libmariadb/mariadb_lib.c#L782
If this is the case, keeping the buffer then creating string only when asked might speed up result-set.
(7% perf improvement when querying mysql.user table on java connector).



 Comments   
Comment by Georg Richter [ 2018-07-26 ]

MrdbCursor_description() is now implemented as getter. (commit c19b0f0404b2282007f48ad4e203f1784b2b6d10)

Generated at Thu Feb 08 03:29:38 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.