Skip to content

Large database size #75

@Lupino

Description

@Lupino
lmj@Menjun:data$ du -sh *
 12G 	data
5.0M	dump.db
 22G	index
8.0K	meta

I use haskey on my project https://github.com/Lupino/haskell-periodic/blob/master/periodic-server/src/Periodic/Server/Scheduler.hs#L119

When I run three days haskey create large file more then 30GB,
the real data is 5M of 57028 items

please help me how to alloc the file size of haskey

My schema is:

type JobTree = Tree JobName Job
type ProcTree = Tree ByteString Job

data Schema = Schema
  { _schemaJobTrees  :: Tree FuncName JobTree
  , _schemaProcTrees :: Tree FuncName ProcTree
  } deriving (Generic, Show, Typeable)

instance Binary Schema
instance Value Schema
instance Root Schema

Metadata

Metadata

Assignees

No one assigned

    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