M
M
magary42015-06-05 12:24:12
Iron
magary4, 2015-06-05 12:24:12

How to implement this correctly in mongo?

for example, there are users and there are coordinates. if I implemented it on a relational database, it would be 2 tables, mongo offers the idea of ​​storing coordinates directly in user. but as far as I read from this, there may be problems described here habrahabr.ru/post/231213
what are the disadvantages of storing "the old fashioned way" in two collections without nesting and fetching this with two consecutive queries?

Answer the question

In order to leave comments, you need to log in

5 answer(s)
A
Artem @Jump, 2018-08-09
Tag curated by

If there is no HDD, definitely - 250GB
If there is an HDD, 120 may well be enough.

4gb ram
It would also be nice to add at least 4gb
Initially I looked at SAMSUNG 850 MZ-7LN120BW 120GB, but now I'm considering WD Blue WDS250G2B0A 250GB. The latter has better characteristics, although it is smaller.
Of course, the first one is better, but the second one will also work for a laptop, you won’t see much difference there.

X
xmoonlight, 2018-08-09
@xmoonlight

SSD drive INTEL 545s Series SSDSC2KW256G8X1 256GB, 2.5", SATA III [ssdsc2kw256g8x1 958660] ~5500r
The most reliable device among all SSDs.

S
SOTVM, 2018-08-09
@sotvm

anyone
with a lower price
and a longer warranty (there is a year, there are three
for system 120, there is enough eye
for ssd file cleaning

Y
Yuri Shikanov, 2015-06-05
@dizballanze

You are facing a typical decomposition problem in nosql. It is necessary to decide depending on how this data will eventually be used. If you end up pulling out the entire collection often, then it makes sense to put all the data in users (if the data is not more than 16MB per document).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question