asdine / storm

Simple and powerful toolkit for BoltDB
MIT License
2.06k stars 139 forks source link

Filter function for Find #250

Closed diamondburned closed 4 years ago

diamondburned commented 5 years ago

Is there a way to add into Find a func (i interface{}) bool filter function for filtering results? Using All to slurp all the results into an array then iterating over it in the Go code is too memory intensive at large scale and causes OOM more often than I'd like it to.

If someone can give me a quick rundown of where things are and what to do, I'll PR it in.