Is it possible to construct complex queries against noSQL DB

前端 未结 4 768
予麋鹿
予麋鹿 2021-02-07 15:33

I have been researching noSQL DB and have not been able to satisfactorily answer this for myself: Is it possible to construct complex queries against noSQL DB?

The type

4条回答
  •  渐次进展
    2021-02-07 16:13

    It depends on the data store you are using.

    I frequently use AppEngine and their data store only allows inequality on one column (and that column must be the first element in the sort order. So you would not be able to run the query you posted, but you could do a similar one:

    select * from DB where
    vara > x AND
    varb = 2 AND
    varc in (t,u,v,w)
    vard in (x,y,z) AND
    varf = 2 AND
    varg = 3
    

    Also, you can do things like have a column that contains a list of strings and select rows that have a value in the list.

    So, the official answer is "maybe, sorta, sometimes, but not really, except when yes"

提交回复
热议问题