Comments (4)
Could you write a simple (JS not TS) script to reproduce?
from rocksdb.
Thanks, looking into it. Also reproduces on other implementations (that share code):
const { ClassicLevel } = require('classic-level')
const db = new ClassicLevel('./db/' + Date.now())
const keys = new Array(2000).fill(0).map((_, i) => String(i))
;(async () => {
while (true) {
await db.getMany(keys)
console.log(process.memoryUsage().rss / 1024 / 1024)
}
})()
from rocksdb.
Fixed in 5.2.1. Thanks for the report - and your Open Collective donation ❤️
from rocksdb.
const level = require('level-rocksdb');
let db = level('./database', { valueEncoding: 'json' });
const getKeys = () => {
let keys = [];
for (let i = 0; i < 2000; i++) {
keys.push('a');
}
return keys;
};
(async () => {
await db.open();
while (true) {
let keys = getKeys();
let values = await db.getMany(keys);
console.log(values.length);
}
})();
This can be run on an empty database as well. It fills 5GB in 2 minutes and growing.
from rocksdb.
Related Issues (20)
- DBOptions::manual_wal_flush ? HOT 1
- Which version of rocksdb and how/where is it documented? HOT 1
- Support 'prefix_extractor' option? HOT 5
- Cannot install with npm or yarn
- Read and write operations on non-persisted database does not fail HOT 8
- rocksdb vs level-rocksdb HOT 6
- node-gyp error on M1 (Apple Sillicon): errorthe clang compiler does not support '-march=native': HOT 5
- Electron tests hang on M1 (Apple Sillicon) HOT 4
- Include prebuilt binary for alpine HOT 5
- Apple Silicon run-time error HOT 9
- Implement getMany() HOT 2
- node-gyp error built on x86 macbook HOT 1
- example please? HOT 1
- Publish linux-arm64 binaries HOT 5
- Update rocks dep?
- Unable to install without prebuilt binaries HOT 1
- Update to latest rocksdb? HOT 5
- Use PinnableSlice for Get HOT 1
- Some unit tests fail for root user
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rocksdb.