You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is Issue 100 moved from a Google Code project.
Added by 2010-08-13T07:56:46.000Z by emailmat...@gmail.com.
Please review that bug for more context and additional comments, but update this bug.
Closed (Fixed).
Original labels: Type-Defect, Priority-High, v0.9.22
Original description
<b>What steps will reproduce the problem?</b>
It is possible that I understand the documentation incorrect, in that case please let me know how I can achieve the result I expected. I tried to insert a thousand rows in one transaction:
db.begin(TXTYPE.OPTIMISTIC);
for (int g = 0; g < 1000; g++)
{
ODocument doc = new ODocument(db, "Address");
doc.fromJSON(contents);
doc.save();
System.out.println(g);
}
db.commit();
<b>What is the expected output? What do you see instead?</b>
I expected that a thousand documents were inserted in the database in one transaction for better performance than one transaction for each document. Instead I only see one record is inserted in the database. It works without the transaction, but I really need transactions for the project in which I would like to use OrientDB.
<b>Please use labels and text to provide additional information.</b>
INSERT, transaction
The text was updated successfully, but these errors were encountered:
This is Issue 100 moved from a Google Code project.
Added by 2010-08-13T07:56:46.000Z by emailmat...@gmail.com.
Please review that bug for more context and additional comments, but update this bug.
Closed (Fixed).
Original labels: Type-Defect, Priority-High, v0.9.22
Original description
The text was updated successfully, but these errors were encountered: