Closed jakcharlton closed 10 years ago
Oh crap, RethinkDB merges the hashes instead of replacing them :( This makes me sad. Perhaps it's time to start thinking about embedded documents.
I knew about the merge instead of replace part - don't know if there's a way to say 'replace'
As to embedded docs, yeah they would be useful, but so would just plain Hashes be ... I'm still torn as to how much I'll use Nobrainer vs ReQL directly, as most of my app prefers hashes to models
On Mon, Dec 23, 2013 at 1:59 PM, Nicolas Viennot notifications@github.comwrote:
Oh crap, RethinkDB merges the hashes instead of replacing them :( This makes me sad. Perhaps it's time to start thinking about embedded documents.
— Reply to this email directly or view it on GitHubhttps://github.com/nviennot/nobrainer/issues/39#issuecomment-31102428 .
Even though the issue is fixed, If your app prefers hashes to models, then nobrainer is probably not a good fit. (but I find it quite weird that your app prefers hashes over models).
If you need to use plain RQL more than 10% of the time, it means NoBrainer is useless and fails to deliver. I'd be happy to get your feedback to improve nobrainer.
PS: don't put symbols in your hashes, because they'll come back as strings.
My app is using Rethink as it is heavily schema customisable by users.
Sometimes it helps to have a model, but in others it hurts. Dynamic attributes in Nobraimer will help somewhat, but I'm sure already there are things I'll need to use ReQL for
That's not to say Nobraimer is useless, it just solves one problem, not all of them :)
On 23 Dec 2013, at 2:08 pm, Nicolas Viennot notifications@github.com wrote:
Even though the issue is fixed, If your app prefers hashes to models, then nobrainer is probably not a good fit. (but I find it quite weird that your app prefers hashes over models).
If you need to use plain RQL more than 10% of the time, it means NoBrainer is useless and fails to deliver. I'd be happy to get your feedback to improve nobrainer.
PS: don't put symbols in your hashes, because they'll come back as strings.
— Reply to this email directly or view it on GitHub.
Okay, well, let me know how I can assist your needs :)
You've already been amazingly helpful and Nobrainer already solved the Devise issue :) just works
On 23 Dec 2013, at 2:20 pm, Nicolas Viennot notifications@github.com wrote:
Okay, well, let me know how I can assist your needs :)
— Reply to this email directly or view it on GitHub.
Awesome!!
btw, I'd be happy to pair with you on your project :)
Really appreciate the help and updates ... jakcharlton@gmail.com might save having conversations over issues threads :)
It seems assigning a value to a field (when it contains a hash) can leave the in memory record and the on disk one out of synch ...