Answer the question
In order to leave comments, you need to log in
Where is the best place to store user information in MySQL or MongoDB?
Which one is the safest?
Answer the question
In order to leave comments, you need to log in
These are two opposite repositories. Mysql implies a clear structure and uniformity of data in the first place, while mongo does not follow the data structure at all, do you want an array? please want homogeneous data? please!
In mysql, you create a data structure and then you have to follow it, whether you want it or not, the database itself decides whether you can write data or it doesn’t fit, in monge you have to control everything with your hands, it may be that instead of user information, you will receive a structure only with one field if you miss something while recording, and that's okay.
Therefore, you need to choose purely based on needs.
Do you have a list of fields? Need data rigor? Muscle.
Do you have heterogeneous data? the entire profile consists of many fields, some may not exist at all and is this the norm? Mongo.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question