From 01291501a63db4614ffba9be7cc809a27308bd59 Mon Sep 17 00:00:00 2001 From: Chris Anderson Date: Mon, 2 Jun 2008 09:37:47 -0700 Subject: [PATCH] cleanup word count importer --- examples/word_count/word_count.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/word_count/word_count.rb b/examples/word_count/word_count.rb index 5e5ba2d..11b98b1 100644 --- a/examples/word_count/word_count.rb +++ b/examples/word_count/word_count.rb @@ -13,7 +13,6 @@ db = couch.create_db('word-count-example') lines = [] chunk = 0 while line = file.gets - puts chunk lines << line if lines.length > 10 db.save({ @@ -22,6 +21,7 @@ db = couch.create_db('word-count-example') :text => lines.join('') }) chunk += 1 + puts chunk lines = [] end end @@ -50,6 +50,6 @@ end # } # }) -puts "The books have been stored in your CouchDB. To initiate the MapReduce process, visit http://localhost:5984/_utils/ in your browser and click 'word-count-example', then select view 'words' or 'count'. The process could take about 15 minutes on an average MacBook." - +# puts "The books have been stored in your CouchDB. To initiate the MapReduce process, visit http://localhost:5984/_utils/ in your browser and click 'word-count-example', then select view 'words' or 'count'. The process could take about 15 minutes on an average MacBook." +#