Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

2
Are change streams the only way to "join" dynamic data via denormalization?
Post Body

I've been running to this issue endlessly... I have a table of data, for which there's one column that we want to sort upon in some way, but the data needs to be populated. So the entire table query needs to be slowed down as i cant use indexing to sort or skip/limit, and now need to load a ton of data into the webapp to do so.

I've seen an open source solution to this floating around, and also I've been thinking about it for a while. But has anybody used change streams to sync data from one collection to another? adding "virtual" fields that you can index/sort/query with on one single collection which are populated via the CS.

Additionally, im curious if there are other ways to go about this, one interesting feature mongo released is On-Demand materialized views. Though the major downside to them is that they're snapshotted, and I'm looking for as close to real-time as possible.

Note:

I'm working at a startup thats going through some fast growth. We started with mongo, and ended up with a bunch of use cases involving joining large sets of data. though it may be "better" to have used a relational DB, hindsight is 20/20 haha.

Author
Account Strength
90%
Account Age
7 years
Verified Email
Yes
Verified Flair
No
Total Karma
1,518
Link Karma
962
Comment Karma
556
Profile updated: 4 days ago
Posts updated: 1 day ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
3 years ago