tuples as keys; get underlyings list

master
Brian Sakal 2 years ago
parent 34ff197320
commit 3b0ff3d950

@ -75,6 +75,18 @@ function countRowsInLmdb(){
return db.getKeysCount();
}
function getUnderlyingsSet(){
const underlyings = new Set();
db.getKeys({start:['A']}).forEach(([underlying])=>{
underlyings.add(underlying);
});
return underlyings
}
//console.log('rows-in-csv:', await countRowsInCsv());
//console.log('rows-in-lmdb:', countRowsInLmdb());
await ingestCsvToLmdb();
//await ingestCsvToLmdb();
for(let key in getUnderlyingsSet().values()){
console.log(key);
}
Array.from(getUnderlyingsSet().values()).forEach((x)=>{ console.log(x) })
Loading…
Cancel
Save