fdb icon indicating copy to clipboard operation
fdb copied to clipboard

fdb Cursor reuse existing PreparedStatement [PYFB77]

Open firebird-automations opened this issue 6 years ago • 0 comments

Submitted by: Nathan Waite (nater)

In fdb Cursor.execute(), any time a string is passed a new PreparedStatement is created requiring a trip to the server. Can it instead reuse the existing prepared statement if the same string object is passed multiple times [consecutively]? In certain cases this would result in a dramatic (and free!) speed increase without requiring methods not in DB-API 2.0.

firebird-automations avatar Jan 11 '19 01:01 firebird-automations