improve star query performance