English 中文(简体)
面向目标的数据库是否比与一个有办公室关系的数据库更适合选择?
原标题:Can object oriented databases be a better option than a relational database with an ORM?
  • 时间:2010-05-20 14:51:36
  •  标签:
  • database
  • orm

仅仅认为,与一个办公室关系网的关系管道在许多方面与一个目标数据库非常相似。 我的经验完全由人力资源管理司掌握,因此,在我看来,面向目标的数据库非常相似,但我无法肯定地说,没有经验。

如果你使用面向目标的数据库和用户数据,你可以进行比较? 与成果管理制S+ORM相比,哪些薄弱环节与面向目标的数据库有关?

最佳回答

与成果管理制S+ORM相比,目标数据库的弱点是什么?

最大的弱点是缺乏标准化<>>:没有标准文本、没有标准查询语言(口服体液酸液的尝试是重大失败),因此缺乏可移动性和可操作的工具(用于备份、存档、移徙等)。 在数据方面,你并不希望。

这就解释了海事组织为何从收养角度看,房舍管理处是失败的,以及为什么房舍管理司将留守,而不管NSQL运动如何(我感觉到,房舍管理处供应商认为NSQL运动是在其产品重新销售后回来的机会)。

问题回答

我的经验:

  • RDBMS:
    • Frankly, I don t like working with SQL, a 15-year old language, but the reality is that you re forced to if you want anything usable, such as bulk inserts (the LINQ-to-Entity ORM framework does not support bulk inserts, so it takes 30 seconds for a 20,000 record insert, compared to 500ms for a bulk insert in SQL). You end up having to use ADO.NET for database insertions.
    • There are some advantages of an RDBMS over an object database, namely, the data is independent of the calling application (however, this is a weakness also, as the mapping layer makes everything slower, more complex, and more brittle).
    • Bottom line: Spent 6 weeks with the LINQ-to-Entity ORM framework and Microsoft SQL Server 2008 R2. Reasonably steep learning curve.
  • Object databases: Tried an object database, namely, the free, open source db4o.
    • Discovered that I could persist my objects with one line of code.
    • No schema changes to deal with, it just worked.
    • Instant support for POCO (Plain Old Class Objects). Create your class in code, then persist it. Its possible to do the same with the Entity framework, however, its a lot of work with manual mapping, and it breaks very easy.
    • Turn on transparent persistence, and it has automatic lazy loading in the background - no more checking for objects that are not loaded because of lazy loading in the Entity framework.
    • The performance of object databases is also impressive: if you have 10 million rows in an object database, and indexing turned on, its 16ms for a three-column select. That s decent.
    • Bottom line: After 1 week I had the same solution as using a RDBMS for persistence, however, it was much cleaner, much less code, and more maintainable - and if I really wanted, I could use use a service to synchronize the db4o database with MSSQL.

关于企业世界中真正的大型系统,包括表格中的2.5亿英亩,例如sharding;以及

我怀疑供应商没有接受目标数据库的原因之一,因为数据库市场每年价值30亿美元,现在没有理由杀害现金。

申斥: http://www.microsoft.com/en/us/rel=“nofollow”

Chris 同意:

... object/relational system would be nothing more nor less than a true relational system ... A proper object/relational system is just a relational system with proper type support ... which just means it s a proper relational system, no more and no less.

Frank and Relational Theory: How to written Accuratekou Code, p.36





相关问题
what is wrong with this mysql code

$db_user="root"; $db_host="localhost"; $db_password="root"; $db_name = "fayer"; $conn = mysqli_connect($db_host,$db_user,$db_password,$db_name) or die ("couldn t connect to server"); // perform query ...

Users asking for denormalized database

I am in the early stages of developing a database-driven system and the largest part of the system revolves around an inheritance type of relationship. There is a parent entity with about 10 columns ...

Easiest way to deal with sample data in Java web apps?

I m writing a Java web app in my free time to learn more about development. I m using the Stripes framework and eventually intend to use hibernate and MySQL For the moment, whilst creating the pages ...

join across databases with nhibernate

I am trying to join two tables that reside in two different databases. Every time, I try to join I get the following error: An association from the table xxx refers to an unmapped class. If the ...

How can I know if such value exists in database? (ADO.NET)

For example, I have a table, and there is a column named Tags . I want to know if value programming exists in this column. How can I do this in ADO.NET? I did this: OleDbCommand cmd = new ...

Convert date to string upon saving a doctrine record

I m trying to migrate one of my PHP projects to Doctrine. I ve never used it before so there are a few things I don t understand. In my current code, I have a class similar to this: class ...

热门标签