I need to choose between two databases. In one approach, it will store relational data, but to work with it I want to use Bookshelf ORM. In other way, I can use MongoDB, and store data as an object with no need to use ORM to use data as an object.
So, which is preferred with CRUD approach?
The application is designed to be as fast as possible.
Data sample:
{
"ownedBy": "(someProjectID)",
"keyword": "node",
"references": [
{
"type": "post",
"groupId": -1478414,
"messageId": 14578,
"text": "Node.js is great language!"
},
{
"type": "comment",
"groupId": -1478414,
"messageId": 744114,
"text": "Yeah, I agree. Node is very flexible"
}
]
}
In this situation , We can touch some points with asking following use cases.
If that questions' answer is no , you should select MongoDB.
Then ;
So use cases can be changed according to requirements. In this case you want faster development, and also just create a CRUD application with node.js. I advice to you MongoDB. Good luck.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With