L
L
lanhorn2014-10-30 21:58:30
MySQL
lanhorn, 2014-10-30 21:58:30

Which database to choose for the comment feed?

What database is better to use for an auto-updated comment feed like comments on facebook and VK? On average, about 1000 comments, dozens of images and new users are added per day. Choice between MySQL and MongoDB.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
anyd3v, 2014-10-30
@anyd3v

Which one you know better and use. Mongi will need an order of magnitude more resources than mysql. As an alternative to mysql you can look at percona/mariadb. Any of these tools can be optimized, without sufficient knowledge, you can write crookedly even in Mongo, even in mysql.

O
Optimus, 2014-10-30
Pyan @marrk2

I tested 1 million comments with likes on mysql, it works quickly, it turns out that you will definitely have enough for 3 years, and then look.

S
Sergey Romanov, 2014-10-31
@Serhioromano

I think the question is not between MySQL and MongoDB, but between SQL and No-SQL. Or between MySQL, SQLite, MS SQL, Oracle, ... and MongoDB, ElasticSearch, CouchDB, RavenDB, ...
As I understand it, you want to create an analogue of social comments that can be integrated into other sites.
I would use a SQL database since in this case the data structure is static and is unlikely to expand or change. Volumes also allow you to make a fast system based on SQL.
On the other hand, if I wanted maximum performance with minimum server resources, I would use no-SQL namely ElasticSearch.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question