Dealing with dynamic Query String in Cassandra

大憨熊 提交于 2019-12-11 07:07:30

问题


I have employee table which has following column as id, firstName, lastName, email, age.

From UI, I have filter option which is coming as a query string. Let's say user want to filter data based on firstName and age, so query string will be ?firstName='John'&age>21.

I know in Cassandra, we need to create multiple tables based on criteria or use materialized view to filter the query.

Question: How we will identify which table/MV(repository) it has to call based on query string coming from UI?. Or you have some other option to deal with these kinds of scenario? I'm using Spring Boot as a backend.

来源:https://stackoverflow.com/questions/51171052/dealing-with-dynamic-query-string-in-cassandra

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!