locks command without truncate query