clear before sync
fire compact when cloud sync done