Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Relationa database + ORM or Object oriented Database?

Suppose I want to make one application in Object Oriented Programing language let i.e. Java

what is the better thing to do from following?

--Either Use Relational Database i.e. mySQL + Object Relation mapping i.e. Hibernate

or.

--Use Object Oriented Database i.e. db4o

Why?

like image 460
Viraj Avatar asked Sep 07 '26 05:09

Viraj


1 Answers

Well that depends on the application, the data-set etc etc.

Both systems have their advantage. Take also a look at this older stack-overflow question.

Here's a few advantages of each system.

RDBMS + ORM:

  • Lots of tools & libraries available for this combination.
  • Lots of experience and knowledge available: Tutorials, Q&As, best pratices and people which can help are there.
  • Fast for 'flat' data and 'reporting'-kinds of operations.
  • Many languages, tools and libraries can talk to a RDBMS

ODBMS:

  • Faster than a RDBMS + ORM for nested, complex datasets.
  • No complex mapping required.

Drawbacks of each system:

RDBMS + ORM:

  • Mapping between relational and objects is not trivial. Can lead to all kinds of performance issues.

ODBMS:

  • Much, much smaller community and less tools.
like image 58
Gamlor Avatar answered Sep 12 '26 00:09

Gamlor



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!