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

refactor: prepared queries #6

Closed
wants to merge 1 commit into from
Closed

refactor: prepared queries #6

wants to merge 1 commit into from

Conversation

Fyko
Copy link
Owner

@Fyko Fyko commented Sep 10, 2023

This PR refactors a lot of code to support prepared queries.

I can already hear you.
"But @Fyko, scylla::CachingSession already uses prepared queries and even caches them for you!".

Yes, it does. But every time we perform a query, we have to do a hash and lookup. Which is signifigantly slower than just reading a property.
We're already using a shitton of macros, why not just write another?

Shoutout jake for making my lose sleep at night. 😅

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.

1 participant