Cache cakes in memory and update SQL logic
This commit is contained in:
parent
4b2fcbc58a
commit
066295bbe5
4 changed files with 88 additions and 45 deletions
|
|
@ -22,6 +22,10 @@ func OpenStore(filename string) *Store {
|
|||
}
|
||||
|
||||
out.loadMigrations()
|
||||
out.cakes, err = out.loadCakes()
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
return &out
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue