Artem, hello
(it is part question of DB migration from 1.5.x to 1.7.x)
I have some problem with DB migration, so 1st part of task is convert from
schema less to schema hybrid.
What i want to do is convert V classes to (v_folder, v_item etc…). Is it
possible to do this way?
final ODatabaseDocumentTx database = new ODatabaseDocumentTx("local:"+
dbLocation);
database.open("admin", "admin");
ORecordIteratorClass<ODocument> record = database.browseClass("V");
// database.begin();
for (ODocument oDocument : record) {
Integer itemTypei = (Integer) oDocument.field("itemtype");
ItemType type = getItemTypeFromInt(itemTypei);
String className = oDocument.getClassName();
oDocument.setClassName(type.getClassName());
oDocument.removeField("itemtype");
}
final ODatabaseExport databaseExport = new ODatabaseExport(database,
exportFile.getAbsolutePath(), new OCommandOutputListener() {
@Override
public void onMessage(String arg0) {
logger.debug("export db: "+arg0);
}
});
databaseExport.exportDatabase();
databaseExport.close();
database.close();
Main question is to migrate DB 1.5.x with MANUAL indexes schema less to DB
1.7.x auto indexes, schema hybrid?
What is best way to do it?
Regards
Valentin
---
>> 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] <javascript:>.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>
--
---
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.