update the history size and last updated attributes when insert new datapoint