add time series speed limit
fix event sql