News for hackers. Stuff that matters.
Re:How we spent $30k in Firebase in less than 72 hours by bsaul on Thursday August 02, 2018 @04:32AM (#17670043)
Not really. N+1 is about « to many » relationships. You would need at least 2 collections to run into that problem.

In sql equivalent, what happened would be more like doing a full table scan on each query instead of using an index ( and not even that, because pre-computing a total isn’t really like an index)

This kind of « account balance » problems are typical of the problems where transactions are really useful. But also historically the kind of problem where nosql techs do a poor job ( they’re more built with « eventual consistency » in mind than atomic or transactional behaviors)

There are no comments on this comment yet.