Rework to use bolthold/boltdb instead of badgerhold/badgerdb, much more memory efficient

This commit is contained in:
2022-05-28 16:16:08 +09:30
parent 10e205dd8e
commit 8e08329711
10 changed files with 47 additions and 208 deletions

View File

@@ -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

View File

@@ -1,7 +1,7 @@
package entity
type WordIndex struct {
Word string `badgerhold:"index"`
Word string `bolthold:"index"`
// Bitmap roaring.Bitmap
Bitmap map[uint64]bool
}