Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bad practice to have ORMs with NoSQL stores?

I use Redis (redis-py) inside my Python platform. Recently it was suggested that I switch to an ORM.

E.g.: python-stdnet, rom or redisco

Is use of ORMs considered bad practice in the NoSQL world?

like image 493
stackoverflowuser95 Avatar asked Dec 28 '13 12:12

stackoverflowuser95


1 Answers

Ultimately the question boils down to at what layer do you want to write code.

Do you want to write code that manipulates data structures in a remote database, or do you want to write higher-level code that uses the abstractions built on top of those data structures? You can think of it as a similar question about relational databases as do you want to write SQL, or do you want to write higher-level code?

Personally, despite using rom myself for a variety of tasks (I am the author), I also directly manipulate Redis in the same projects where it makes sense.

like image 132
Josiah Avatar answered Sep 28 '22 15:09

Josiah