Skip to content

Importing github.com/dgraph-io/badger/table just to get table.Nothing seems overkill #199

@GwynethLlewelyn

Description

@GwynethLlewelyn

Hi,

While trying to fit a Go FastCGI process into the available RAM that my shared provider allows to be run, I switched the tables to stay on disk as opposed as being loaded to RAM (of course, this obviously means everything gets much slower; it's a trade-off).

To do that, I needed the table.Nothing value to set in the options... which meant importing & compiling the whole table module just to get one tiny little thing. Shouldn't there be a simple way to avoid that?

(of course I can, for now, use the values and not the consts, and thus avoid importing table, but that's A Bad Idea For The Future)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions