Hi all;
I am trying to migrate data from mysql to orient but I cannot succeed it. I
use orient dbms.
I have two types of verteces Member and Cookie. First I created Member
verteces then try to create Cookie vertex and edges between Member and
Cookie. I want to create one cookie vertice for each relation and creates
more than one relations from Cookie.But I cannot succeed it. Is there
anyway to do it. If Member vertices and Cookie vertices are created before
, is there any way to create just edges between vertices.
Following config fails because if cookie vertice created before it skips
create cookie vertice and also it skips to create edge between cookie and
member.
Best Regards.
{
"config": {
"log": "info"
},
"extractor": {
"jdbc": {
"driver": "com.mysql.jdbc.Driver",
"url": "",
"userName": "l",
"userPassword": "T",
"query":"select compId, member_id from login_log where member_id
in( )"
, "fetchSize": 10000
}
},
"transformers": [
{
"vertex": {
"class": "Cookie",
"skipDuplicates": true
}
},
{
"edge": {
"class": "usedCookie",
"direction": "out",
"joinFieldName": "member_id",
"lookup": "Member.member_id",
"unresolvedLinkAction": "CREATE"
}
}
],
"loader": {
"orientdb": {
"dbURL":
"plocal:/usr/java/orientdb-community-2.0.5/databases/Elek",
"dbUser": "root",
"dbPassword": "root",
"dbAutoCreate": true,
"tx": true,
"batchCommit": 1000,
"wal": false,
"dbType": "graph",
"classes": [
{
"name": "Cookie",
"extends": "V"
}
],
"indexes": [
{
"class": "Cookie",
"fields": [
"compId:String"
],
"type": "UNIQUE_HASH_INDEX"
}
]
}
}
}
--
---
You received this message because you are subscribed to the Google Groups
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.