Rework to use bolthold/boltdb instead of badgerhold/badgerdb, much more memory efficient
This commit is contained in:
@@ -3,7 +3,7 @@ package entity
|
||||
import "time"
|
||||
|
||||
type Bookmark struct {
|
||||
ID uint64 `badgerhold:"key"`
|
||||
ID uint64 `boltholdKey:"ID"`
|
||||
URL string
|
||||
Info PageInfo
|
||||
Tags []string
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package entity
|
||||
|
||||
type WordIndex struct {
|
||||
Word string `badgerhold:"index"`
|
||||
Word string `bolthold:"index"`
|
||||
// Bitmap roaring.Bitmap
|
||||
Bitmap map[uint64]bool
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user