Can I build complex queries for NOSQL DB?

I have been studying noSQL DB, and I have not been able to answer myself satisfactorily: Can complex queries be constructed on noSQL DB?

The type of query I want to know will be like this:

select * from DB where
vara> x AND
varb = 2 AND
varc vard in (x,y,z) AND
vare like'%texthere%' AND
varf = 2 AND
varg = 3 and
etc...

Note: I know I can’t use SQL. As mentioned above, I’m asking how to use the above psuedo logic to query, in other words It’s just a lot of different conditions. So far, the best answer I found is that you have an RDBMS query and then get the data from the cloud. For me, this is not necessarily more efficient.

So as a follow-up. If just trying to solve a problem of “searching 4 million rows” instead of the problem of “we have billions of data rows”, should I even look at a noSQL database?

In mongodb, you only need something like db.mytbl.find({“vara”: { $gt:10},”varb”:2,”varc”:{$lt:100}})

See examples here and here

I have been studying noSQL DB, and I have not been able to answer myself satisfactorily: Can complex queries be constructed on noSQL DB?

The type of query I want to know will be like this:

select * from DB where
vara> x AND
varb = 2 AND
varc vard in (x,y,z) AND
vare like'%texthere%' AND
varf = 2 AND
varg = 3 and
etc...

Note: I know I can’t use SQL. As mentioned above, I’m asking how to use the above psuedo logic to query, in other words It’s just a lot of different conditions. So far, the best answer I found is that you have an RDBMS query and then get the data from the cloud. For me, this is not necessarily more efficient.

So as a follow-up. If just trying to solve a problem of “searching 4 million rows” instead of the problem of “we have billions of data rows”, should I even look at a noSQL database?

In mongodb, you only need something like db.mytbl.find({“vara”:{$gt:10},”varb”:2, “Varc”:{$lt:100}})

See examples here and here

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 678 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.