update smart_truncate