Browse Source

Commented out db population script

sksamuel 11 years ago
parent
commit
26e32e888a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      scruffy/src/main/scala/scruffy/examples/Test2Endpoint.scala

+ 2 - 2
scruffy/src/main/scala/scruffy/examples/Test2Endpoint.scala

@@ -13,8 +13,8 @@ class Test2Endpoint(hostname: String) extends EndpointProvider {
   val fields = DBObject("_id" -> true, "randomNumber" -> true)
 
   //uncomment to populate
-  for ( k <- 1 to 10000 )
-    collection.save(DBObject("_id" -> k, "id" -> k, "randomNumber" -> random.nextInt(10000).toDouble))
+  //for ( k <- 1 to 10000 )
+  //  collection.save(DBObject("_id" -> k, "id" -> k, "randomNumber" -> random.nextInt(10000).toDouble))
 
   get("db").json {
     req =>