Stored Routine Call Via Connector Is Slow
(Doc ID 2475215.1)
Last updated on MARCH 02, 2020
Applies to:
MySQL Server - Version 5.7 and laterInformation in this document applies to any platform.
Goal
While calling the stored routines from the connector, it executes DatabaseMetaData methods like getFunctions(), getProcrdrues(), getFunctionColumns(), getProcrdureColumns() that triggers the following queries at every execution:
#####
- SELECT name, type, comment FROM mysql.proc WHERE name LIKE '' AND db <=> '' ORDER BY name, type
- USE ``
- SELECT DATABASE()
- SHOW CREATE PROCEDURE ``.``
- SET @com_mysql_jdbc_outparam_y='3'
- CALL (2,@com_mysql_jdbc_outparam_y)
- SELECT @com_mysql_jdbc_outparam_y
#####
Solution
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Goal |
Solution |