简体   繁体   English

将SQL Server SQL_VARIANT数据类型导入OrientDB顶点-我应该使用哪种属性类型?

[英]Importing SQL Server SQL_VARIANT data type to OrientDB vertex - which property type should I use?

I am evaluating OrientDB as a replacement for MS SQL Server. 我正在评估OrientDB作为MS SQL Server的替代品。 One of the SQL Server tables I need to import into OrientDB contains time-series data with the value column using a SQL_VARIANT data type. 我需要导入OrientDB的SQL Server表之一包含使用SQL_VARIANT数据类型的value列的时间序列数据。 I'm struggling to identify the best data type to use for the equivalent property in a new OrientDB vertex. 我正在努力确定最佳的数据类型,以用于新的OrientDB顶点中的等效属性。 I'm hesitant to convert it a STRING, but I don't see an equivalent variant type. 我不愿意将其转换为STRING,但没有看到等效的变体类型。 Any recommendations? 有什么建议吗?

OrientDB Teleporter is a tool that synchronizes a RDBMS to OrientDB database. OrientDB Teleporter是将RDBMS同步到OrientDB数据库的工具。 You can use Teleporter to: 您可以使用Teleporter进行以下操作:

  • Import your existing RDBMS to OrientDB 将现有的RDBMS导入到OrientDB
  • Keep your OrientDB database synchronized with changes from the RDBMS. 使OrientDB数据库与RDBMS中的更改保持同步。 In this case the database on RDBMS remains the primary and the database on OrientDB a synchronized copy. 在这种情况下,RDBMS上的数据库仍然是主数据库,而OrientDB上的数据库则是同步副本。 Synchronization is one way, so all the changes in OrientDB database will not be propagated to the RDBMS Teleporter is fully compatible with several RDBMS that have a JDBC driver: we successfully tested Teleporter with Oracle, SQLServer, MySQL, PostgreSQL and HyperSQL. 同步是一种方法,因此OrientDB数据库中的所有更改都不会传播到RDBMS Teleporter与具有JDBC驱动程序的多个RDBMS完全兼容:我们已经成功地使用Oracle,SQLServer,MySQL,PostgreSQL和HyperSQL测试了Teleporter。 Teleporter manages all the necessary type conversions between the different DBMSs and imports all your data as Graph in OrientDB. Teleporter管理着不同DBMS之间所有必需的类型转换,并将所有数据作为Graph导入OrientDB中。

NOTE: This feature is available both for the OrientDB Enterprise Edition and the OrientDB Community Edition. 注意:此功能适用于OrientDB Enterprise Edition和OrientDB Community Edition。 But beware: in community edition you can migrate your source relational database but you cannot enjoy the synchronize feature, only available in the enterprise edition. 但要注意:在社区版中,您可以迁移源关系数据库,但不能享受仅在企业版中可用的同步功能。

How Teleporter works 传送器是如何工作的
Teleporter looks for the specific DBMS meta-data in order to perform a logical inference of the source DB schema for the building of a corresponding graph model. Teleporter寻找特定的DBMS元数据,以便对源DB模式进行逻辑推断以构建相应的图形模型。 Eventually the data importing phase is performed. 最终执行数据导入阶段。

Teleporter has a pluggable importing strategy. Teleporter具有可插入的导入策略。 Two strategies are provided out of the box: 开箱即用提供了两种策略:

  • naive strategy, the simplest one 天真的策略,最简单的一种
  • naive-aggregate strategy. 天真的聚合策略。 It performs a "naive" import of the data source. 它执行“原始”数据源导入。 The data source schema is translated semi-directly in a correspondent and coherent graph model using an aggregation policy on the junction tables of dimension equals to 2 To learn more about the two different execution strategies click here. 在维度等于2的联结表上使用聚合策略,在对应和相干图模型中将数据源模式半直接转换。要了解有关这两种不同执行策略的更多信息,请单击此处。

For more information: http://orientdb.com/docs/3.0.x/teleporter/Teleporter-Home.html 有关更多信息: http : //orientdb.com/docs/3.0.x/teleporter/Teleporter-Home.html

Hope it helps 希望能帮助到你

Regards 问候

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM