你好,游客 登录 注册 搜索
背景:
阅读新闻

OrientDB 1.7 rc2 发布,文档数据库

[日期:2014-03-27] 来源:oschina.net  作者:Linux [字体:大 中 小]

OrientDB 1.7 rc2 发布,此版本更新内容如下:

核心

  • supports retro-compatibility for databases created with OrientDB v1.5 or higher

  • improves performance on ORDER BY against indexes

  • improves performance on RENAME CLASS.

Graph

  • it adds support for vertex-centric traversal by using SQL.

SQL

  • it adds an UPSERT keyword to execute an INSERT or UPDATE based on a condition

  • UPDATE can now ADD to sub-document fields.

Indexes

  • it adds support for external engines. For Studio

  • it adds a new Query Timeline to the History and a new Index Panel.

Orient DB 是一个可伸缩的文档数据库,支持 ACID 事务处理。使用 Java 5 实现。

// OPEN THE DATABASE ODatabaseDocumentTx db = new ODatabaseDocumentTx("remote:localhost/petshop").open("admin", "admin");

// CREATE A NEW DOCUMENT AND FILL IT ODocument doc = new ODocument("Person");
doc.field( "name", "Luke" );
doc.field( "surname", "Skywalker" );
doc.field( "city", new ODocument("City" ).field("name","Rome").field("country", "Italy") );
             
// SAVE THE DOCUMENT
doc.save();

// QUERY THE DOCUMENT
List<ODocument> result = database.query(
  new OSQLSynchQuery>("select * from person where city.name = 'Rome'")).execute();

// PRINT THE RESULT SET
for( ODocument d : result ){
  System.out.println("Person: " + d.field( "name" ) + d.field( "surname" ));
}

db.close();

OrientDB 的详细介绍:请点这里
OrientDB 的下载地址:请点这里

linux
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款