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
Post a Comment