Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upDocumentation: Join/Merge #541
Closed
Comments
This comment has been minimized.
This comment has been minimized.
Sounds like you’re trying to treat NeDB as a relational database (SQL) rather than a document store (NoSQL). Not recommended... wrong paradigm. |
This comment has been minimized.
This comment has been minimized.
Hmm, well many NoSQL databases offer Joins ;) anyway thx Edit: I have a db called Covers which contain images and putting this in every songs and albums would require a huge amount of disk space :\ |
This comment has been minimized.
This comment has been minimized.
https://www.mongodb.com/blog/post/6-rules-of-thumb-for-mongodb-schema-design-part-1 Try some of those tips... you might need a separate log style collection, but performance should be very high with simultaneous requests. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How can I join 2 datasets and if possible sort them?
I'd like to join the artist_id from a song to the id of the artists dataset and sort the results by artists.
My previous code, before splitting things:
The issue is that I might need to display all artists or all albums made by an artist and I think making a separate dataset for this is better.
What I would like
or
Is this possible? the documentation doesn't cover this.