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

Add a caching layer for prepared statements #9

Open
alexflav23 opened this issue Dec 30, 2017 · 0 comments
Open

Add a caching layer for prepared statements #9

alexflav23 opened this issue Dec 30, 2017 · 0 comments
Assignees

Comments

@alexflav23
Copy link
Member

When we bind prepared statements, we need tests and functionality to guarantee a thread safe initialisation. This is because re-preparing statements can cause a performance penalty and can interfere with the low level protocol.

To prevent this, we need a just time initialisation with the appropriate locking and testing, even if the mechanism is as simple as using lazy before every bind definition.

@alexflav23 alexflav23 self-assigned this Dec 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant