2015-06-26 14:37:15
PHP
, 2015-06-26 14:37:15

Are there mongodb lessons preferably in conjunction with php in Russian?

I don't fully understand the concept of document-oriented databases.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
O
OnYourLips, 2015-06-26
@OnYourLips

I don't fully understand the concept of document-oriented databases.

This is the last century when data was unrelated.
In its pure form, it can only be used for very specific tasks, it is usually convenient to lay out a small part (for example, EAV) as a document, and everything else as ordinary entities with relationships.
Therefore, it is worth choosing a DBMS that supports both relationships and documents, such as postgresql.
Mongo has one plus: low level of occurrence.

O
Oleg, 2015-06-26
@wani

The main advantage of MongoDB is the absence of rigid schemas. You can insert a different number of attributes into documents.
In MongoDB, everything is stored in collections (by analogy with RDBMS, these are tables). Documents are stored in them (by analogy, these are records in a table).
Cons of MongoDB:

  • No Explicit Transactions
  • No JOINs
  • There are not as many tools as there are for RDBMS

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question