开发者

Is Using Db4o For Web Sites a judicious choice?

开发者 https://www.devze.com 2022-12-10 05:02 出处:网络
Is using Db4o as a backend datastore for a Web site (ASP.NET MVC) a judicious choice as an alterna开发者_JAVA技巧tive to MS SQL Server ?The main issue with DB4o is: Can you cut your object net in some

Is using Db4o as a backend datastore for a Web site (ASP.NET MVC) a judicious choice as an alterna开发者_JAVA技巧tive to MS SQL Server ?


The main issue with DB4o is: Can you cut your object net in some useful manner? If not, then you'll keep too many objects in RAM for too long and your performance will suffer.

For example, in SQL, you can create a cursor and then easily traverse a huge set of results. You can also query for a small set of columns while DB4o always loads the whole objects (and its references and the references of the references). With DB4o, you must make sure that DB4o doesn't try to pull in all objects from the DB at once.

You'll also need to get used to querying things your "DB" by filling out example objects which feels weird in the beginning.


That depends, what kind of site your creating, the traffic your expecting etc...Are you going to handle a million requests a second, or 100 a minute...Does your domain justify using a Object Database? Do you really need it?

In general, most sites are not heavy hitters so they might not require all the scale out functionality (I believe and this is only a belief that traditional RDBMS have been tested and designed to handle extreme loads where as Object DB's might not have been given the same attention).

So then the question is does your domain justify this? Your going to base a core piece of your site on a technology that you will not find a lot of experts in. So how do you handle turn over rate? Are you willing to take the cost associated with training all current and future employees on this?

0

精彩评论

暂无评论...
验证码 换一张
取 消