Skip to content

Commit 258cf20

Browse files
committed
Merge pull request #142 from mwolson/t-statement-cache
Implement a statement cache of 100 requests
2 parents f358597 + d0bb595 commit 258cf20

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/oracle_bindings.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ void OracleClient::EIO_Connect(uv_work_t* req) {
125125
connectionStr << "//" << baton->hostname << ":" << baton->port << "/" << baton->database;
126126
}
127127
baton->connection = baton->environment->createConnection(baton->user, baton->password, connectionStr.str());
128+
baton->connection->setStmtCacheSize(100);
128129
} catch(oracle::occi::SQLException &ex) {
129130
baton->error = new std::string(ex.getMessage());
130131
} catch (const std::exception& ex) {

0 commit comments

Comments
 (0)