Switching from MySQL to Cassandra - Pros/Cons?

后端 未结 3 1452
梦毁少年i
梦毁少年i 2020-12-22 16:31

For a bit of background - this question deals with a project running on a single small EC2 instance, and is about to migrate to a medium one. The main components are Django,

3条回答
  •  心在旅途
    2020-12-22 17:31

    The Django-cassandra is an early beta mode. Also Django didn't made for no-sql databases. The key in Django ORM is based on SQL (Django recommends to use PostgreSQL). If you need to use ONLY no-sql (you can mix sql and no-sql in same app) you need to risky use no-sql ORM (it significantly slower than traditional SQL orm or direct use of No-SQL storage). Or you'll need to completely full rewrite django ORM. But in this case i can't presume, why you need Django. Maybe you can use something else, like Tornado?

提交回复
热议问题