Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Orientdb cleanup #586

Merged
merged 2 commits into from
Jan 22, 2016
Merged

Orientdb cleanup #586

merged 2 commits into from
Jan 22, 2016

Conversation

kruthar
Copy link
Collaborator

@kruthar kruthar commented Jan 18, 2016

Two things fixed here:

  • Added logging
  • Moved Intent to a property, before it was always being called as massiveinsert which, is not always a good thing to do. It should be at the control of the user.

dictionary = db.getMetadata().getIndexManager().getDictionary();
if (!db.getMetadata().getSchema().existsClass(CLASS)) {
db.getMetadata().getSchema().createClass(CLASS);
}

db.declareIntent(new OIntentMassiveInsert());
if (intent.equals(ORIENTDB_MASSIVEINSERT)) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should these be set automatically per type of action? Like insert should be massiveinsert, read should be massiveread, etc? Or is it assumed that these settings will be set when someone runs a workload?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, I don't think they should be set automatically, that is actually why I moved this to a user property. It is an optimization, not a necessary action. Prior to this change MassiveInsert was being set no matter what which didn't much make since for workloads that weren't inserting.

@risdenk
Copy link
Collaborator

risdenk commented Jan 21, 2016

👍 looks good to me.

kruthar added a commit that referenced this pull request Jan 22, 2016
@kruthar kruthar merged commit 5c1a464 into brianfrankcooper:master Jan 22, 2016
@kruthar kruthar deleted the orientdb-cleanup branch January 22, 2016 14:20
@risdenk risdenk mentioned this pull request Feb 15, 2016
jaricftw pushed a commit to jaricftw/YCSB that referenced this pull request Jul 19, 2016
jaricftw pushed a commit to jaricftw/YCSB that referenced this pull request Jul 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants