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

Kundera generated CQLs are not leveraging key/row cache #856

Closed
canopenerda opened this issue Apr 15, 2016 · 4 comments
Closed

Kundera generated CQLs are not leveraging key/row cache #856

canopenerda opened this issue Apr 15, 2016 · 4 comments
Labels
Milestone

Comments

@canopenerda
Copy link

CQLs generated from Kundera use token function which doesn't leverage key/row cache.
I have a named query which simply queries by primary key, and I have key and row cache enabled. But the generated query uses token function and results in 0 cache hit.

Thank you!
Regards,
Malcolm Qian

@karthikprasad13
Copy link
Collaborator

@mqian

Which query are you using? and what is the generated query?

-Karthik

@canopenerda
Copy link
Author

@karthikprasad13

I have an entity and I'm querying it by id in a named query. I have kundera.show.sql set to true. I expected the generated query to be select * from entity where id = ?, but the actually query is select * from entity where token(id) = token(?).

In schema, I have row cache and key cache enabled for the column family. Querying with id in cqlsh hits cache while querying with token function doesn't.

Thank you!

Regards,
Malcolm Qian

@karthikprasad13
Copy link
Collaborator

@mqian

Sorry for late response. The current scenario, with key/row cache is yet to be handled. We will fix this soon and will be available in next release.

-Karthik

@karthikprasad13 karthikprasad13 added this to the 3.5 milestone May 18, 2016
karthikprasad13 added a commit that referenced this issue Jun 14, 2016
karthikprasad13 added a commit that referenced this issue Jun 15, 2016
@devender-yadav devender-yadav added Fixed and removed Fix labels Jun 21, 2016
@devender-yadav
Copy link
Contributor

Hi @mqian,

Fixed in Kundera 3.5

-Dev

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

No branches or pull requests

3 participants