Lets say one could have 3 collections: articles, blogs and comments.
Creating queries for all of them would be simple same as creating indexes.
Now, what i wonder is what instead of articles, blogs and comments there would be just one collection called for example
Each item in items would have type like
I don’t know if that’s efficient or is it anti-pattern.
Why one would do such thing?
Mainly it would be convenient for creating newsfeeds and adding new types of content in the future.
It wouldn’t require (re)creating indexes when new type of content is introduced that also can be followed. (Like you can follow your friend on Facebook but also a Page)