A compromise db cleaning strategy between truncate and transactions