Count of Items in DB

Hey guys, starting to use Badger in my new project.

This might be a really simple question but I can’t find any real answer for it so I wanted to reach out and see what the devs think.

So I want to just count the number of items in the BadgerDB. In my head I know I can just run an iterator against keys and increment a counter that way, but is there any built-in method for this?

Thanks in advance!

Hey @b_t, Good to see you after a long time.
There is no built-in method for counting in BadgerDB, you can use an iterator for it.

Got it. Thank you! :pray: