Reputation: 41442
There is a lot of information out there on object-relational mappers and how to best avoid impedance mismatch, all of which seem to be moot points if one were to use an object database. My question is why isn't this used more frequently? Is it because of performance reasons or because object databases cause your data to become proprietary to your application or is it due to something else?
Upvotes: 10
Views: 4953
Reputation: 15907
It has nothing to do with performance. That is to say, basically all applications would perform better with an OODB. But that would also put lots of DBA's out of work/having to learn a new technology. Even more people would be out of work correcting errors in the data. That's unlikely to make OODBs popular with established companies. Gavin seems to be totally clueless, a better link would be Kirk
Upvotes: 2
Reputation: 948
jodonnel, i dont' see how use of object databases couples application code to the data. You can still abstract your application from the OODB through using a Repository pattern and replace with an ORM backed SQL database if you design things properly.
For an OO application, an OO database will provide a more natural fit for persisting objects.
What's probably true is that you tie your data to your domain model, but then that's the crux!
Wouldn't it be good to have a single way of looking at both data, business rules and processes using a domain centric view?
So, a big pro is that an OODB matches how most modern, enterprise level object orientated software applications are designed, there is no extra effort to design a data layer using a different (relational) design. Cheaper to build and maintain, and in many cases general higher performance.
Cons, just general lack of maturity and adoption i reckon...
Upvotes: 0
Reputation: 6846
I've been using db4o which is an OODB and it solves most of the cons listed:
The pros I'm interested in are:
I agree - OODB have a long way to go but they are going. And there are domain problems out there that are better solved by OODB,
Upvotes: 10
Reputation: 2496
Sören
All of the reasons you stated are valid, but I see the problem with OODBMS is the logical data model. The object-model (or rather the network model of the 70s) is not as simple as the relational one, and is therefore inferior.
Upvotes: 0
Reputation: 50417
One objection to object databases is that it creates a tight coupling between the data and your code. For certain apps this may be OK, but not for others. One nice thing that a relational database gives you is the possibility to put many views on your data.
Ted Neward explains this and a lot more about OODBMSs a lot better than this.
Upvotes: 2
Reputation: 25409
Cons:
Cannot be used by programs that don't also use the same framework for accessing the data store, making it more difficult to use across the enterprise.
Less resources available online for non SQL-based database
No compatibility across database types (can't swap to a different db provider without changing all the code)
Versioning is probably a bit of a bitch. I'd guess adding a new property to an object isn't quite as easy as adding a new column to a table.
Upvotes: 1
Reputation: 19930
Naturally, the object-oriented model is more familiar to the developer, and, as you point out, would spare one of ORM. But thus far, the relational model has proven to be the more workable option.
See also the recent question, Object Orientated vs Relational Databases.
Upvotes: 12