Skip to content

Commit

Permalink
Ordering records by birthdate
Browse files Browse the repository at this point in the history
  • Loading branch information
kristinapathak committed Feb 12, 2019
1 parent 97789f1 commit ef0e575
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion db/executer.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ type dbDecorator struct {
}

func (b *dbDecorator) find(out interface{}, where ...interface{}) error {
db := b.Find(out, where...)
db := b.Order("birth_date DESC").Find(out, where...)
return db.Error
}

Expand Down
8 changes: 5 additions & 3 deletions deploy/docker-compose/docFiles/svalinn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ insertRetries: 0
pruneRetries: 0
getRetries: 0
retryInterval: 10s
defaultTTL: 30s
defaultTTL: 1h
db:
server: "db:26257"
username: "roachadmin"
Expand All @@ -48,11 +48,13 @@ regexRules:
- regex: ".*/online$"
tombstoneKey: "online"
storePayload: true
ttl: 5m
ruleTTL: 50h
eventType: "state"
- regex: ".*/offline$"
tombstoneKey: "offline"
storePayload: true
ttl: 0s
ruleTTL: 50h
eventType: "state"

authHeader: ["YXV0aEhlYWRlcg=="]

Expand Down

0 comments on commit ef0e575

Please sign in to comment.