huan / flash-store

FlashStore is a high-performance Key-Value Persistent Local Database using ES6 Map's API (Async & Sync), Powered by LevelDB/RocksDB/SQLite and TypeScript.
https://paka.dev/npm/flash-store
Apache License 2.0
20 stars 4 forks source link

Get the total number (`size`) of the LevelDB keys #96

Open huan opened 2 years ago

huan commented 2 years ago

Current we are using a for loop to loop all keys to count:

https://github.com/huan/flash-store/blob/6b500cb2b42856c5272429da9b5c4e3e36dab0f0/src/flash-store.ts#L213-L223

Related links: