Skip to content

Commit

Permalink
Compact every week
Browse files Browse the repository at this point in the history
  • Loading branch information
VictorNicollet committed Mar 12, 2014
1 parent 779e1a8 commit ca90c16
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/couchDB.ml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ module Convenience = CouchDB_convenience

(* Bind signals ---------------------------------------------------------------------------- *)

let () = Sig.listen Sig.Std.Bot.tick (Util.every 3600.0 ImplDB.compact)
let week = 3600. *. 24. *. 7.

let () = Sig.listen Sig.Std.Bot.tick (Util.every week ImplDB.compact)
let () = Sig.listen Sig.Std.Put.once ImplViews.compile_views

0 comments on commit ca90c16

Please sign in to comment.