nosql - Storing MongoDB query in the database -


i have collection subscribers.

i want segment of subscribers applying complex filters in query db.subscribers.find({ age: { $gt: 20 }, ...etc }), don't want save result, since inefficient.

instead, save filters applied in query set of rules in segments collection.

is approach , efficient way that?

should save query object document or define more restrictive schema before saving?


Comments

Popular posts from this blog

wordpress - (T_ENDFOREACH) php error -

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

Using django-mptt to get only the categories that have items -