FirebirdSQL/fdb

fdb Cursor reuse existing PreparedStatement [PYFB77]

firebird-automations opened this issue · 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.