Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support cache compiled call statement #42

Open
mhewedy opened this issue Oct 7, 2018 · 0 comments
Open

support cache compiled call statement #42

mhewedy opened this issue Oct 7, 2018 · 0 comments

Comments

@mhewedy
Copy link
Owner

mhewedy commented Oct 7, 2018

Each time the stored procedure is being called, there's a compilation step happening:

callString = database.getCallString(procName, config, inParams, outParamsTypes, rsMapper);
// ----- Applying JDBC Object Props
connectionPropsBkup = ConnectionProps.from(connection);
connChanged = connectionProps.apply(connection);
statement = resultSetProps.apply(connection, callString);
statementProps.apply(statement);
// ------- calc some indexes
int outParamIndex = length(inParams);
int statusParamsIndex = database.getStatusParamsIndex(config, inParams, outParamsTypes, rsMapper);
int resultSetParamIndex = database.getResultSetParamIndex(statusParamsIndex, rsMapper);

So instead of doing such activity eachtime, spwrap can cache such calculations. (spring stored procedure do)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant