2009-02-02 18:12:33 +00:00
|
|
|
#!/usr/bin/env ruby
|
|
|
|
|
|
|
|
require File.join(File.dirname(__FILE__), '_common.rb')
|
|
|
|
db = Mongo.new(DEFAULT_HOST, DEFAULT_PORT).db(DEFAULT_DB)
|
|
|
|
coll = db.collection('part1')
|
2009-02-05 19:47:33 +00:00
|
|
|
|
2009-02-05 21:00:45 +00:00
|
|
|
if $DEBUG
|
2009-02-05 19:47:33 +00:00
|
|
|
coll.drop
|
|
|
|
end
|
|
|
|
|
2009-02-02 18:12:33 +00:00
|
|
|
100.times { |i| coll.insert('x' => i) }
|