Is OrientDB compatible with ACID?

I study OrientDB for academic research. One big part that we need to pay attention to is the ACID paradigm.

The OrienDB manual says:

OrientDB is a DBMS compatible with ACID.

It also says:

When you create a property, OrientDB checks the data for the property and type. If the persistent data contains incompatible values ​​for the specified type, the creation of the property fails. It does not apply any other restrictions to persistent data.

Thus, external RIDs will not check if the point points to an existing record or not? If yes, then why is IRID compatible if C is not valid?

Example: There are Writer and Blog classes with the Blog.author LINK Writer property. Writer has only one entry with RID = # 12: 0.

:

Insert into Blog CONTENT {"author" : "#12:1"}

RID = # 12: 1, OrientDBh . Java API:

ODatabaseDocumentTx db = new ODatabaseDocumentTx(...);

    ODocument newBlog = new ODocument("Blog");
    newBlog.field("author", new ORecordId(12,1) );

    try{
        db.begin();
        newBlog.validate();
        newBlog.save();
        db.commit();
    }
    catch(Exception e){
        System.out.println(e.getMessage());
        e.printStackTrace();
        db.rollback();
    }

    db.close(); 
}

, ACID OrientDB, RID , , ?

+4
1

API , RID , , , , . , .

+1
source

Source: https://habr.com/ru/post/1624886/


All Articles