Are indexes stored on disk?

Are database indexes only stored in memory, or are they also stored on disk (presumably using Badger if they are)?


The second. Also, basically 99% of the DBs out there, except Redis, stores indexes on disk. It was always expensive to use RAM as storage of something. And expand a 20GB dataset with its indexes by default would require a lot of RAM.

1 Like

Thanks. I figured as much.

1 Like