Performance pitfall when prepare flag is set and parameters is null

Description

Routing logic tries to evaluate and encode parameters when the statement is prepared, without considering that can be null, causing a significant degradation in performance for this particular case.

Environment

None

Pull Requests

None

Status

Assignee

Unassigned

Reporter

Jorge Bay Gondra

Reviewer

None

Fix versions

None

Labels

None

Components

None

PM Priority

None

Reproduced in

None

External issue ID

None

External issue ID

None

External issue ID

None

External issue ID

None

External issue ID

None

External issue ID

None

Doc Impact

None

Size

None

Priority

Major
Configure