
Security News
The Next Open Source Security Race: Triage at Machine Speed
Claude Opus 4.6 has uncovered more than 500 open source vulnerabilities, raising new considerations for disclosure, triage, and patching at scale.
spooch-db-driver
Advanced tools
Spooch-db-driver - database driver from NoSQL Spooch database server
var assert = require("assert");
var util = require("util");
var Storage = require("../index");
var RECORDS = 50000;
var CHUNKS = 10;
process.on("insert", function() {
util.print("\n# inserting...\n");
var storage = new Storage(__dirname + "/db", CHUNKS);
var processed = 0;
storage.open(function(err, res) {
var start = (new Date).getTime();
for(var i=0; i<RECORDS; i++) {
storage.set("test"+i, "hello world"+i, function(err, res) {
assert.ifError(err);
util.print("processing " + (100.0 * processed / RECORDS).toFixed(2) + "% \r");
if (++processed === RECORDS) {
util.print("\nspeed " + (((new Date).getTime() - start) / RECORDS) + " ms per record\n");
storage.close(function() {
storage.disconnect();
process.emit("search");
});
}
});
}
});
});
process.on("search", function() {
util.print("\n# searching...\n");
var storage = new Storage(__dirname + "/db", CHUNKS);
var processed = 0;
storage.open(function(err, res) {
var start = (new Date).getTime();
for(var i=0; i<RECORDS; i++) {
storage.get("test"+i,function(err, res) {
assert.ifError(err);
util.print("processing " + (100.0 * processed / RECORDS).toFixed(2) + "% \r");
if (++processed === RECORDS) {
util.print("\nspeed " + (((new Date).getTime() - start) / RECORDS) + " ms per record\n");
storage.close(function() {
storage.disconnect();
process.emit("remove");
});
}
});
}
});
});
process.on("remove", function() {
util.print("\n# removing...\n");
var storage = new Storage(__dirname + "/db", CHUNKS);
var processed = 0;
storage.open(function(err, res) {
var start = (new Date).getTime();
for(var i=0; i<RECORDS; i++) {
storage.remove("test"+i,function(err, res) {
assert.ifError(err);
util.print("processing " + (100.0 * processed / RECORDS).toFixed(2) + "% \r");
if (++processed === RECORDS) {
util.print("\nspeed " + (((new Date).getTime() - start) / RECORDS) + " ms per record\n");
storage.close(function() {
storage.disconnect();
process.emit("done");
});
}
});
}
});
});
process.on("done", function() {
process.exit();
});
process.emit("insert");
I can setup some driver parameters in spooch-db-driver/libs/driver.js
module.exports.CONFIGS = {
FILE_LRU: {
CACHE: {
SIZE: 1024,
TYPE: "lru"
},
DRIVER: {
TYPE: "htable"
}
},
FILE_SLOT: {
CACHE: {
SIZE: 1024,
TYPE: "slot"
},
DRIVER: {
TYPE: "htable"
}
},
FILE_LRU_BTREE: {
CACHE: {
SIZE: 1024,
TYPE: "lru"
},
DRIVER: {
TYPE: "htable-btree"
}
},
FILE_SLOT_BTREE: {
CACHE: {
SIZE: 1024,
TYPE: "slot"
},
DRIVER: {
TYPE: "htable-btree"
}
},
MEMORY: {
DRIVER: {
TYPE: "memory"
}
}
};
module.exports.create = function(config, filename) {
var Driver = require("./drivers/" + config.DRIVER.TYPE);
if (config.CACHE) {
var Cache = require("./cache/" + config.CACHE.TYPE);
return new Driver(filename, new Cache(config.CACHE.SIZE));
}
return new Driver(filename);
}
FAQs
database driver from NoSQL Spooch database server
We found that spooch-db-driver demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Claude Opus 4.6 has uncovered more than 500 open source vulnerabilities, raising new considerations for disclosure, triage, and patching at scale.

Research
/Security News
Malicious dYdX client packages were published to npm and PyPI after a maintainer compromise, enabling wallet credential theft and remote code execution.

Security News
gem.coop is testing registry-level dependency cooldowns to limit exposure during the brief window when malicious gems are most likely to spread.