5 ms·
I have never really touched NoSQL for anything serious, yet i have worked with Riak, MongoDB and Redis. In the case of MongoDB i have worked with an ODM on top
by kayoone 13y ago
I have never really touched NoSQL for anything serious, yet i have worked with Riak, MongoDB and Redis. In the case of MongoDB i have worked with an ODM on top of it where i had to define a Schema and Object relations and was left wondering: What is the benefit of this anyway if i still define Schemas and relationsships ? Does it just make sense at a big scale when i would have to shard using MySQL ?
Schema migrations arent that hard today in MySQL with a good framework, so i am not really sold on the benefits for smaller apps.
If i can just save a JSON Object to it, thats cool (however Postgre is goot at that too), but in practice with server side validation and schemas i have to decode/encode anything anyway. Can anyone enlighten me on the real benefit ?
Edit I see many benefits in using Redis though, just for its sheer speed and more as a smart memcached replacement though.
- goldenkey 13y agoThere really is no benefit to using NoSQL if your schema is well defined unless your queries don't use indexes an all you want is a stack of documents. SQL is faster for structures data when the queries rely on well defined indexes and well defined data types
- lucian1900 13y agoAbsolutely no benefit to Mongo. It's even really slow, so there's really no advantage at all. Redis, Riak and the like are actually useful for a change.
- raverbashing 13y agoCan you explain this a little better since you apparently know all three? I know Redis (and Mongo), not Riak, and Redis shines in certain aspects but depending on what you want it's not the right choice.
- annnnd 13y agoMongoDB slow? Could you post a benchmark to support this claim?
- chris_wot 13y agoHe wasn't saying that MongoDB is slow...
- annnnd 13y agoSure he was: "Absolutely no benefit to Mongo. It's even really slow,..."
- chris_wot 13y agoHe did indeed, but it was in response to the following questions: "In the case of MongoDB i have worked with an ODM [by which he means ORM] on top of it where i had to define a Schema and Object relations and was left wondering: What is the benefit of this anyway if i still define Schemas and relationsships ?"
- kayoone 13y agoi actually meant ODM which refers to Object Document Mapping in contrast to ORM which refers to Object Relational Mapping eg: http://mongoosejs.com/ http://mongoosejs.com/ http://docs.doctrine-project.org/projects/doctrine-mongodb-odm/en/latest/ http://docs.doctrine-project.org/projects/doctrine-mongodb-o...