switch from es to mysql to save memory