/// <summary> /// Use this method to initialize your stress test. /// You can drop existing collection, load initial data and run checkpoint before finish /// </summary> public override void OnInit(SqlDB db) { db.Execute("DROP COLLECTION col1"); db.Execute("INSERT INTO col1 VALUES { _id: 1, name:'John' }"); db.Execute("CHECKPOINT"); }
public void Update_Col1_Active(SqlDB db) { db.Execute("UPDATE col1 SET active = true WHERE active = false"); }
public void Insert_Col1(SqlDB db) { db.Execute($"INSERT INTO col1:int VALUES {{ name: 'John-{Guid.NewGuid()}', active: false }}"); }