fix select high cpu usage