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

[APIS-877] Improve JDBC driver to use statement cache #24

Merged
merged 4 commits into from
Nov 11, 2021

Conversation

airnet73
Copy link
Contributor

@airnet73 airnet73 commented Nov 10, 2021

http://jira.cubrid.org/browse/APIS-877

Purpose
The result cache is working in JDBC but the PreparedStatement cache does not work.
PreparedStatement caching is required to improve query performance.

Implementation
To use the cache, you must use three properties.

  • usePreparedStmtCache

    • If you want Prepared Statement caching, set it to True.
    • usePreparedStmtCache=true (defulat:false)
  • preparedStmtCacheSize

    • If Prepared Statment caching is enabled, set the number to be cached.
    • prepareStatementCacheSize=1024 (defulat:25, min:1, max:2147483647)
  • preparedStmtCacheSqlLimit

    • If Prepared Statment caching is enabled, set the SQL text to be cached.
    • preparedStmtCacheSqlLimit = 1024 (default:256, min:1, max:2147483647)

Remarks
N/A

@airnet73 airnet73 self-assigned this Nov 10, 2021
@airnet73 airnet73 merged commit 902269e into CUBRID:develop Nov 11, 2021
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

Successfully merging this pull request may close these issues.

3 participants