My application run trough categories, i want to manage a schema that will
contain all the categories that been runned trough but a single time, so no
duplicates will occure,
So i created "Categories" Schema and index the fields "mainCategoryName",
"categoryName",
"categoryId"
So every categoryId can apear once in every categoryName and every
mainCategoryName..
Right now im using this method:
categoryDoc = new ODocument("Categories").field("mainCategoryName",
threadReturn.categoryObject.categoryName).field("categoryName", inCat.
getValue()).field("categoryId", threadReturn.categoryObject.categoryId);
try{// Create the record, or get the duplicate one
categoryDoc.save();
}catch(ORecordDuplicatedException e){
categoryDoc = e.getRid().getRecord();
}
The problem is that a lot of "Duplicates" Warnings is apears and im pretty
sure this is not the right method to do so..
Plus im getting a lot of
WARNING: Connection re-acquired transparently after 78ms and 1 retries to
server '172.31.10.134:2424/BLA': no errors will be thrown at application
level
Which i think as somthing to do with the overload of the log that throw
warning and make the DB loss connection?
Any help :)?
--
---
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.