Techniques for video encoding and decoding are described. A method of video processing is disclosed. The method includes, determining, based on a video characteristic of a first video block, an enabling or disabling of a pruning process for a table updating process; updating one or multiple tables, based on the determination and motion information of the first video block, the one or multiple motion tables being History-based Motion Vector Prediction HMVP (HMVP) tables; and performing a conversion between a subsequent video block of the video and bitstream representation of the subsequent video block based on the updated tables.