So… this NoSQL thing

后端 未结 8 1952
醉酒成梦
醉酒成梦 2021-01-30 12:43

I\'ve been looking at MongoDB and I\'m fascinated. It appears (although I have to be suspicious) that in exchange for organizing my database in a slightly different way, I get a

8条回答
  •  隐瞒了意图╮
    2021-01-30 13:30

    I have used MongoDB, Redis (more than key-value pair supports list, set and sorted set), Tokyo Tyrant, Memcached and MySql & PostgreSQL.

    The arguments between NoSQL DB And SQL based DB are completely baseless. You need to choose the appropriate model based on your use case.. If you need ACID compliances, go ahead with SQL DB like PostgreSQL, Oracle etc. You need high performance, but you less care about data, then you may consider noSQL DB. They are fundamentally different technologies. You can even use the combination of models. With NoSQL, you will be missing relationships, constraints and sometimes transaction.. In fact, thats is the one of the reason NoSQL are faster..

    Once I have lost two months of aggregate data with MongoDB.. No clue how I lost them..But I had backup and I have lost few minutes of data. I brought back MongoDB with backup.. If you use NoSQL, take occasional backup or schedule cron jobs for DB backup. This is applicable for SQL DB also.

    Compared to SQL RDBMS, NoSQL DBs are younger and they are currently under full fledged development but NoSQL DBs are matured in their scope ie they meant for high performance, easy replication.

    In my website(stacked.in), I have used only redis DB, it works much much faster than MySQL.

提交回复
热议问题