Skip to content

Instantly share code, notes, and snippets.

@jdduarte
Created September 11, 2013 14:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jdduarte/6524790 to your computer and use it in GitHub Desktop.
Save jdduarte/6524790 to your computer and use it in GitHub Desktop.
Levelmeup workshop @ nodeconfeu
var level = require('level');
var db = level(process.argv[2]);
function justGet(i) {
db.get('gibberish' + i, function (err, value) {
if(err) {
return;
}
console.log('gibberish' + i + '=' + value);
});
}
for(var i = 0; i < 100; ++i) {
justGet(i);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment