A
A
Alexander2014-12-09 15:17:47
Ruby on Rails
Alexander, 2014-12-09 15:17:47

What to use in Rails to organize a database, MongoDB or (pg, sqlite)?

We are developing an information portal, we need high performance. I heard a lot about NoSQL databases, I was very attracted to Monga, if anyone has experience in using and implementing projects, please share.

Answer the question

In order to leave comments, you need to log in

5 answer(s)
K
Kirill Shirinkin, 2014-12-10
@fodoyko

Simple version: take PostgreSQL.
Complex: Depends on the data. And then take PostgreSQL.

D
DarkCoder, 2014-12-18
@DarkCoder

You can't go wrong with PostgreSQL.

  • ActiveRecord is much easier to work with than Mongoid, plus better documentation and in general there are a lot more questions on Stackoverflow (16264 vs 940)
  • Whatever they say about the advantages of schemaless, in the end, most databases have a structure, and in this case a relational database is more reliable, faster and easier to maintain
  • If you still need to store schemaless data, then PostgreSQL supports hstore, json and jsonb data types with full indexes and internal content search

V
Viktor Vsk, 2014-12-09
@viktorvsk

I want to do transportation in the city, please tell me which car to buy: a sedan or a truck?

P
Puma Thailand, 2014-12-10
@opium

For an information portal, it will obviously be faster than ordinary relationals. postgresql mysql

S
Sergey, 2014-12-10
@mastedm

If you yourself cannot answer this question, then either the task is beyond your strength, or take what you own. In any case, from the start you will not guess all the possible problems of your particular portal, so you still have to redo something. Maybe you will even switch to exotics such as generating statics and returning it through Nginx. Then it will be purple, which database, at least sqlite

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question