You need to create a new index for siteid, code and value to get the result fast