Package com.orientechnologies.orient.core.intent

Examples of com.orientechnologies.orient.core.intent.OIntentMassiveInsert


      int deletedRecords = 0;

      Random rnd = new Random();
      ODatabaseDocumentTx db = new ODatabaseDocumentTx(URL);
      db.open("admin", "admin");
      db.declareIntent(new OIntentMassiveInsert());

      try {
        while (cont) {
          while (true) {
            ODocument document = db.load(docContainerRid);
View Full Code Here


    OSchema schema = database.getMetadata().getSchema();
    schema.createClass("Account");

    record = database.newInstance();

    database.declareIntent(new OIntentMassiveInsert());
    database.begin(TXTYPE.NOTX);

    storage = database.getStorage();
  }
View Full Code Here

  public static void main(String[] iArgs) throws InstantiationException, IllegalAccessException {
    Orient.instance().getProfiler().startRecording();

    final ODatabaseDocumentTx database = new ODatabaseDocumentTx(System.getProperty("url")).open("admin", "admin");

    database.declareIntent(new OIntentMassiveInsert());
    database.begin(TXTYPE.NOTX);

    long time = System.currentTimeMillis();

    final ODocument document = new ODocument("Employee");
View Full Code Here

  public DictionaryPutSpeedTest() throws InstantiationException, IllegalAccessException {
    super(1000000);

    String url = System.getProperty("url");
    database = new ODatabaseFlat(url).open("admin", "admin");
    database.declareIntent(new OIntentMassiveInsert());

    record = database.newInstance();
    startNum = 0;// database.countClusterElements("Animal");

     Orient.instance().getProfiler().startRecording();
View Full Code Here

    public void init() {
      OrientGraphFactory factory = new OrientGraphFactory(URL);
      graph = factory.getNoTx();
      factory.close();

      graph.getRawGraph().declareIntent(new OIntentMassiveInsert());

      superNode = graph.getVertex(superNodeRID);
    }
View Full Code Here

    else
      database.create();

    record = database.newInstance();

    database.declareIntent(new OIntentMassiveInsert());
    database.begin(TXTYPE.NOTX);
  }
View Full Code Here

    // REMOVE THE INDEX
    System.out.println("Remove index...");
    database.getMetadata().getSchema().getClass("Profile").getProperty("nick").dropIndexes();
    System.out.println("Ok");

    database.declareIntent(new OIntentMassiveInsert());
    database.begin(TXTYPE.NOTX);
  }
View Full Code Here

  private int topThreshold;
  private int bottomThreshold;

  @BeforeClass
  public void setUp() throws Exception {
    database.declareIntent(new OIntentMassiveInsert());
  }
View Full Code Here

    // insert();
    query();
  }

  public static void insert() {
    database.declareIntent(new OIntentMassiveInsert());
    database.begin(TXTYPE.NOTX);
    long ndoc = 1000000;
    ODocument doc = new ODocument();

    System.out.println("Inserting " + ndoc + " docs...");
View Full Code Here

    Orient.instance().getProfiler().startRecording();

    database = new ODatabaseDocumentTx(System.getProperty("url")).open("admin", "admin");
    record = database.newInstance();

    database.declareIntent(new OIntentMassiveInsert());
    database.begin(TXTYPE.NOTX);

    beginRecords = database.countClass("Account");
    System.out.println("Total accounts: " + beginRecords);
  }
View Full Code Here

TOP

Related Classes of com.orientechnologies.orient.core.intent.OIntentMassiveInsert

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.