-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
To-do/Feature Request list? #17
Comments
I'd like to support the Mongoid API so that people using MongoDB can switch to RethinkDB without too much hassle. I don't want to support embedded documents though, I believe they introduce too much complexity and eventually make the abstraction leak. |
Can you explain a little more about the problems you see with embedded documents? I've been using MongoDB/Mongoid for a while and have found embedded documents quite handy. When looking at the feature list for NoBrainer, that was the first thing that stood out. On a separate note, I'd love to see something like Mongoid::Timestamps. |
Yes for Mongoid::Timestamps. I'm almost tempted to have them enabled by default (something that you opt out as opposed to opt in). Usually, there is very little overhead in having timestamps, and you'll be happy to have them if you want to audit something. |
I definitely agree on the timestamps. Making them default seems reasonable because they're so useful and have little overhead. I can't disagree with any of your specific reservations about embedded documents. They definitely do present some challenges. However, there are situations where they can be very useful and also improve performance (be able to retrieve a single document instead of having to do one or more joins). Also, it is a feature present in RethinkDB, so omitting it from (seemingly the only) Ruby ORM seems like leaving a big hole for users. Just my two cents, though. |
You can always store an array of hashes, or hashes in a field. You would essentially be managing your own embedded docs. |
Yeah, I guess I don't have any specific suggestions on that front. Being able to store arrays and hashes gets you a decent way there, though, so that might be good enough. |
Do you have a list of features you'd like to see implemented?
The text was updated successfully, but these errors were encountered: